Vector<T>.Item Property
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Item[Func<T, Boolean>] | Gets or sets the elements of a vector that match the specified condition. |
Item[IEnumerable<Int32>] | Gets or sets the elements of the vector with the specified indexes. |
Item[Index] | Gets or sets a specific element of this vector. |
Item[Int32] | Gets or sets a specific element of this vector. |
Item[Range] | Gets or sets a range of elements of the vector. |
Item[Range] | Gets or sets a range of elements of the vector. |
Item[Vector<Boolean>] | Gets or sets the elements of a vector that match the specified condition. |
Item(Func<T, Boolean>)
Gets or sets the elements of a vector that match the specified condition.
public virtual Vector<T> this[
Func<T, bool> condition
] { get; set; }
Parameters
- condition Func<T, Boolean>
- A delegate that represents a predicate that specifies the condition to test.
Property Value
Vector<T>A Vector<T> that contains the elements in this instance for which condition returns true.
Item(IEnumerable<Int32>)
Gets or sets the elements of the vector with the specified indexes.
public virtual Vector<T> this[
IEnumerable<int> indexes
] { get; set; }
Parameters
- indexes IEnumerable<Int32>
- A sequence of integers.
Return Value
Vector<T>A Vector<T> containing a sequence of elements of this instance whose index is the corresponding value in indexes.
Item(Index)
Gets or sets a specific element of this vector.
public T this[
Index index
] { get; set; }
Parameters
- index Index
- The index of the element.
Property Value
TItem(Int32)
Gets or sets a specific element of this vector.
public T this[
int index
] { get; set; }
Parameters
- index Int32
- The zero-based index of the element.
Property Value
TImplements
IList<T>.Item[Int32]Item(Range)
Gets or sets a range of elements of the vector.
public virtual Vector<T> this[
Range range
] { get; set; }
Parameters
- range Range
Property Value
Vector<T>Exceptions
Argument | value is null. |
Dimension | The length of the range specified by range does not equal the length of value. |
Item(Range)
Gets or sets a range of elements of the vector.
Exceptions
Argument | value is null. |
Dimension | The length of the range specified by range does not equal the length of value. |
Item(Vector<Boolean>)
Gets or sets the elements of a vector that match the specified condition.
public Vector<T> this[
Vector<bool> mask
] { get; set; }
Parameters
Property Value
Vector<T>A Vector<T> that contains the elements in this instance for which the corresponding element in mask is true.