|
template<const int n, const int m, typename T > |
Array< n, m, T > | conj (const Array< n, m, T > &arg) |
| Return conjugate Array.
|
|
template<const int n, const int m, typename T > |
Array< n, m, hila::arithmetic_type< T > > | real (const Array< n, m, T > &arg) |
| Return real part of Array.
|
|
template<const int n, const int m, typename T > |
Array< n, m, hila::arithmetic_type< T > > | imag (const Array< n, m, T > &arg) |
| Return imaginary part of Array.
|
|
template<int n, int m, typename A , typename B > |
auto | operator+ (const Array< n, m, A > &a, const Array< n, m, B > &b) |
| Addition operator.
|
|
template<int n, int m, typename A , typename B > |
auto | operator- (const Array< n, m, A > &a, const Array< n, m, B > &b) |
| Subtraction operator.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | operator* (Array< n, m, T > a, const Array< n, m, T > &b) |
| Multiplication operator.
|
|
template<int n, int m, typename A , typename B > |
auto | operator/ (const Array< n, m, A > &a, const Array< n, m, B > &b) |
| Division operator.
|
|
template<int n, int m, typename T > |
std::ostream & | operator<< (std::ostream &strm, const Array< n, m, T > &A) |
| Stream operator.
|
|
template<int n, int m, typename T > |
std::string | hila::to_string (const Array< n, m, T > &A, int prec=8, char separator=' ') |
| Converts Array object to string.
|
|
template<int n, int m, typename T > |
hila::arithmetic_type< T > | squarenorm (const Array< n, m, T > &rhs) |
| Return square norm of Array.
|
|
template<typename Ntype , typename T , int n, int m, std::enable_if_t< hila::is_arithmetic< T >::value, int > = 0> |
Array< n, m, Ntype > | cast_to (const Array< n, m, T > &mat) |
| Array casting operation.
|
|
|
all operations are applied linearly to the Array A
Most functions are self explanitory, but if necessary function will have a detailed section with additional information. - Template Parameters
-
n | Number of rows |
m | Number of columns |
T | Array element type |
- Parameters
-
- Returns
- Array<n, m, T>
|
template<int n, int m, typename T > |
Array< n, m, T > | sqrt (Array< n, m, T > a) |
| Square root.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | cbrt (Array< n, m, T > a) |
| Cuberoot.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | exp (Array< n, m, T > a) |
| Exponential.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | log (Array< n, m, T > a) |
| Logarithm.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | sin (Array< n, m, T > a) |
| Sine.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | cos (Array< n, m, T > a) |
| Cosine.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | tan (Array< n, m, T > a) |
| Tangent.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | asin (Array< n, m, T > a) |
| Inverse Sine.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | acos (Array< n, m, T > a) |
| Inverse Cosine.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | atan (Array< n, m, T > a) |
| Inverse Tangent.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | sinh (Array< n, m, T > a) |
| Hyperbolic Sine.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | cosh (Array< n, m, T > a) |
| Hyperbolic Cosine.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | tanh (Array< n, m, T > a) |
| Hyperbolic tangent.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | asinh (Array< n, m, T > a) |
| Inverse Hyperbolic Sine.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | acosh (Array< n, m, T > a) |
| Inverse Hyperbolic Cosine.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | atanh (Array< n, m, T > a) |
| Inverse Hyperbolic Tangent.
|
|
template<int n, int m, typename T > |
Array< n, m, T > | pow (Array< n, m, T > a, int b) |
| Power.
|
|
template<int n, int m, typename T , std::enable_if_t< hila::is_arithmetic< T >::value, int > = 0> |
Array< n, m, T > | round (Array< n, m, T > a) |
| Rounding.
|
|
template<int n, int m, typename T , std::enable_if_t< hila::is_arithmetic< T >::value, int > = 0> |
Array< n, m, T > | floor (Array< n, m, T > a) |
| Floor.
|
|
template<int n, int m, typename T , std::enable_if_t< hila::is_arithmetic< T >::value, int > = 0> |
Array< n, m, T > | ceil (Array< n, m, T > a) |
| Ceiling.
|
|
template<int n, int m, typename T , std::enable_if_t< hila::is_arithmetic< T >::value, int > = 0> |
Array< n, m, T > | trunc (Array< n, m, T > a) |
| Truncation.
|
|
Definition of Array class.
This file contains the definitions of Array class and utility functions related to it.
Definition in file array.h.