vt::asfortrantensor#
-
template<typename T>
Tensor<T, 2> vt::asfortrantensor(Tensor<T, 2> &tensor)# Convert a 2D tensor to a Fortran ordered tensor. We use the CuBLAS geam function to transpose the 2D tensor. [TODO] For higher dimensions, we will copy the tensor elementwise.
- Template Parameters:
T – Data type of the tensor.
- Parameters:
tensor – The tensor object.
- Returns:
Tensor: The Fortran tensor object.