Matrix<T>.Item(Range, Range) Property

Gets or sets the elements of a sub-matrix of this matrix.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public Matrix<T> this[
	Range rowRange,
	Range columnRange
] { get; set; }

Parameters

rowRange  Range
A Range value that specifies the range of rows that are to make up the new matrix.
columnRange  Range
A Range value that specifies the range of columns that are to make up the new matrix.

Property Value

Matrix<T>
A vector.

Remarks

This property allows you to directly retrieve or set the elements of a row of this instance.

Getting the value of this property returns a vector that points to the specified elements of this instance. Setting the value of this property sets the specified elements to the values in the vector that is provided.

Exceptions

ArgumentNullExceptionvalue is null
DimensionMismatchException The length of the range specified by rowRange does not equal the number of rows of value.

-or-

The length of the range specified by columnRange does not equal the number of columns of value.

See Also