MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_memory_layout()

MemoryLayout MayaFlux::Kakshya::TensorContainer::get_memory_layout ( ) const
nodiscardoverridevirtual

Column-major when the strides are exactly Fortran order, otherwise row-major.

Implements MayaFlux::Kakshya::NDDataContainer< TensorData >.

Definition at line 67 of file TensorContainer.cpp.

68{
69 const auto& spec = m_data.spec();
70 if (spec.rank() > 1 && !spec.strides.empty() && spec.strides == column_major_strides(spec.shape))
73}
@ ROW_MAJOR
C/C++ style (last dimension varies fastest).
Definition NDData.hpp:34
@ COLUMN_MAJOR
Fortran/MATLAB style (first dimension varies fastest).
Definition NDData.hpp:35

References MayaFlux::Kakshya::COLUMN_MAJOR, m_data, and MayaFlux::Kakshya::ROW_MAJOR.