Cytnx v1.0.0
Loading...
Searching...
No Matches
Macros | Typedefs | Variables
Type.hpp File Reference
#include <complex>
#include <cstdint>
#include <string>
#include <type_traits>
#include <tuple>
#include <array>
#include <utility>
#include <vector>
#include <variant>
#include "cytnx_error.hpp"
Include dependency graph for Type.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MKL_Complex8   std::complex<float>
 
#define MKL_Complex16   std::complex<double>
 

Typedefs

typedef int32_t blas_int
 

Variables

constexpr Type_class Type
 data type
 
int __blasINTsize__
 

Macro Definition Documentation

◆ MKL_Complex16

#define MKL_Complex16   std::complex<double>

◆ MKL_Complex8

#define MKL_Complex8   std::complex<float>

Typedef Documentation

◆ blas_int

typedef int32_t blas_int

Variable Documentation

◆ __blasINTsize__

int __blasINTsize__
extern

◆ Type

constexpr Type_class Type
constexpr

data type

This is the variable about the data type of the UniTensor, Tensor, ... .
You can use it as following:

int type = Type.Double;
constexpr Type_class Type
data type
Definition Type.hpp:555

The supported enumerations are as following:

enumeration description
Void the data type is void (nothing)
ComplexDouble complex double type with 128 bits
ComplexFloat complex float type with 64 bits
Double double float type with 64 bits
Float single float type with 32 bits
Int64 long long integer type with 64 bits
Uint64 unsigned long long integer type with 64 bits
Int32 integer type with 32 bits
Uint32 unsigned integer type with 32 bits
Int16 short integer type with 16 bits
Uint16 undigned short integer with 16 bits
Bool boolean type