Hi,
I was surprised to find that I was unable to Vector.average or Seq.average over vectors running into this error:
Error: The type 'vector' does not support any operators named 'DivideByInt' Attempting to add this using type extensions ran into the
well-known operator limitation of type extensions (I'd love to see this fixed in the next Beta!!)
type Microsoft.FSharp.Math.Vector<'a> with
[<OverloadID("VectorFloat")>]
static member DivideByInt (v:Vector<float>, i:int) = v * (1./ float i)Can anyone see a workaround?
regards,
Danny