FuncSketch
Loading...
Searching...
No Matches
common_types.h File Reference

Definitions of common types. More...

#include <complex>
#include <cstdint>
#include <variant>
Include dependency graph for common_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using func_sketch::Real = double
 Type of real numbers in this project.
using func_sketch::Integer = std::int32_t
 Type of integer numbers in this project.
using func_sketch::Complex = std::complex<Real>
 Type of complex numbers in this project.
using func_sketch::Number = std::variant<Integer, Real, Complex>
 Type of numbers.

Detailed Description

Definitions of common types.

Definition in file common_types.h.

Typedef Documentation

◆ Real

using func_sketch::Real = double

Type of real numbers in this project.

Definition at line 29 of file common_types.h.

◆ Integer

using func_sketch::Integer = std::int32_t

Type of integer numbers in this project.

Definition at line 32 of file common_types.h.

◆ Complex

using func_sketch::Complex = std::complex<Real>

Type of complex numbers in this project.

Definition at line 35 of file common_types.h.

◆ Number

using func_sketch::Number = std::variant<Integer, Real, Complex>

Type of numbers.

Note
Integer is written before Real to avoid implicit conversion from Integer to Real.

Definition at line 43 of file common_types.h.