mptensor v0.5.1
Parallel Library for Tensor Network Methods
Loading...
Searching...
No Matches
Constructors
Collaboration diagram for Constructors:
 mptensor::Tensor< MatrixType >::Tensor (const Shape &)
 Constructor of tensor.
 
 mptensor::Tensor< MatrixType >::Tensor (const comm_type &)
 Constructor of tensor.
 
 mptensor::Tensor< MatrixType >::Tensor (const comm_type &, const Shape &)
 Constructor of tensor.
 
 mptensor::Tensor< MatrixType >::Tensor (const comm_type &, const Shape &, size_t upper_rank)
 Constructor of tensor.
 
 mptensor::Tensor< MatrixType >::Tensor (const comm_type &, const Tensor< lapack::Matrix< value_type > > &)
 Constructor of tensor from non-distributed tensor.
 
 mptensor::Tensor< MatrixType >::Tensor (const comm_type &, const std::vector< value_type > &)
 Constructor of tensor from non-distributed vector.
 

Detailed Description

Function Documentation

◆ Tensor() [1/7]

template<typename MatrixType >
mptensor::Tensor< MatrixType >::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<typename MatrixType >
mptensor::Tensor< MatrixType >::Tensor ( const comm_type &  comm)
explicit

Constructor of tensor.

Parameters
[in]commCommunicator.

◆ Tensor() [3/7]

template<typename MatrixType >
mptensor::Tensor< MatrixType >::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<typename MatrixType >
mptensor::Tensor< MatrixType >::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<typename MatrixType >
mptensor::Tensor< MatrixType >::Tensor ( const comm_type &  comm,
const std::vector< value_type > &  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<typename MatrixType >
mptensor::Tensor< MatrixType >::Tensor ( const comm_type &  comm,
const Tensor< lapack::Matrix< value_type > > &  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<typename MatrixType >
mptensor::Tensor< MatrixType >::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.