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

DoPointwiseDivide() protected method

Pointwise divide this matrix by another matrix and stores the result into the result matrix.
protected DoPointwiseDivide ( Matrix divisor, Matrix result ) : void
divisor Matrix The matrix to pointwise divide this one by.
result Matrix The matrix to store the result of the pointwise division.
return void
        protected override void DoPointwiseDivide(Matrix<float> divisor, Matrix<float> result)
        {
            var denseOther = divisor as DenseMatrix;
            var denseResult = result as DenseMatrix;

            if (denseOther == null || denseResult == null)
            {
                base.DoPointwiseDivide(divisor, result);
            }
            else
            {
                Control.LinearAlgebraProvider.PointWiseDivideArrays(_values, denseOther._values, denseResult._values);
            }
        }