FastQuant.Quant.Vector.Sqr C# (CSharp) Method

Sqr() public method

public Sqr ( ) : Vector
return Vector
        public Vector Sqr()
        {
            EnsureValid(this);
            var v = new Vector(NRows);
            Parallel.For(0, this.NRows, i => v[i] = this.Elements[i] * this.Elements[i]);
            return v;
        }