Tenncor
Public Member Functions | Private Attributes | List of all members
teq::FuncArg Struct Referencefinal

Coordinate mapper and tensor pair. More...

#include <funcarg.hpp>

Public Member Functions

 FuncArg (TensptrT tensor, CoordptrT shaper)
 Construct FuncArg auto deducing coorder_ and map_io_ flag. More...
 
 FuncArg (TensptrT tensor, CoordptrT shaper, bool map_io, CoordptrT coorder)
 Construct FuncArg with specific coorder_ and map_io_ flag. More...
 
Shape shape (void) const
 Return shape of tensor filtered through coordinate mapper. More...
 
TensptrT get_tensor (void) const
 Return tensor being mapped. More...
 
CoordptrT get_shaper (void) const
 Return shaper coord map. More...
 
bool map_io (void) const
 
CoordptrT get_coorder (void) const
 Return coord map for coordinates. More...
 

Private Attributes

TensptrT tensor_
 Tensor reference. More...
 
CoordptrT shaper_
 Shape mapper. More...
 
bool map_io_
 
CoordptrT coorder_
 Coordinate mapper. More...
 

Detailed Description

Coordinate mapper and tensor pair.

Constructor & Destructor Documentation

◆ FuncArg() [1/2]

teq::FuncArg::FuncArg ( TensptrT  tensor,
CoordptrT  shaper 
)
inline

Construct FuncArg auto deducing coorder_ and map_io_ flag.

◆ FuncArg() [2/2]

teq::FuncArg::FuncArg ( TensptrT  tensor,
CoordptrT  shaper,
bool  map_io,
CoordptrT  coorder 
)
inline

Construct FuncArg with specific coorder_ and map_io_ flag.

Member Function Documentation

◆ get_coorder()

CoordptrT teq::FuncArg::get_coorder ( void  ) const
inline

Return coord map for coordinates.

◆ get_shaper()

CoordptrT teq::FuncArg::get_shaper ( void  ) const
inline

Return shaper coord map.

◆ get_tensor()

TensptrT teq::FuncArg::get_tensor ( void  ) const
inline

Return tensor being mapped.

◆ map_io()

bool teq::FuncArg::map_io ( void  ) const
inline

Return map_io_ flag, True if coorder accepts input coord and generated output, False otherwise

◆ shape()

Shape teq::FuncArg::shape ( void  ) const
inline

Return shape of tensor filtered through coordinate mapper.

Member Data Documentation

◆ coorder_

CoordptrT teq::FuncArg::coorder_
private

Coordinate mapper.

◆ map_io_

bool teq::FuncArg::map_io_
private

True if map input coordinate to output, False otherwise (if n_elems of inputshape > n_elems of outputshape)

◆ shaper_

CoordptrT teq::FuncArg::shaper_
private

Shape mapper.

◆ tensor_

TensptrT teq::FuncArg::tensor_
private

Tensor reference.


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