Stratax 0.4.0rc1
Loading...
Searching...
No Matches
Types.hpp
Go to the documentation of this file.
1
4#pragma once
5
6#include <cstddef>
7#include <cstdint>
8#include <complex>
9
10namespace stratax::core
11{
12
14 using index_t = std::size_t;
16 using ssize_t = std::ptrdiff_t;
17
18}
19
20namespace stratax::dtype
21{
22
24 using bool_ = bool;
25
27 using int8 = std::int8_t;
29 using int16 = std::int16_t;
31 using int32 = std::int32_t;
33 using int64 = std::int64_t;
34
36 using uint8 = std::uint8_t;
38 using uint16 = std::uint16_t;
40 using uint32 = std::uint32_t;
42 using uint64 = std::uint64_t;
43
45 using float32 = float;
47 using float64 = double;
49 using longdouble = long double;
50
52 using complex64 = std::complex<float>;
54 using complex128 = std::complex<double>;
56 using clongdouble = std::complex<long double>;
57}
std::int32_t int32
Signed 32-bit integer dtype.
Definition Types.hpp:31
std::uint8_t uint8
Unsigned 8-bit integer dtype.
Definition Types.hpp:36
std::uint16_t uint16
Unsigned 16-bit integer dtype.
Definition Types.hpp:38
std::complex< long double > clongdouble
Complex dtype with native long double components.
Definition Types.hpp:56
double float64
Native double dtype.
Definition Types.hpp:47
std::ptrdiff_t ssize_t
Signed pointer-difference and index type.
Definition Types.hpp:16
float float32
Native float dtype.
Definition Types.hpp:45
std::complex< double > complex128
Complex dtype with native double components.
Definition Types.hpp:54
std::int8_t int8
Signed 8-bit integer dtype.
Definition Types.hpp:27
std::int16_t int16
Signed 16-bit integer dtype.
Definition Types.hpp:29
long double longdouble
Native long double dtype; precision is platform-dependent.
Definition Types.hpp:49
std::uint64_t uint64
Unsigned 64-bit integer dtype.
Definition Types.hpp:42
std::size_t index_t
Unsigned size and index type.
Definition Types.hpp:14
bool bool_
Boolean dtype.
Definition Types.hpp:24
std::int64_t int64
Signed 64-bit integer dtype.
Definition Types.hpp:33
std::complex< float > complex64
Complex dtype with native float components.
Definition Types.hpp:52
std::uint32_t uint32
Unsigned 32-bit integer dtype.
Definition Types.hpp:40