Complex
-
class Complex
The cpplex complex data type.
This class defines the libray’s complex data type. To initialize it, you may use its various constructors, the standard C++ complex literal i, or cpplex’s complex literal _j.
Defined in header <Complex.hpp>.
Functions
Non-member Functions
Example
Complex z1 = 5 + 4_j;
Complex z2 = 5 + 3i;
std::cout << z1 + conj(z2) << "\n";
Output:
10 + 1j