|
void | convert_to (Ell< next_precision< ValueType >, IndexType > *result) const override |
|
void | move_to (Ell< next_precision< ValueType >, IndexType > *result) override |
|
std::unique_ptr< unbatch_type > | create_view_for_item (size_type item_id) |
| Creates a mutable view (of matrix::Ell type) of one item of the batch::matrix::Ell<value_type> object.
|
|
std::unique_ptr< const unbatch_type > | create_const_view_for_item (size_type item_id) const |
| Creates a mutable view (of matrix::Ell type) of one item of the batch::matrix::Ell<value_type> object.
|
|
value_type * | get_values () noexcept |
| Returns a pointer to the array of values of the matrix.
|
|
const value_type * | get_const_values () const noexcept |
| Returns a pointer to the array of values of the matrix.
|
|
index_type * | get_col_idxs () noexcept |
| Returns a pointer to the array of column indices of the matrix.
|
|
const index_type * | get_const_col_idxs () const noexcept |
| Returns a pointer to the array of column indices of the matrix.
|
|
index_type | get_num_stored_elements_per_row () const noexcept |
| Returns the number of elements per row explicitly stored.
|
|
size_type | get_num_stored_elements () const noexcept |
| Returns the number of elements explicitly stored in the batch matrix, cumulative across all the batch items.
|
|
size_type | get_num_elements_per_item () const noexcept |
| Returns the number of stored elements in each batch item.
|
|
index_type * | get_col_idxs_for_item (size_type batch_id) noexcept |
| Returns a pointer to the array of col_idxs of the matrix.
|
|
const index_type * | get_const_col_idxs_for_item (size_type batch_id) const noexcept |
| Returns a pointer to the array of col_idxs of the matrix.
|
|
value_type * | get_values_for_item (size_type batch_id) noexcept |
| Returns a pointer to the array of values of the matrix for a specific batch item.
|
|
const value_type * | get_const_values_for_item (size_type batch_id) const noexcept |
| Returns a pointer to the array of values of the matrix for a specific batch item.
|
|
Ell * | apply (ptr_param< const MultiVector< value_type > > b, ptr_param< MultiVector< value_type > > x) |
| Apply the matrix to a multi-vector.
|
|
Ell * | apply (ptr_param< const MultiVector< value_type > > alpha, ptr_param< const MultiVector< value_type > > b, ptr_param< const MultiVector< value_type > > beta, ptr_param< MultiVector< value_type > > x) |
| Apply the matrix to a multi-vector with a linear combination of the given input vector.
|
|
const Ell * | apply (ptr_param< const MultiVector< value_type > > b, ptr_param< MultiVector< value_type > > x) const |
|
const Ell * | apply (ptr_param< const MultiVector< value_type > > alpha, ptr_param< const MultiVector< value_type > > b, ptr_param< const MultiVector< value_type > > beta, ptr_param< MultiVector< value_type > > x) const |
|
std::unique_ptr< AbstractObject > | create_default (std::shared_ptr< const Executor > exec) const |
|
std::unique_ptr< AbstractObject > | create_default () const |
|
std::unique_ptr< AbstractObject > | clone (std::shared_ptr< const Executor > exec) const |
|
std::unique_ptr< AbstractObject > | clone () const |
|
AbstractObject * | copy_from (const PolymorphicObject *other) |
|
template<typename Derived > |
std::enable_if_t< std::is_base_of< PolymorphicObject, std::decay_t< Derived > >::value, AbstractObject > * | copy_from (std::unique_ptr< Derived > &&other) |
|
template<typename Derived > |
std::enable_if_t< std::is_base_of< PolymorphicObject, std::decay_t< Derived > >::value, AbstractObject > * | copy_from (const std::unique_ptr< Derived > &other) |
|
AbstractObject * | copy_from (const std::shared_ptr< const PolymorphicObject > &other) |
|
AbstractObject * | move_from (ptr_param< PolymorphicObject > other) |
|
AbstractObject * | clear () |
|
PolymorphicObject & | operator= (const PolymorphicObject &) |
|
std::unique_ptr< PolymorphicObject > | create_default (std::shared_ptr< const Executor > exec) const |
| Creates a new "default" object of the same dynamic type as this object.
|
|
std::unique_ptr< PolymorphicObject > | create_default () const |
| Creates a new "default" object of the same dynamic type as this object.
|
|
std::unique_ptr< PolymorphicObject > | clone (std::shared_ptr< const Executor > exec) const |
| Creates a clone of the object.
|
|
std::unique_ptr< PolymorphicObject > | clone () const |
| Creates a clone of the object.
|
|
PolymorphicObject * | copy_from (const PolymorphicObject *other) |
| Copies another object into this object.
|
|
template<typename Derived , typename Deleter > |
std::enable_if_t< std::is_base_of< PolymorphicObject, std::decay_t< Derived > >::value, PolymorphicObject > * | copy_from (std::unique_ptr< Derived, Deleter > &&other) |
| Moves another object into this object.
|
|
template<typename Derived , typename Deleter > |
std::enable_if_t< std::is_base_of< PolymorphicObject, std::decay_t< Derived > >::value, PolymorphicObject > * | copy_from (const std::unique_ptr< Derived, Deleter > &other) |
| Copies another object into this object.
|
|
PolymorphicObject * | copy_from (const std::shared_ptr< const PolymorphicObject > &other) |
| Copies another object into this object.
|
|
PolymorphicObject * | move_from (ptr_param< PolymorphicObject > other) |
| Moves another object into this object.
|
|
PolymorphicObject * | clear () |
| Transforms the object into its default state.
|
|
std::shared_ptr< const Executor > | get_executor () const noexcept |
| Returns the Executor of the object.
|
|
void | add_logger (std::shared_ptr< const Logger > logger) override |
| Adds a new logger to the list of subscribed loggers.
|
|
void | remove_logger (const Logger *logger) override |
| Removes a logger from the list of subscribed loggers.
|
|
void | remove_logger (ptr_param< const Logger > logger) |
|
const std::vector< std::shared_ptr< const Logger > > & | get_loggers () const override |
| Returns the vector containing all loggers registered at this object.
|
|
void | clear_loggers () override |
| Remove all loggers registered at this object.
|
|
void | remove_logger (ptr_param< const Logger > logger) |
|
void | convert_to (result_type *result) const override |
| Converts the implementer to an object of type result_type.
|
|
void | move_to (result_type *result) override |
| Converts the implementer to an object of type result_type by moving data from this object.
|
|
virtual void | convert_to (result_type *result) const =0 |
| Converts the implementer to an object of type result_type.
|
|
void | convert_to (ptr_param< result_type > result) const |
|
virtual void | move_to (result_type *result)=0 |
| Converts the implementer to an object of type result_type by moving data from this object.
|
|
void | move_to (ptr_param< result_type > result) |
|
template<
typename ValueType = default_precision,
typename IndexType = int32>
class gko::batch::matrix::Ell< ValueType, IndexType >
Ell is a sparse matrix format that stores the same number of nonzeros in each row, enabling coalesced accesses.
It is suitable for sparsity patterns that have a similar number of nonzeros in every row. The values are stored in a column-major fashion similar to the monolithic gko::matrix::Ell class.
Similar to the monolithic gko::matrix::Ell class, invalid_index<IndexType> is used as the column index for padded zero entries.
- Note
- It is also assumed that the sparsity pattern of all the items in the batch is the same and therefore only a single copy of the sparsity pattern is stored.
-
Currently only IndexType of int32 is supported.
- Template Parameters
-
ValueType | value precision of matrix elements |
IndexType | index precision of matrix elements |