Tenncor
Classes | Namespaces | Macros | Typedefs | Functions | Variables
shape.hpp File Reference
#include <array>
#include <cmath>
#include <numeric>
#include <vector>
#include "logs/logs.hpp"
Include dependency graph for shape.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  teq::Shape
 

Namespaces

 teq
 

Macros

#define SDIM_BYTES   2
 

Typedefs

using teq::RankT = uint8_t
 Type used for shape rank. More...
 
using teq::DimT = uint16_t
 Type used for shape dimension. More...
 
using teq::CDimT = double
 Type used for coordinate dimensions. More...
 
using teq::NElemT = uint64_t
 
using teq::ShapeT = std::array< DimT, rank_cap >
 Array type used to hold dimension info in Shape. More...
 
using teq::CoordT = std::array< CDimT, rank_cap >
 

Functions

NElemT teq::index (Shape shape, CoordT coord)
 
CoordT teq::coordinate (Shape shape, NElemT idx)
 

Variables

const RankT teq::rank_cap = 8
 Number of dimsensions in a shape/coordinate. More...
 

Macro Definition Documentation

◆ SDIM_BYTES

#define SDIM_BYTES   2