Gets and sets the value at the specified position.

Namespace:  CenterSpace.NMath.Matrix
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public double this[
	int row,
	int col
] { get; set; }
Visual Basic (Declaration)
Public Default Property Item ( _
	row As Integer, _
	col As Integer _
) As Double
Visual C++
public:
property double default[int row, int col] {
	double get (int row, int col);
	void set (int row, int col, double value);
}

Parameters

row
Type: System..::.Int32
col
Type: System..::.Int32

Remarks

Zero matrix elements are not stored, so assigning a non-zero value to a matrix element outside the bandwidth of the matrix raises an exception.

Exceptions

ExceptionCondition
CenterSpace.NMath.Matrix..::.NonModifiableElementExceptionThrown when an attempt is made to assign a non-zero value to a matrix element that is outside the matrix bandwidth.

See Also