mptensor  v0.3.0
Parallel Library for Tensor Network Methods
Useful operations
template<template< typename > class Matrix, typename C >
Tensor< Matrix, C > mptensor::sqrt (Tensor< Matrix, C > t)
 Take square-root of each element. More...
 
template<template< typename > class Matrix, typename C >
Tensor< Matrix, C > mptensor::conj (Tensor< Matrix, C > t)
 Take conjugate of each element. More...
 
template<template< typename > class Matrix, typename C >
double mptensor::max (const Tensor< Matrix, C > &t)
 Return the maximum element. For complex, same as max_abs(). More...
 
template<template< typename > class Matrix, typename C >
double mptensor::min (const Tensor< Matrix, C > &t)
 Return the minimum element. For complex, same as min_abs(). More...
 
template<template< typename > class Matrix, typename C >
double mptensor::max_abs (const Tensor< Matrix, C > &t)
 Return maximum of the absolute value of an element. More...
 
template<template< typename > class Matrix, typename C >
double mptensor::min_abs (const Tensor< Matrix, C > &t)
 Return minimum of the absolute value of an element. More...
 

Detailed Description

Other useful operations.

Function Documentation

◆ conj()

template<template< typename > class Matrix, typename C >
Tensor<Matrix, C> mptensor::conj ( Tensor< Matrix, C >  t)

Take conjugate of each element.

◆ max()

template<template< typename > class Matrix, typename C >
double mptensor::max ( const Tensor< Matrix, C > &  t)
inline

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

◆ max_abs()

template<template< typename > class Matrix, typename C >
double mptensor::max_abs ( const Tensor< Matrix, C > &  t)
inline

Return maximum of the absolute value of an element.

◆ min()

template<template< typename > class Matrix, typename C >
double mptensor::min ( const Tensor< Matrix, C > &  t)
inline

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

◆ min_abs()

template<template< typename > class Matrix, typename C >
double mptensor::min_abs ( const Tensor< Matrix, C > &  t)
inline

Return minimum of the absolute value of an element.

◆ sqrt()

template<template< typename > class Matrix, typename C >
Tensor<Matrix, C> mptensor::sqrt ( Tensor< Matrix, C >  t)

Take square-root of each element.