Пример #1
0
        public double DotProduct(BpEaRealVector other)
        {
            if (other.Length != Length)
            {
                throw new ArgumentException("Vectors are of unequal length.");
            }
            var dotProd = 0.0;

            for (var i = 0; i < Length; i++)
            {
                dotProd += this[i] * other[i];
            }
            return(dotProd);
        }
Пример #2
0
 public BpEaRealVector(BpEaRealVector other) : this(other.array)
 {
 }
Пример #3
0
 protected BpEaRealVector(BpEaRealVector original, Cloner cloner) : base(original, cloner)
 {
 }