ImFusion SDK 4.3
TensorFactory Class Reference

#include <ImFusion/Base/Tensor.h>

Factory for creating standard type tensors up to a certain maximum rank. More...

Detailed Description

Factory for creating standard type tensors up to a certain maximum rank.

The maxRank variable can be changed according to your needs if required. However, since the compiler will generate code for all possible permitted ranks, the executable size will grow along with maxRank.

Classes

struct  RankFactory
 Internal helper factory for fixed type and increasing rank. More...
 
struct  RankFactory< TensorFactory::maxRank >
 

Static Public Member Functions

static TensorBasecreate (size_t rank)
 Returns a tensor of the given rank and type or null if either the rank is too high or the type non-standard.
 

Static Public Attributes

static const size_t maxRank
 Compiler will generate factories up to this rank. Public because other code dealing with tensor IO has to know.
 

Member Data Documentation

◆ maxRank

const size_t maxRank
static
Initial value:
=
4

Compiler will generate factories up to this rank. Public because other code dealing with tensor IO has to know.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close