Adds a multiple of a Matrix to this Matrix and returns the result.

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Overridable Function Add ( _
	transposeA As TransposeOperation, _
	transposeB As TransposeOperation, _
	factor As Double, _
	matrix As Matrix _
) As Matrix
C#
public virtual Matrix Add (
	TransposeOperation transposeA,
	TransposeOperation transposeB,
	double factor,
	Matrix matrix
)
C++
public:
virtual Matrix^ Add (
	TransposeOperation transposeA, 
	TransposeOperation transposeB, 
	double factor, 
	Matrix^ matrix
)

Parameters

transposeA (Extreme.Mathematics.LinearAlgebra.TransposeOperation)
A TransposeOperation value that indicates which operation, if any, should be performed on this instance before adding.
transposeB (Extreme.Mathematics.LinearAlgebra.TransposeOperation)
A TransposeOperation value that indicates which operation, if any, should be performed on the matrix matrix before adding.
factor (System.Double)
Multiplier for the matrix matrix.
matrix (Extreme.Mathematics.LinearAlgebra.Matrix)
A Matrix.

Return Value

A Matrix that is the sum of the specified form of this matrix and the matrix matrix.

Remarks

This method does not change this instance. The dimensions of the two matrices must be compatible. Otherwise an exception of type DimensionMismatchException is thrown.

Exceptions

ExceptionCondition
ArgumentNullExceptionmatrix is nullNothingnullptr.
DimensionMismatchExceptionThe dimensions of this instance and the matrix matrix are not compatible for the specified operation.