Tenncor
Public Member Functions | Public Attributes | List of all members
eteq::ShapedArr< T > Struct Template Referencefinal

Shaped array wraps around a vector and shape. More...

#include <shaped_arr.hpp>

Collaboration diagram for eteq::ShapedArr< T >:
Collaboration graph
[legend]

Public Member Functions

 ShapedArr (void)=default
 
 ShapedArr (teq::Shape shape, T data=0)
 

Public Attributes

std::vector< T > data_
 Vector of size equal to shape_.n_elems() More...
 
teq::Shape shape_
 Tensor shape of data_. More...
 

Detailed Description

template<typename T>
struct eteq::ShapedArr< T >

Shaped array wraps around a vector and shape.

Constructor & Destructor Documentation

◆ ShapedArr() [1/2]

template<typename T>
eteq::ShapedArr< T >::ShapedArr ( void  )
default

◆ ShapedArr() [2/2]

template<typename T>
eteq::ShapedArr< T >::ShapedArr ( teq::Shape  shape,
data = 0 
)
inline

Member Data Documentation

◆ data_

template<typename T>
std::vector<T> eteq::ShapedArr< T >::data_

Vector of size equal to shape_.n_elems()

◆ shape_

template<typename T>
teq::Shape eteq::ShapedArr< T >::shape_

Tensor shape of data_.


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