Beispiel #1
0
    public static MathNet.Numerics.LinearAlgebra.Vector <float> AddSubVector(
        this MathNet.Numerics.LinearAlgebra.Vector <float> vec,
        MathNet.Numerics.LinearAlgebra.Vector <float> sub)
    {
        for (int i = 0; i < sub.Count; i++)  // TODO: test performance
        {
            vec.At(i, vec.At(i) + sub.At(i));
        }

        return(vec);
    }