Click or drag to resize

DoubleMatrixAdd(DoubleMatrix, Double, DoubleMatrix) Method

Adds a scalar to a matrix

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static void Add(
	DoubleMatrix A,
	double s,
	DoubleMatrix B
)

Parameters

A  DoubleMatrix
A matrix.
s  Double
A scalar.
B  DoubleMatrix
A matrix whose contents are overwritten with the sum: B[i,j] = A[i,j] + s.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if A and B do not have the same dimensions.
See Also