Matrix<T>.Item(Func<T, Boolean>, Int 32) Property
Gets or sets the elements of a column of the matrix that meet the specified condition.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A vector.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public Vector<T> this[
Func<T, bool> condition,
int column
] { get; set; }
Parameters
- condition Func<T, Boolean>
- A delegate that represents a predicate that specifies the condition to test.
- column Int32
- The zero-based index of the column.
Property Value
Vector<T>A vector.
Remarks
This property allows you to directly retrieve or set the elements of a column 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
Argument | value is null |
Dimension | The length of value does not equal the number of elements for which condition is true. |