mptensor  v0.3.0
Parallel Library for Tensor Network Methods
Constructors
 mptensor::Tensor< Matrix, C >::Tensor ()
 Default constructor of tensor. More...
 
 mptensor::Tensor< Matrix, C >::Tensor (const Shape &)
 Constructor of tensor. More...
 
 mptensor::Tensor< Matrix, C >::Tensor (const comm_type &)
 Constructor of tensor. More...
 
 mptensor::Tensor< Matrix, C >::Tensor (const comm_type &, const Shape &)
 Constructor of tensor. More...
 
 mptensor::Tensor< Matrix, C >::Tensor (const comm_type &, const Shape &, size_t upper_rank)
 Constructor of tensor. More...
 
 mptensor::Tensor< Matrix, C >::Tensor (const comm_type &, const Tensor< lapack::Matrix, C > &)
 Constructor of tensor from non-distributed tensor. More...
 
 mptensor::Tensor< Matrix, C >::Tensor (const comm_type &, const std::vector< C > &)
 Constructor of tensor from non-distributed vector. More...
 

Detailed Description

Function Documentation

◆ Tensor() [1/7]

template<template< typename > class Matrix, typename C >
mptensor::Tensor< Matrix, C >::Tensor

Default constructor of tensor.

Note
Communicator is set to MPI_COMM_WORLD or MPI_COMM_SELF depending on Matrix class.

◆ Tensor() [2/7]

template<template< typename > class Matrix, typename C >
mptensor::Tensor< Matrix, C >::Tensor ( const comm_type comm)
explicit

Constructor of tensor.

Parameters
[in]commCommunicator.

◆ Tensor() [3/7]

template<template< typename > class Matrix, typename C >
mptensor::Tensor< Matrix, C >::Tensor ( const comm_type comm,
const Shape shape 
)

Constructor of tensor.

Parameters
[in]commCommunicator.
[in]shapeShape of tensor.
Note
Upper rank for matrix representation is set to rank/2.

◆ Tensor() [4/7]

template<template< typename > class Matrix, typename C >
mptensor::Tensor< Matrix, C >::Tensor ( const comm_type comm,
const Shape shape,
size_t  upper_rank 
)

Constructor of tensor.

Parameters
[in]commCommunicator.
[in]shapeShape of tensor.
[in]upper_rankUpper rank for matrix representation.

◆ Tensor() [5/7]

template<template< typename > class Matrix, typename C >
mptensor::Tensor< Matrix, C >::Tensor ( const comm_type comm,
const std::vector< C > &  v 
)

Constructor of tensor from non-distributed vector.

Parameters
[in]commCommunicator.
[in]vNon-distributed vector.
Attention
It is assumed that all processes have the same data.

◆ Tensor() [6/7]

template<template< typename > class Matrix, typename C >
mptensor::Tensor< Matrix, C >::Tensor ( const comm_type comm,
const Tensor< lapack::Matrix, C > &  t 
)

Constructor of tensor from non-distributed tensor.

Parameters
[in]commCommunicator.
[in]tNon-distributed tensor.
Attention
It is assumed that all processes have the same data.

◆ Tensor() [7/7]

template<template< typename > class Matrix, typename C >
mptensor::Tensor< Matrix, C >::Tensor ( const Shape shape)
explicit

Constructor of tensor.

Parameters
[in]shapeShape of tensor.
Note
Communicator is set to MPI_COMM_WORLD or MPI_COMM_SELF depending on Matrix class.
Upper rank for matrix representation is set to rank/2.