|
auto & | cuda () |
| If the stored dense tensor is a cuda dense tensor, returns a reference to it, otherwise terminates. More...
|
|
auto const & | cuda () const |
| If the stored dense tensor is a cuda dense tensor, returns a constant reference to it, otherwise terminates. More...
|
|
Index | dim (Index which) const |
| Returns the dimension of the which -th 1-indexed leg. More...
|
|
Coord | dims () const |
| Copy-returns an array of dimensions. More...
|
|
| GenericDenseTensor () |
| Default-ctor constructs an empty standard dense tensor. More...
|
|
| GenericDenseTensor (Coord const &dims) |
| Standard ctor, again gives an empty standard dense tensor of the supplied size. More...
|
|
| GenericDenseTensor (GenericDenseTensor &&)=default |
| move ctor, defaulted. More...
|
|
| GenericDenseTensor (GenericDenseTensor const &)=default |
| copy ctor, defaulted. More...
|
|
template<typename T , std::enable_if_t<!std::is_same_v< typename std::decay< T >::type, GenericDenseTensor< rank, Scalar > >, int > = 0> |
| GenericDenseTensor (T &&t) |
| Constructs from a supplied dense tensor of some kind or a scalar value. More...
|
|
Coord | getDims () const |
| Copy-returns an array of dimensions. More...
|
|
auto & | identity () |
| If the stored dense tensor is an identity dense tensor, returns a reference to it, otherwise terminates. More...
|
|
auto const & | identity () const |
| If the stored dense tensor is an identity dense tensor, returns a constant reference to it, otherwise terminates. More...
|
|
bool | is_cuda () const |
| Returns true if the stored dense tensor is a CudaDenseTensor. More...
|
|
bool | is_identity () const |
| Returns true if the stored dense tensor is an identity dense tensor (IdentityDenseTensor ). More...
|
|
bool | is_offset () const |
| Returns true if the stored dense tensor is an offset dense tensor (OffsetDenseTensor ). More...
|
|
bool | is_standard () const |
| Returns true if the stored dense tensor is a standard dense tensor (DenseTensor ). More...
|
|
void | make_cuda () |
| Transforms the stored dense tensor into a CUDA dense tensor. More...
|
|
void | make_standard () |
| Transforms the stored dense tensor into a standard dense tensor. More...
|
|
void | maybe_make_cuda () |
| Conditionally transforms the stored dense tensor into a CUDA dense tensor if CUDA support is compiled in, at least one CUDA device is enabled and the tensor is larger than the CUDA threshold. More...
|
|
auto & | offset () |
| If the stored dense tensor is an offset dense tensor, returns a reference to it, otherwise terminates. More...
|
|
auto const & | offset () const |
| If the stored dense tensor is an offset dense tensor, returns a constant reference to it, otherwise terminates. More...
|
|
GenericDenseTensor & | operator= (GenericDenseTensor &&)=default |
| move assignment operator, defaulted. More...
|
|
GenericDenseTensor & | operator= (GenericDenseTensor const &)=default |
| copy assignment operator, defaulted. More...
|
|
GenericDenseTensor | return_as_standard () const |
| Returns a GenericDenseTensor in standard format representing the same object as *this . More...
|
|
Size | size () const |
| Returns the number of stored dense elements. More...
|
|
auto & | standard () |
| If the stored dense tensor is a standard dense tensor, returns a reference to it, otherwise terminates. More...
|
|
auto const & | standard () const |
| If the stored dense tensor is a standard dense tensor, returns a constant reference to it, otherwise terminates. More...
|
|
template<
Rank rank, typename Scalar = SDef>
struct syten::GenericDenseTensorImpl::GenericDenseTensor< rank, Scalar >
Implementation for syten::GenericDenseTensor
.