On Friday, January 31, 2020 5:43:44 AM MST MoonlightSentinel via
Digitalmars-d-learn wrote:
> On Friday, 31 January 2020 at 12:37:43 UTC, Adnan wrote:
> > What's causing this?
>
> You mixed up the array lengths:
>
> const int[3][2] matA = [[0, -1, 2], [4, 11, 2]];
> const int[2][3] matB = [[3,
On Friday, 31 January 2020 at 12:37:43 UTC, Adnan wrote:
What's causing this?
You mixed up the array lengths:
const int[3][2] matA = [[0, -1, 2], [4, 11, 2]];
const int[2][3] matB = [[3, -1], [1, 2], [6, 1]];
matA is an SA containing <2> elements of type int[3].
matB is an SA containing <3>