Namespace nuTens::dtypes๏
-
namespace dtypes
Enums
-
enum scalarType
Types of scalar values.
Values:
-
enumerator kInt
-
enumerator kFloat
-
enumerator kDouble
-
enumerator kComplexFloat
-
enumerator kComplexDouble
-
enumerator kUninitScalar
-
enumerator kInt
-
enum deviceType
Devices that a Tensor can live on.
Values:
-
enumerator kCPU
-
enumerator kGPU
-
enumerator kUninitDevice
-
enumerator kCPU
Functions
-
template<typename T>
static constexpr scalarType scalarTypeFromRaw() map between raw c++ types and the data types used in nuTens
-
template<>
constexpr scalarType scalarTypeFromRaw<float>()
-
template<>
constexpr scalarType scalarTypeFromRaw<double>()
-
template<>
constexpr scalarType scalarTypeFromRaw<std::complex<float>>()
-
template<>
constexpr scalarType scalarTypeFromRaw<std::complex<double>>()
-
enum scalarType