![]() |
Ginkgo
Generated from pipelines/1680925034 branch based on develop. Ginkgo version 1.10.0
A numerical linear algebra library targeting many-core architectures
|
A struct describing a transformation of the matrix that reorders the values of the matrix into the transformed matrix. More...
#include <ginkgo/core/matrix/csr.hpp>
Public Member Functions | |
permuting_reuse_info () | |
Creates an empty reuse info. | |
permuting_reuse_info (std::unique_ptr< Permutation< index_type >> value_permutation) | |
Creates a reuse info structure from its value permutation. | |
void | update_values (ptr_param< const Csr > input, ptr_param< Csr > output) const |
Propagates the values from an input matrix to the transformed matrix. More... | |
Public Attributes | |
std::unique_ptr< Permutation< IndexType > > | value_permutation |
A struct describing a transformation of the matrix that reorders the values of the matrix into the transformed matrix.
void gko::matrix::Csr< ValueType, IndexType >::permuting_reuse_info::update_values | ( | ptr_param< const Csr > | input, |
ptr_param< Csr > | output | ||
) | const |
Propagates the values from an input matrix to the transformed matrix.
The output matrix needs to have been computed using the transformation that was also used to generate this reuse data. Internally, this permutes the input value vector into the output value vector.