|
mptensor v0.5.1
Parallel Library for Tensor Network Methods
|
| template<typename MatrixType > | |
| Tensor< MatrixType > | mptensor::sqrt (Tensor< MatrixType > t) |
| Take square-root of each element. | |
| template<typename MatrixType > | |
| Tensor< MatrixType > | mptensor::conj (Tensor< MatrixType > t) |
| Take conjugate of each element. | |
| template<typename MatrixType > | |
| double | mptensor::max (const Tensor< MatrixType > &t) |
| Return the maximum element. For complex, same as max_abs(). | |
| template<typename MatrixType > | |
| double | mptensor::min (const Tensor< MatrixType > &t) |
| Return the minimum element. For complex, same as min_abs(). | |
| template<typename MatrixType > | |
| double | mptensor::max_abs (const Tensor< MatrixType > &t) |
| Return maximum of the absolute value of an element. | |
| template<typename MatrixType > | |
| double | mptensor::min_abs (const Tensor< MatrixType > &t) |
| Return minimum of the absolute value of an element. | |
Other useful operations.
| Tensor< MatrixType > mptensor::conj | ( | Tensor< MatrixType > | t | ) |
Take conjugate of each element.
|
inline |
Return the maximum element. For complex, same as max_abs().
|
inline |
Return maximum of the absolute value of an element.
|
inline |
Return the minimum element. For complex, same as min_abs().
|
inline |
Return minimum of the absolute value of an element.
| Tensor< MatrixType > mptensor::sqrt | ( | Tensor< MatrixType > | t | ) |
Take square-root of each element.