Click or drag to resize
Accord.NET (logo) MatrixAdd Method

Note: This API is now obsolete.

Adds a vector to a column or row of a matrix.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.4.0
Syntax
[ObsoleteAttribute("Please use the Elementwise class instead.")]
public static double[,] Add(
	double[,] matrix,
	double[] vector,
	int dimension
)
Request Example View Source

Parameters

matrix
Type: SystemDouble
A matrix.
vector
Type: SystemDouble
A vector.
dimension
Type: SystemInt32
Pass 0 if the vector should be added row-wise, or 1 if the vector should be added column-wise.

Return Value

Type: Double
See Also