﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3286	Array storage order	Rüdiger Franke	Rüdiger Franke	"The storage order of multi-dimensional arrays (row major or column major) is generally arbitrary. The Cpp runtime currently follows the common C convention of row major order. On the other hand side most external functions require column major order (in particular LAPACK used in Modelica.Math.Matrices). This requires expensive O(n2) transposition operations. LAPACK sets the standard for linear algebra since decades -- C++ matrix libs don't appear to re-implement linear algebra, but provide flexible storage layouts instead.

StatArrayDim2 already supports column major as option. Supporting multiple storage orders is error prone though if all possible combinations of array operations shall work -- like `A<rowMajor>.assign(B<colMajor>.getData())`.

This is why the Cpp runtime shall be changed to use column major storage order internally.
How does the C runtime deal with this?
"	defect	closed	high	1.9.3	Run-time	trunk	fixed		Marcus Walther Volker Waurich Niklas Worschech Nils Menager
