|
HILA
|
#include <u1.h>
Public Types | |
| using | base_type = hila::arithmetic_type< T > |
| std incantation for field types | |
Public Member Functions | |
| Complex< T > | complex () const |
| U1 -> complex number. | |
| template<typename S , std::enable_if_t< std::is_convertible< hila::type_plus< T, S >, T >::value, int > = 0> | |
| U1< T > & | operator*= (const U1< S > &rhs) |
| multiply assign | |
| U1 | operator+ () const |
| unary + | |
| U1 | operator- () const |
| unary - | |
| U1 & | random () |
| Generate random elements. | |
| U1 ()=default | |
| define default constructors to ensure std::is_trivial | |
Type U1 as a phase angle - interface is analogous to (square) matrix, in order to facilitate compatible templates