Vector<T>.Item Property

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

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.

Vector<T>.Item(Func<T, Boolean>)

Gets or sets the elements of a vector that match the specified condition.
C#
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.

Vector<T>.Item(IEnumerable<Int32>)

Gets or sets the elements of the vector with the specified indexes.
C#
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.

Vector<T>.Item(Index)

Gets or sets a specific element of this vector.
C#
public T this[
	Index index
] { get; set; }

Parameters

index  Index
The index of the element.

Property Value

T

Vector<T>.Item(Int32)

Gets or sets a specific element of this vector.
C#
public T this[
	int index
] { get; set; }

Parameters

index  Int32
The zero-based index of the element.

Property Value

T

Implements

IList<T>.Item[Int32]

Vector<T>.Item(Range)

Gets or sets a range of elements of the vector.
C#
public virtual Vector<T> this[
	Range range
] { get; set; }

Parameters

range  Range
 

Property Value

Vector<T>

Exceptions

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

Vector<T>.Item(Range)

Gets or sets a range of elements of the vector.
C#
public Vector<T> this[
	Range range
] { get; set; }

Parameters

range  Range
 

Property Value

Vector<T>

Exceptions

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

Vector<T>.Item(Vector<Boolean>)

Gets or sets the elements of a vector that match the specified condition.
C#
public Vector<T> this[
	Vector<bool> mask
] { get; set; }

Parameters

mask  Vector<Boolean>
A boolean vector that specifies the elements to select.

Property Value

Vector<T>
A Vector<T> that contains the elements in this instance for which the corresponding element in mask is true.

See Also