Constructors of the Tensor class.
More...
Constructors of the Tensor class.
◆ Tensor() [1/7]
Default constructor of tensor.
- Note
- Communicator is set to MPI_COMM_WORLD or MPI_COMM_SELF depending on Matrix class.
◆ Tensor() [2/7]
Constructor of tensor.
- Parameters
-
◆ Tensor() [3/7]
Constructor of tensor.
- Parameters
-
| [in] | comm | Communicator. |
| [in] | shape | Shape of tensor. |
- Note
- Upper rank for matrix representation is set to
rank/2.
◆ Tensor() [4/7]
Constructor of tensor.
- Parameters
-
| [in] | comm | Communicator. |
| [in] | shape | Shape of tensor. |
| [in] | upper_rank | Upper rank for matrix representation. |
◆ Tensor() [5/7]
Constructor of tensor from non-distributed vector.
- Parameters
-
| [in] | comm | Communicator. |
| [in] | v | Non-distributed vector. |
- Attention
- It is assumed that all processes have the same data.
◆ Tensor() [6/7]
Constructor of tensor from non-distributed tensor.
- Parameters
-
| [in] | comm | Communicator. |
| [in] | t | Non-distributed tensor. |
- Attention
- It is assumed that all processes have the same data.
◆ Tensor() [7/7]
Constructor of tensor.
- Parameters
-
| [in] | shape | Shape 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.