MathNet.Numerics.LinearAlgebra.Complex32.DenseMatrix.DoMultiply C# (CSharp) Method

DoMultiply() protected method

Multiplies each element of the matrix by a scalar and places results into the result matrix.
protected DoMultiply ( Complex32 scalar, Matrix result ) : void
scalar Complex32 The scalar to multiply the matrix with.
result Matrix The matrix to store the result of the multiplication.
return void
        protected override void DoMultiply(Complex32 scalar, Matrix<Complex32> result)
        {
            var denseResult = result as DenseMatrix;
            if (denseResult == null)
            {
                base.DoMultiply(scalar, result);
            }
            else
            {
                Control.LinearAlgebraProvider.ScaleArray(scalar, _values, denseResult._values);
            }
        }

Same methods

DenseMatrix::DoMultiply ( Matrix other, Matrix result ) : void
DenseMatrix::DoMultiply ( Vector rightSide, Vector result ) : void