I would like to perform matrix multiplication using the MAT statement.
The documentation says the syntax to use is:
MAT a1() = a2() * a3() 'Multiplication
however i can't get it to work
The compiler says:
Error 437 in test.bas(7:005): AS expected
Line 7: DIM cM, cC, cB AS ColorMatrix
I must say that i do not undertsand what i am doing wrong

Added:
looks like i have to DIM it that way
DIM cM(0 TO 4, 0 TO 4) AS SINGLE, cC(0 TO 4, 0 TO 4) AS SINGLE, cB(0 TO 4, 0 TO 4) AS SINGLE
Would be nice if it could also work directly with a structure type definition.
...
The documentation says the syntax to use is:
MAT a1() = a2() * a3() 'Multiplication
however i can't get it to work
Code:
TYPE ColorMatrix m(0 TO 4, 0 TO 4) AS SINGLE END TYPE FUNCTION PBMAIN DIM cM, cC, cB AS ColorMatrix MAT cM() = cC() * cB() END FUNCTION
Error 437 in test.bas(7:005): AS expected
Line 7: DIM cM, cC, cB AS ColorMatrix
I must say that i do not undertsand what i am doing wrong

Added:
looks like i have to DIM it that way
DIM cM(0 TO 4, 0 TO 4) AS SINGLE, cC(0 TO 4, 0 TO 4) AS SINGLE, cB(0 TO 4, 0 TO 4) AS SINGLE
Would be nice if it could also work directly with a structure type definition.
...
Comment