Ginkgo
Generated from pipelines/1556235455 branch based on develop. Ginkgo version 1.9.0
A numerical linear algebra library targeting many-core architectures
|
A type representing the dimensions of a multidimensional batch object. More...
#include <ginkgo/core/base/batch_dim.hpp>
Public Types | |
using | dimension_type = DimensionType |
Public Member Functions | |
size_type | get_num_batch_items () const |
Get the number of batch items stored. More... | |
dim< dimensionality, dimension_type > | get_common_size () const |
Get the common size of the batch items. More... | |
batch_dim () | |
The default constructor. | |
batch_dim (const size_type num_batch_items, const dim< dimensionality, dimension_type > &common_size) | |
Creates a batch_dim object which stores a uniform size for all batch entries. More... | |
Static Public Attributes | |
static constexpr size_type | dimensionality = Dimensionality |
Friends | |
bool | operator== (const batch_dim &x, const batch_dim &y) |
Checks if two batch_dim objects are equal. More... | |
bool | operator!= (const batch_dim< Dimensionality, DimensionType > &x, const batch_dim< Dimensionality, DimensionType > &y) |
Checks if two batch_dim objects are different. More... | |
A type representing the dimensions of a multidimensional batch object.
Dimensionality | number of dimensions of the object |
DimensionType | datatype used to represent each dimension |
|
inlineexplicit |
Creates a batch_dim object which stores a uniform size for all batch entries.
num_batch_items | the number of batch items to be stored |
common_size | the common size of all the batch items stored |
|
inline |
Get the common size of the batch items.
Referenced by gko::batch::BatchLinOp::get_common_size(), gko::batch::MultiVector< ValueType >::get_common_size(), and gko::transpose().
|
inline |
Get the number of batch items stored.
Referenced by gko::batch::BatchLinOp::get_num_batch_items(), gko::batch::MultiVector< ValueType >::get_num_batch_items(), and gko::transpose().
|
friend |
Checks if two batch_dim objects are different.
Dimensionality | number of dimensions of the dim objects |
DimensionType | datatype used to represent each dimension |
x | first object |
y | second object |
!(x == y)
|
friend |
Checks if two batch_dim objects are equal.
x | first object |
y | second object |