GMatTensor 0.10.6
Loading...
Searching...
No Matches
GMatTensor::allocate< RANK, T > Struct Template Reference

Helper to allocate 'output' which is of the same type of some 'input', but of a different rank. More...

#include <GMatTensor/config.h>

Detailed Description

template<size_t RANK, class T>
struct GMatTensor::allocate< RANK, T >

Helper to allocate 'output' which is of the same type of some 'input', but of a different rank.

For example:

// input: array of 2nd order tensors, shape = [..., ndim, ndim].
// output: array of scalars, shape = [...]
template <class T>
auto return_scalar_array(const T& A2) ->
Helper to allocate 'output' which is of the same type of some 'input', but of a different rank.
Definition: config.h:107
Template Parameters
RANKRank of the output.
TType of the 'input'

Definition at line 107 of file config.h.


The documentation for this struct was generated from the following file: