mptensor v0.4.0
Parallel Library for Tensor Network Methods
Loading...
Searching...
No Matches
Useful operations
Collaboration diagram for Useful operations:
template<template< typename > class Matrix, typename C >
Tensor< Matrix, Cmptensor::sqrt (Tensor< Matrix, C > t)
 Take square-root of each element.
 
template<template< typename > class Matrix, typename C >
Tensor< Matrix, Cmptensor::conj (Tensor< Matrix, C > t)
 Take conjugate of each element.
 
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().
 
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().
 
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.
 
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.
 

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.