Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public BpEaRealVector(BpEaRealVector other) : this(other.array)
 {
 }
Exemplo n.º 3
0
 protected BpEaRealVector(BpEaRealVector original, Cloner cloner) : base(original, cloner)
 {
 }