Tensor
A C++ expression template library for computations on N dimensional tensors
ftl::TensorTraits< Dtype, DeviceType, DimSizes > Struct Template Reference

Traits class which specifies parameters for a tensor, such as what type of container it uses and what type of device the computations should be performed on. More...

#include <tensor_traits.hpp>

Detailed Description

template<typename Dtype, device DeviceType, size_t... DimSizes>
struct ftl::TensorTraits< Dtype, DeviceType, DimSizes >

Traits class which specifies parameters for a tensor, such as what type of container it uses and what type of device the computations should be performed on.

Template Parameters
DtypeThe type of data used by the container
DeviceTypeThe type of device used for computation – CPU or GPU
DimSizesThe sizes of each of the dimensions of the tensor – an optional parameters. This parameter is used to determine the container type – static if the dimension sizes are specified or dynamic if they are not.

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