This is really simple stuff but, as I am a noob with math.net, I may need to be pointed in the right direction:
let a = new DenseVector([| 5.0; 2.0; 3.0; |])
let m = new DenseMatrix(3, 3, 1.0)
let r = a * m
let r2 = m * a
results in:
> r;;
val it : DenseVector = seq [10.0; 10.0; 10.0]
> r2;;
val it : DenseVector = seq [10.0; 10.0; 10.0]
Matrix-Vector multiplication takes too much liberty here. I need to enforce proper dimensionality checks. Should I just work with DenseMatrix
, creating 1xn, nx1 matrices?
This basically makes Vectors
and DenseVectors
redundant in my case.