batch_dim< Dimensionality, DimensionType > Struct Template Reference#
|
Reference API
|
gko::batch_dim< Dimensionality, DimensionType > Struct Template Reference
#include <ginkgo/core/base/batch_dim.hpp>
Inheritance diagram for gko::batch_dim< Dimensionality, DimensionType >:
Public Types | |
| using | dimension_type = DimensionType |
Public Member Functions | |
| size_type | get_num_batch_items () const |
| dim< dimensionality, dimension_type > | get_common_size () const |
| batch_dim () | |
| batch_dim (const size_type num_batch_items, const dim< dimensionality, dimension_type > &common_size) | |
Static Public Attributes | |
| static constexpr size_type | dimensionality = Dimensionality |
Friends | |
| bool | operator== (const batch_dim &x, const batch_dim &y) |
| bool | operator!= (const batch_dim< Dimensionality, DimensionType > &x, const batch_dim< Dimensionality, DimensionType > &y) |
Detailed Description
template<size_type Dimensionality = 2, typename DimensionType = size_type>
struct gko::batch_dim< Dimensionality, DimensionType >
struct gko::batch_dim< Dimensionality, DimensionType >
A type representing the dimensions of a multidimensional batch object.
- Template Parameters
-
Dimensionality number of dimensions of the object DimensionType datatype used to represent each dimension
Constructor & Destructor Documentation
◆ batch_dim() [1/2]
template<size_type Dimensionality = 2, typename DimensionType = size_type>
|
inline |
The default constructor
◆ batch_dim() [2/2]
template<size_type Dimensionality = 2, typename DimensionType = size_type>
|
inlineexplicit |
Creates a batch_dim object which stores a uniform size for all batch entries.
- Parameters
-
num_batch_items the number of batch items to be stored common_size the common size of all the batch items stored
- Note
- Use this constructor when uniform batches need to be stored.
Member Function Documentation
◆ get_common_size()
template<size_type Dimensionality = 2, typename DimensionType = size_type>
|
inline |
Get the common size of the batch items
- Returns
- common_size
Referenced by gko::batch::BatchLinOp::get_common_size(), gko::batch::MultiVector< ValueType >::get_common_size(), and gko::transpose().
◆ get_num_batch_items()
template<size_type Dimensionality = 2, typename DimensionType = size_type>
|
inline |
Get the number of batch items stored
- Returns
- num_batch_items
Referenced by gko::batch::MultiVector< ValueType >::get_num_batch_items(), gko::batch::BatchLinOp::get_num_batch_items(), and gko::transpose().
Friends And Related Symbol Documentation
◆ operator!=
template<size_type Dimensionality = 2, typename DimensionType = size_type>
|
friend |
Checks if two batch_dim objects are different.
- Template Parameters
-
Dimensionality number of dimensions of the dim objects DimensionType datatype used to represent each dimension
- Parameters
-
x first object y second object
- Returns
!(x == y)
◆ operator==
template<size_type Dimensionality = 2, typename DimensionType = size_type>
|
friend |
Checks if two batch_dim objects are equal.
- Parameters
-
x first object y second object
- Returns
- true if and only if all dimensions of both objects are equal.
The documentation for this struct was generated from the following file:
- ginkgo/core/base/batch_dim.hpp
Generated by