MathNet.Numerics.LinearAlgebra.Single.DenseMatrix.DoPointwiseMultiply C# (CSharp) Method

DoPointwiseMultiply() protected method

Pointwise multiplies this matrix with another matrix and stores the result into the result matrix.
protected DoPointwiseMultiply ( Matrix other, Matrix result ) : void
other Matrix The matrix to pointwise multiply with this one.
result Matrix The matrix to store the result of the pointwise multiplication.
return void
        protected override void DoPointwiseMultiply(Matrix<float> other, Matrix<float> result)
        {
            var denseOther = other as DenseMatrix;
            var denseResult = result as DenseMatrix;

            if (denseOther == null || denseResult == null)
            {
                base.DoPointwiseMultiply(other, result);
            }
            else
            {
                Control.LinearAlgebraProvider.PointWiseMultiplyArrays(_values, denseOther._values, denseResult._values);
            }
        }