![]() |
Ginkgo
Generated from pipelines/2662685947 branch based on develop. Ginkgo version 2.0.0
A numerical linear algebra library targeting many-core architectures
|
RowGatherer is a matrix "format" which stores the gather indices arrays which can be used to gather rows to another matrix. More...
#include <ginkgo/core/matrix/row_gatherer.hpp>
Public Types | |
| using | index_type = IndexType |
Public Types inherited from gko::EnableCloneable< RowGatherer< IndexType > > | |
| using | result_type = RowGatherer< IndexType > |
Public Types inherited from gko::ConvertibleTo< ResultType > | |
| using | result_type = ResultType |
Public Member Functions | |
| index_type * | get_row_idxs () noexcept |
| Returns a pointer to the row index array for gathering. More... | |
| const index_type * | get_const_row_idxs () const noexcept |
| Returns a pointer to the row index array for gathering. More... | |
Public Member Functions inherited from gko::LinOp | |
| void | apply (ptr_param< const LinOp > b, ptr_param< LinOp > x) const |
| Applies a linear operator to a vector (or a sequence of vectors). More... | |
| void | apply (ptr_param< const LinOp > alpha, ptr_param< const LinOp > b, ptr_param< const LinOp > beta, ptr_param< LinOp > x) const |
| Performs the operation x = alpha * op(b) + beta * x. More... | |
| const dim< 2 > & | get_size () const noexcept |
| Returns the size of the operator. More... | |
| virtual bool | apply_uses_initial_guess () const |
| Returns true if the linear operator uses the data given in x as an initial guess. More... | |
| LinOp & | operator= (const LinOp &)=default |
| Copy-assigns a LinOp. More... | |
| LinOp & | operator= (LinOp &&other) |
| Move-assigns a LinOp. More... | |
| LinOp (const LinOp &)=default | |
| Copy-constructs a LinOp. More... | |
| LinOp (LinOp &&other) | |
| Move-constructs a LinOp. More... | |
Public Member Functions inherited from gko::PolymorphicObject | |
| PolymorphicObject & | operator= (const PolymorphicObject &) |
| std::shared_ptr< const Executor > | get_executor () const noexcept |
| Returns the Executor of the object. More... | |
Public Member Functions inherited from gko::log::EnableLogging< PolymorphicObject > | |
| void | add_logger (std::shared_ptr< const Logger > logger) override |
| void | remove_logger (const Logger *logger) override |
| void | remove_logger (ptr_param< const Logger > logger) |
| const std::vector< std::shared_ptr< const Logger > > & | get_loggers () const override |
| void | clear_loggers () override |
Public Member Functions inherited from gko::log::Loggable | |
| void | remove_logger (ptr_param< const Logger > logger) |
Public Member Functions inherited from gko::EnableCloneable< RowGatherer< IndexType > > | |
| std::unique_ptr< RowGatherer< IndexType > > | clone (std::shared_ptr< const Executor > exec) const |
| Creates a clone of the object. More... | |
| std::unique_ptr< RowGatherer< IndexType > > | clone () const |
| Creates a clone of the object. More... | |
| void | convert_to (result_type *result) const override |
| Converts the implementer to an object of type result_type. More... | |
| void | move_to (result_type *result) override |
| Converts the implementer to an object of type result_type by moving data from this object. More... | |
| std::unique_ptr< RowGatherer< IndexType > > | create_default () const |
| std::unique_ptr< RowGatherer< IndexType > > | create_default (std::shared_ptr< const Executor > exec) const |
Public Member Functions inherited from gko::ConvertibleTo< ResultType > | |
| void | convert_to (ptr_param< result_type > result) const |
| void | move_to (ptr_param< result_type > result) |
Public Member Functions inherited from gko::Cloneable | |
| std::unique_ptr< Cloneable > | clone (std::shared_ptr< const Executor > exec) const |
| std::unique_ptr< Cloneable > | clone () const |
| Cloneable * | copy_from (ptr_param< const Cloneable > other) |
| Cloneable * | move_from (ptr_param< Cloneable > other) |
| std::unique_ptr< Cloneable > | create_default (std::shared_ptr< const Executor > exec) const |
| std::unique_ptr< Cloneable > | create_default () const |
Static Public Member Functions | |
| static std::unique_ptr< RowGatherer > | create (std::shared_ptr< const Executor > exec, const dim< 2 > &size={}) |
| Creates uninitialized RowGatherer arrays of the specified size. More... | |
| static std::unique_ptr< RowGatherer > | create (std::shared_ptr< const Executor > exec, const dim< 2 > &size, array< index_type > row_idxs) |
| Creates a RowGatherer matrix from an already allocated (and initialized) row gathering array. More... | |
| static std::unique_ptr< const RowGatherer > | create_const (std::shared_ptr< const Executor > exec, const dim< 2 > &size, gko::detail::const_array_view< IndexType > &&row_idxs) |
| Creates a constant (immutable) RowGatherer matrix from a constant array. More... | |
Friends | |
| class | EnableCloneable< RowGatherer > |
RowGatherer is a matrix "format" which stores the gather indices arrays which can be used to gather rows to another matrix.
| IndexType | precision of rowgatherer array indices. |
|
static |
Creates a RowGatherer matrix from an already allocated (and initialized) row gathering array.
| exec | Executor associated to the matrix |
| size | size of the rowgatherer array. |
| row_idxs | array of rowgatherer array |
row_idxs is not an rvalue, not an array of IndexType, or is on the wrong executor, an internal copy will be created, and the original array data will not be used in the matrix.
|
static |
Creates uninitialized RowGatherer arrays of the specified size.
| exec | Executor associated to the matrix |
| size | size of the RowGatherable matrix |
|
static |
Creates a constant (immutable) RowGatherer matrix from a constant array.
| exec | the executor to create the matrix on |
| size | the dimensions of the matrix |
| row_idxs | the gathered row indices of the matrix |
|
inlinenoexcept |
Returns a pointer to the row index array for gathering.
References gko::array< ValueType >::get_const_data().
|
inlinenoexcept |
Returns a pointer to the row index array for gathering.
References gko::array< ValueType >::get_data().
1.8.16