◆ TensorShape() [1/2]
template<typename T >
exatn::numerics::TensorShape::TensorShape |
( |
std::initializer_list< T > |
extents | ) |
|
Create a tensor shape by specifying extents for all tensor dimensions.
◆ TensorShape() [2/2]
exatn::numerics::TensorShape::TensorShape |
( |
| ) |
|
Create an empty tensor shape.
◆ appendDimension()
void exatn::numerics::TensorShape::appendDimension |
( |
DimExtent |
dim_extent | ) |
|
Appends a new dimension at the end, increasing the shape rank by one.
◆ deleteDimension()
void exatn::numerics::TensorShape::deleteDimension |
( |
unsigned int |
dim_id | ) |
|
Deletes a specific dimension, reducing the shape rank by one.
◆ getDimExtent()
DimExtent exatn::numerics::TensorShape::getDimExtent |
( |
unsigned int |
dim_id | ) |
const |
Get the extent of a specific tensor dimension.
◆ getDimExtents()
const std::vector< DimExtent > & exatn::numerics::TensorShape::getDimExtents |
( |
| ) |
const |
Get the extents of all tensor dimensions.
◆ getRank()
unsigned int exatn::numerics::TensorShape::getRank |
( |
| ) |
const |
Get tensor rank (number of tensor dimensions).
◆ isCongruentTo()
bool exatn::numerics::TensorShape::isCongruentTo |
( |
const TensorShape & |
another | ) |
const |
Returns TRUE if the tensor shape coincides with another tensor shape.
◆ printIt()
void exatn::numerics::TensorShape::printIt |
( |
| ) |
const |
◆ resetDimension()
void exatn::numerics::TensorShape::resetDimension |
( |
unsigned int |
dim_id, |
|
|
DimExtent |
extent |
|
) |
| |
Resets a specific dimension.
The documentation for this class was generated from the following files:
- /Users/aqw/exatn/src/numerics/tensor_shape.hpp
- /Users/aqw/exatn/src/numerics/tensor_shape.cpp