23 assert(m[0].
real == 1.0
f);
31 md[0].real = 3.14159265358979;
32 md[0].imag = 2.71828182845905;
35 assert(std::abs((md[0].
real - md2[0].
real) / md[0].real) < 2e-6);
36 assert(std::abs((md[0].imag - md2[0].imag) / md[0].imag) < 2e-6);
40 large[0].real = 1e308;
42 assert(std::isinf(overflow[0].real));
55 assert(zero_mat.
size() == 0);
58 single[0].real = 42.0f;
59 assert(single[0].real == 42.0
f);
63 assert(rect1.
size() == rect2.
size());
65 std::cout <<
"All tests passed!" << std::endl;
Header file of single-precision complex array storage with automatic and thread safe reference counti...
Matrix_float to_float32() const
Convert to single precision.
Matrix to_float64() const
Convert to double precision.
Structure type representing single-precision complex numbers.
scalar * get_data() const
Call to get the pointer to the stored data.
Custom types for the SQUANDER package.
Header file of complex array storage array with automatic and thread safe reference counting...
Structure type representing complex numbers in the SQUANDER package.
Double-precision complex matrix (float64).
int size() const
Call to get the number of the allocated elements.
Single-precision complex matrix (float32).