Matrix<T>.AddInPlace Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

AddInPlace(T) Adds a scalar to a matrix.
AddInPlace(Matrix<T>) Adds another matrix to this matrix in-place.
AddInPlace(Vector<T>, Dimension) Adds a vector broadcast along the specified dimension to this matrix in-place.

AddInPlace(T)

Adds a scalar to a matrix.
C#
public virtual Matrix<T> AddInPlace(
	T value
)

Parameters

value  T
The value to add.

Return Value

Matrix<T>
A reference to this instance.

AddInPlace(Matrix<T>)

Adds another matrix to this matrix in-place.
C#
public Matrix<T> AddInPlace(
	Matrix<T> matrix
)

Parameters

matrix  Matrix<T>
The matrix to add.

Return Value

Matrix<T>
A reference to this instance.

Exceptions

ArgumentNullException

matrix is null.

DimensionMismatchException

The length of matrix does not equal the length of this instance.

AddInPlace(Vector<T>, Dimension)

Adds a vector broadcast along the specified dimension to this matrix in-place.
C#
public Matrix<T> AddInPlace(
	Vector<T> vector,
	Dimension broadcastDimension
)

Parameters

vector  Vector<T>
The vector to broadcast and add.
broadcastDimension  Dimension
A value that specifies whether the elements in vector should be broadcast across rows or columns.

Return Value

Matrix<T>
A reference to this instance.

Exceptions

ArgumentNullException

vector is null.

DimensionMismatchException

The length of vector does not equal the length of this instance.

See Also