Exemple #1
0
 public double GetScalarProduction([NotNull] VectorND_double b)
 {
     if (Dimension != b.Dimension)
     {
         throw new ArgumentException("Размерности векторов не совпадают");
     }
     return(GetProduction(b).Sum());
 }
Exemple #2
0
 public VectorND_double GetProduction([NotNull] VectorND_double b)
 {
     if (Dimension != b.Dimension)
     {
         throw new ArgumentException("Размерности векторов не совпадают");
     }
     return(new VectorND_double(new double[Dimension].Initialize(this, b, (i, v, bb) => v[i] * bb[i])));
 }