stardot / MatrixBrandy

Matrix Brandy BASIC VI for Linux, Windows, MacOSX
http://brandy.matrixnetwork.co.uk/
44 stars 8 forks source link

Made fix to matrix-vector multiplication array routine #83

Closed mikefairbank closed 3 years ago

mikefairbank commented 3 years ago

This is the fix for the issue I raised today. I've tested it and it works well, but please preview my code as I am new to this library and very rusty on c programming.

Test code: 10nr%=2 20DIM vec(2) 21vec(0)=1 22vec(1)=2 30DIM matrix(nr%,2) 31matrix(0,0)=1 32matrix(0,1)=2 33matrix(1,0)=3 34matrix(1,1)=4 40DIM result(nr%) 50result()=matrix().vec() 60PRINTresult(0) 70PRINTresult(1)

Should print 5,11, which it does.