ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <linalg_op.h>
Public Member Functions | |
void | operator() (const Tensor &input, const std::vector< int > &permutation, Tensor &output) |
Perform the transpose operation on the input tensor. | |
void container::op::transpose_op< Conjugate >::operator() | ( | const Tensor & | input, |
const std::vector< int > & | permutation, | ||
Tensor & | output | ||
) |
Perform the transpose operation on the input tensor.
input | The input tensor to be transposed. |
permutation | A vector representing the desired permutation of the dimensions. The elements of the vector indicate the new order of the dimensions, and the size of the vector must be equal to the rank of the input tensor. |
output | The output tensor that will store the result of the transpose operation. The output tensor should be pre-allocated and have the correct shape for the transpose result. |