Hi wp
I think you just have to get into a matrix mode for the (type matrix) and throw extreme caution to the wind.
I have tried a matrix object in other languages, it is all very well, but I always have preferred straight arrays for matrix operations, they are faster and cleaner IMHO.
My previous matrix mode in this forum:
https://forum.lazarus.freepascal.org/index.php/topic,55254.msg410793.html#msg410793And of course the dynamic array approach is better I think.
Just look upon the operation as using a subset of the pointer.
But then again nobody responded to my matrix in that post, so you might have the better idea after all.