FasTensor  1.0.0
Transform Supercomputing for AI
Classes | Macros | Typedefs | Enumerations | Functions
ft_type.h File Reference
#include <type_traits>
#include <iostream>
#include <variant>
#include <complex>

Go to the source code of this file.

Classes

struct  is_vector< T >
 
struct  is_vector< std::vector< T, A > >
 
struct  is_vector_vector< T >
 
struct  is_vector_vector< std::vector< std::vector< T, A > > >
 

Macros

#define AU_UDT_INIT(A)   FT_UDT_INIT(A)
 
#define FT_UDT_INIT(A)
 

Typedefs

typedef enum AuEndpointType AuEndpointType
 
typedef enum AuEndpointDataType AuEndpointDataType
 
typedef AuEndpointDataType FTDataType
 
typedef AuEndpointDataType FTType
 
using AuEndpointDataTypeUnion = std::variant< short, int, long, long long, unsigned short, unsigned int, unsigned long, unsigned long long, float, double, std::complex< double >, std::string >
 It should follow the order of above AuEndpointDataType. More...
 
typedef enum OutputVectorFlatDirection OutputVectorFlatDirection
 

Enumerations

enum  AuEndpointType {
  EP_HDF5 = 0 , EP_PNETCDF = 1 , EP_ADIOS = 2 , EP_BINARY = 3 ,
  EP_VIRTUAL = 4 , EP_MEMORY = 5 , EP_H5VDS = 6 , EP_DIR = 7 ,
  EP_DASSA = 8 , EP_TDMS = 9
}
 
enum  AuEndpointDataType {
  AU_NO_TYPE = -1 , AU_SHORT = 0 , AU_INT = 1 , AU_LONG = 2 ,
  AU_LONG_LONG = 3 , AU_USHORT = 4 , AU_UINT = 5 , AU_ULONG = 6 ,
  AU_ULLONG = 7 , AU_FLOAT = 8 , AU_DOUBLE = 9 , AU_DOUBLE_COMPLEX = 10 ,
  AU_STRING = 11 , AU_NCLASSES
}
 
enum  OutputVectorFlatDirection { AU_FLAT_OUTPUT_COL = 0 , AU_FLAT_OUTPUT_ROW = 1 , AU_FLAT_OUTPUT_NEW = 2 }
 

Functions

AuEndpointType MapString2EndpointType (std::string endpoint_type_str)
 map string typed name of type to AuEndpointType More...
 
template<typename T >
AuEndpointDataType InferDataType ()
 
template<typename T >
bool InferVectorType ()
 
template<typename T >
bool InferVectorVectorType ()
 

Macro Definition Documentation

◆ AU_UDT_INIT

#define AU_UDT_INIT (   A)    FT_UDT_INIT(A)

◆ FT_UDT_INIT

#define FT_UDT_INIT (   A)
Value:
CISTA_PRINTABLE(A) \
CISTA_COMPARABLE()

Typedef Documentation

◆ AuEndpointDataType

◆ AuEndpointDataTypeUnion

using AuEndpointDataTypeUnion = std::variant<short, int, long, long long, unsigned short, unsigned int, unsigned long, unsigned long long, float, double, std::complex<double>, std::string>

It should follow the order of above AuEndpointDataType.

◆ AuEndpointType

Author: Bin Dong dbin@.nosp@m.lbl..nosp@m.gov Web: https://crd.lbl.gov/bin-dong Scientific Data Management Research Group Lawrence Berkeley National Laboratory

◆ FTDataType

◆ FTType

◆ OutputVectorFlatDirection

Enumeration Type Documentation

◆ AuEndpointDataType

Enumerator
AU_NO_TYPE 
AU_SHORT 
AU_INT 
AU_LONG 
AU_LONG_LONG 
AU_USHORT 
AU_UINT 
AU_ULONG 
AU_ULLONG 
AU_FLOAT 
AU_DOUBLE 
AU_DOUBLE_COMPLEX 
AU_STRING 
AU_NCLASSES 

◆ AuEndpointType

Author: Bin Dong dbin@.nosp@m.lbl..nosp@m.gov Web: https://crd.lbl.gov/bin-dong Scientific Data Management Research Group Lawrence Berkeley National Laboratory

Enumerator
EP_HDF5 
EP_PNETCDF 
EP_ADIOS 
EP_BINARY 
EP_VIRTUAL 
EP_MEMORY 
EP_H5VDS 
EP_DIR 
EP_DASSA 
EP_TDMS 

◆ OutputVectorFlatDirection

Enumerator
AU_FLAT_OUTPUT_COL 
AU_FLAT_OUTPUT_ROW 
AU_FLAT_OUTPUT_NEW 

Function Documentation

◆ InferDataType()

template<typename T >
AuEndpointDataType InferDataType ( )

◆ InferVectorType()

template<typename T >
bool InferVectorType ( )

◆ InferVectorVectorType()

template<typename T >
bool InferVectorVectorType ( )

◆ MapString2EndpointType()

AuEndpointType MapString2EndpointType ( std::string  endpoint_type_str)

map string typed name of type to AuEndpointType

Parameters
endpoint_type_strinput of string name
Returns
AuEndpointType output of type

Author: Bin Dong dbin@.nosp@m.lbl..nosp@m.gov Web: https://crd.lbl.gov/bin-dong Scientific Data Management Research Group Lawrence Berkeley National Laboratory