![]() |
Ginkgo Generated from branch based on main. Ginkgo version 1.10.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. | |
| dim< dimensionality, dimension_type > | get_common_size () const |
| Get the common size of the batch items. | |
| 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. | |
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. | |
| bool | operator!= (const batch_dim< Dimensionality, DimensionType > &x, const batch_dim< Dimensionality, DimensionType > &y) |
| Checks if two batch_dim objects are different. | |
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(), and gko::transpose().
|
inline |
Get the number of batch items stored.
Referenced by gko::batch::BatchLinOp::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 |
References batch_dim().
|
friend |
Checks if two batch_dim objects are equal.
| x | first object |
| y | second object |
References batch_dim().