Matrix<T>.Item(Int32, Func<T, Boolean>) Property

Gets or sets the elements of a row of the matrix that meet the specified condition.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public Vector<T> this[
	int row,
	Func<T, bool> condition
] { get; set; }

Parameters

row  Int32
The zero-based index of the row.
condition  Func<T, Boolean>
A delegate that represents a predicate that specifies the condition to test.

Property Value

Vector<T>
A vector.

Remarks

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

Getting the value of this property returns a new vector with the elements for which condition is true. Setting the value of this property sets the selected elements to the values in the vector that is provided.

Exceptions

ArgumentNullExceptionvalue is null
DimensionMismatchException The length of value does not equal the number of elements for which condition is true.

See Also