I’m a beginner in F#. I know that there is the way to create Double Matrix using PowerPack.dll:
let B = matrix [ [ 1.0; 7.0 ];
[ 1.0; 3.0 ] ]
How can I create matrix with elements of my own type (for example with [,] instead of Double), so it would look like:
let B = matrix [ [ [1,2]; [3,4] ];
[ [7,8]; [5,6] ] ]
Matrixis a particularly mathematical type for working with numbers.If you just want to arrange arbitrary elements in a rectangular shape, use standard F#
lists orarrays.