Matrix<T>.Item(Int 32, Vector<Boolean>) Property
Gets or sets the elements of a row of this matrix.
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[
int row,
Vector<bool> mask
] { get; set; }
Parameters
- row Int32
- The zero-based index of the row.
- mask Vector<Boolean>
- A boolean vector that specifies the elements to select.
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 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
Argument | value is null |
Dimension | The length of value does not equal the number of true elements of mask. |