column_limit is a strategy_type which decides the number of stored elements per row of the ell part by specifying the number of columns. More...
#include <ginkgo/core/matrix/hybrid.hpp>
Public Member Functions | |
column_limit (size_type num_column=0) | |
Creates a column_limit strategy. | |
size_type | compute_ell_num_stored_elements_per_row (array< size_type > *row_nnz) const override |
Computes the number of stored elements per row of the ell part. | |
auto | get_num_columns () const |
Get the number of columns limit. | |
![]() | |
strategy_type () | |
Creates a strategy_type. | |
void | compute_hybrid_config (const array< size_type > &row_nnz, size_type *ell_num_stored_elements_per_row, size_type *coo_nnz) |
Computes the config of the Hybrid matrix (ell_num_stored_elements_per_row and coo_nnz). | |
size_type | get_ell_num_stored_elements_per_row () const noexcept |
Returns the number of stored elements per row of the ell part. | |
size_type | get_coo_nnz () const noexcept |
Returns the number of nonzeros of the coo part. | |
column_limit is a strategy_type which decides the number of stored elements per row of the ell part by specifying the number of columns.
|
inlineexplicit |
Creates a column_limit strategy.
num_column | the specified number of columns of the ell part |
|
inlineoverridevirtual |
Computes the number of stored elements per row of the ell part.
row_nnz | the number of nonzeros of each row |
Implements gko::matrix::Hybrid< ValueType, IndexType >::strategy_type.
|
inline |
Get the number of columns limit.