|
|
void | convert_to (Dense< next_precision< ValueType > > *result) const override |
| |
|
void | move_to (Dense< next_precision< ValueType > > *result) override |
| |
| std::unique_ptr< unbatch_type > | create_view_for_item (size_type item_id) |
| | Creates a mutable view (of gko::matrix::Dense type) of one item of the batch::matrix::Dense<value_type> object.
|
| |
| std::unique_ptr< const unbatch_type > | create_const_view_for_item (size_type item_id) const |
| | Creates a mutable view (of gko::matrix::Dense type) of one item of the batch::matrix::Dense<value_type> object.
|
| |
| size_type | get_cumulative_offset (size_type batch_id) const |
| | Get the cumulative storage size offset.
|
| |
| value_type * | get_values () noexcept |
| | Returns a pointer to the array of values of the multi-vector.
|
| |
| const value_type * | get_const_values () const noexcept |
| | Returns a pointer to the array of values of the multi-vector.
|
| |
| value_type & | at (size_type batch_id, size_type row, size_type col) |
| | Returns a single element for a particular batch item.
|
| |
| value_type | at (size_type batch_id, size_type row, size_type col) const |
| | Returns a single element for a particular batch item.
|
| |
| ValueType & | at (size_type batch_id, size_type idx) noexcept |
| | Returns a single element for a particular batch item.
|
| |
| ValueType | at (size_type batch_id, size_type idx) const noexcept |
| | Returns a single element for a particular batch item.
|
| |
| 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.
|
| |
| 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.
|
| |
| Dense * | apply (ptr_param< const MultiVector< value_type > > b, ptr_param< MultiVector< value_type > > x) |
| | Apply the matrix to a multi-vector.
|
| |
| Dense * | 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 Dense * | apply (ptr_param< const MultiVector< value_type > > b, ptr_param< MultiVector< value_type > > x) const |
| |
| const Dense * | 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>
class gko::batch::matrix::Dense< ValueType >
Dense is a batch matrix format which explicitly stores all values of the matrix in each of the batches.
The values in each of the batches are stored in row-major format (values belonging to the same row appear consecutive in the memory and the values of each batch item are also stored consecutively in memory).
- Note
- Though the storage layout is the same as the multi-vector object, the class semantics and the operations it aims to provide are different. Hence it is recommended to create multi-vector objects if the user means to view the data as a set of vectors.
- Template Parameters
-
| ValueType | precision of matrix elements |