![]() |
LibraryLink Utilities
3.0.1
Modern C++ wrapper over LibraryLink and WSTP
|
Abstract class that defines a basic set of operations on a tensor.
Inheritance diagram for LLU::TensorInterface:#include <Interfaces.h>
Public Member Functions | |
| virtual mint | getRank () const =0 |
| Get rank. More... | |
| virtual mint const * | getDimensions () const =0 |
| Get dimensions. More... | |
| virtual mint | getFlattenedLength () const =0 |
| Get total length. More... | |
| virtual mint | type () const =0 |
| Get the data type of this tensor. More... | |
| virtual void * | rawData () const =0 |
| Get raw pointer to the data of this tensor. More... | |
|
pure virtual |
Get dimensions.
Implemented in LLU::MContainer< MArgumentType::Tensor >, and LLU::TensorView.
|
pure virtual |
Get total length.
Implemented in LLU::MContainer< MArgumentType::Tensor >, and LLU::TensorView.
|
pure virtual |
Get rank.
Implemented in LLU::MContainer< MArgumentType::Tensor >, and LLU::TensorView.
|
pure virtual |
Get raw pointer to the data of this tensor.
Implemented in LLU::MContainer< MArgumentType::Tensor >, and LLU::TensorView.
|
pure virtual |
Get the data type of this tensor.
Implemented in LLU::MContainer< MArgumentType::Tensor >, and LLU::TensorView.