Template Function otyca::col_to_row_major(const std::vector<T>&, std::vector<T>&, int, int)
Function Documentation
-
template<typename T>
void otyca::col_to_row_major(const std::vector<T> &colMajor, std::vector<T> &rowMajor, int rows, int cols) Converts a column-major vector to a row-major vector.
- Template Parameters:
T – Type of elements in the vector.
- Parameters:
colMajor – Input column-major vector.
rowMajor – Output row-major vector.
rows – Number of rows.
cols – Number of columns.