mptensor v0.5.1
Parallel Library for Tensor Network Methods
Loading...
Searching...
No Matches
Useful operations
Collaboration diagram for Useful operations:
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.
 

Detailed Description

Other useful operations.

Function Documentation

◆ conj()

template<typename MatrixType >
Tensor< MatrixType > mptensor::conj ( Tensor< MatrixType >  t)

Take conjugate of each element.

◆ max()

template<typename MatrixType >
double mptensor::max ( const Tensor< MatrixType > &  t)
inline

Return the maximum element. For complex, same as max_abs().

◆ max_abs()

template<typename MatrixType >
double mptensor::max_abs ( const Tensor< MatrixType > &  t)
inline

Return maximum of the absolute value of an element.

◆ min()

template<typename MatrixType >
double mptensor::min ( const Tensor< MatrixType > &  t)
inline

Return the minimum element. For complex, same as min_abs().

◆ min_abs()

template<typename MatrixType >
double mptensor::min_abs ( const Tensor< MatrixType > &  t)
inline

Return minimum of the absolute value of an element.

◆ sqrt()

template<typename MatrixType >
Tensor< MatrixType > mptensor::sqrt ( Tensor< MatrixType >  t)

Take square-root of each element.