![]() |
Ginkgo
Generated from tags/v1.0.0^0 branch based on master. Ginkgo version 1.0.0
A numerical linear algebra library targeting many-core architectures
|
imbalance_bounded_limit is a stratgy_type which decides the number of stored elements per row of the ell part. More...
#include <ginkgo/core/matrix/hybrid.hpp>
Public Member Functions | |
imbalance_bounded_limit (float percent=0.8, float ratio=0.0001) | |
Creates a imbalance_bounded_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. More... | |
![]() | |
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). More... | |
const size_type | get_ell_num_stored_elements_per_row () const noexcept |
Returns the number of stored elements per row of the ell part. More... | |
const size_type | get_coo_nnz () const noexcept |
Returns the number of nonzeros of the coo part. More... | |
imbalance_bounded_limit is a stratgy_type which decides the number of stored elements per row of the ell part.
It uses the imbalance_limit and adds the upper bound of the number of ell's cols by the number of rows.
|
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.
References gko::Array< ValueType >::get_num_elems().