mptensor  v0.3.0
Parallel Library for Tensor Network Methods
Arithmetic operations
template<template< typename > class Matrix, typename C >
Tensor< Matrix, C > mptensor::operator+ (Tensor< Matrix, C > rhs)
 Unary plus. More...
 
template<template< typename > class Matrix, typename C >
Tensor< Matrix, C > mptensor::operator- (Tensor< Matrix, C > rhs)
 Unary minus. More...
 
template<template< typename > class Matrix, typename C >
Tensor< Matrix, C > mptensor::operator+ (Tensor< Matrix, C > lhs, const Tensor< Matrix, C > &rhs)
 Addition. More...
 
template<template< typename > class Matrix, typename C >
Tensor< Matrix, C > mptensor::operator- (Tensor< Matrix, C > lhs, const Tensor< Matrix, C > &rhs)
 Subtraction. More...
 
template<template< typename > class Matrix, typename C , typename D >
Tensor< Matrix, C > mptensor::operator* (Tensor< Matrix, C > lhs, D rhs)
 Tensor-scalar multiplication. More...
 
template<template< typename > class Matrix, typename C , typename D >
Tensor< Matrix, C > mptensor::operator/ (Tensor< Matrix, C > lhs, D rhs)
 Scalar division. More...
 
template<template< typename > class Matrix, typename C , typename D >
Tensor< Matrix, C > mptensor::operator* (D lhs, Tensor< Matrix, C > rhs)
 Scalar-tensor multiplication. More...
 

Detailed Description

Functions for arithmetic operations.

Function Documentation

◆ operator*() [1/2]

template<template< typename > class Matrix, typename C , typename D >
Tensor< Matrix, C > mptensor::operator* ( lhs,
Tensor< Matrix, C >  rhs 
)
inline

Scalar-tensor multiplication.

◆ operator*() [2/2]

template<template< typename > class Matrix, typename C , typename D >
Tensor< Matrix, C > mptensor::operator* ( Tensor< Matrix, C >  lhs,
rhs 
)
inline

Tensor-scalar multiplication.

◆ operator+() [1/2]

template<template< typename > class Matrix, typename C >
Tensor< Matrix, C > mptensor::operator+ ( Tensor< Matrix, C >  lhs,
const Tensor< Matrix, C > &  rhs 
)
inline

Addition.

◆ operator+() [2/2]

template<template< typename > class Matrix, typename C >
Tensor< Matrix, C > mptensor::operator+ ( Tensor< Matrix, C >  rhs)
inline

Unary plus.

◆ operator-() [1/2]

template<template< typename > class Matrix, typename C >
Tensor< Matrix, C > mptensor::operator- ( Tensor< Matrix, C >  lhs,
const Tensor< Matrix, C > &  rhs 
)
inline

Subtraction.

◆ operator-() [2/2]

template<template< typename > class Matrix, typename C >
Tensor< Matrix, C > mptensor::operator- ( Tensor< Matrix, C >  rhs)
inline

Unary minus.

◆ operator/()

template<template< typename > class Matrix, typename C , typename D >
Tensor< Matrix, C > mptensor::operator/ ( Tensor< Matrix, C >  lhs,
rhs 
)
inline

Scalar division.