Tenncor
|
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... | |
Coordinate mapper and tensor pair.
Construct FuncArg auto deducing coorder_ and map_io_ flag.
Construct FuncArg with specific coorder_ and map_io_ flag.
|
inline |
Return coord map for coordinates.
|
inline |
Return shaper coord map.
|
inline |
Return tensor being mapped.
|
inline |
Return map_io_ flag, True if coorder accepts input coord and generated output, False otherwise
|
inline |
Return shape of tensor filtered through coordinate mapper.
|
private |
Coordinate mapper.
|
private |
True if map input coordinate to output, False otherwise (if n_elems of inputshape > n_elems of outputshape)
|
private |
Tensor reference.