Range Structure
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.2
public struct Range : IEnumerable<int>, IEnumerable
- Implements
- IEnumerable<Int32>, IEnumerable
Remarks
Use a Range structure to represent a range of indexes for a vector or matrix. The range runs from StartIndex to EndIndex with increments of Stride.
StartIndex is guaranteed to be the first index in the range. The last index in the range is the largest number of the form StartIndex + kStride that is less than or equal to EndIndex.
The Stride property can also be negative. In this case, the last index in the range is the smallest number of the form StartIndex + kStride that is greater than or equal to EndIndex.
The special range All can be used to represent a range over an entire row, column, or vector, without having to specify the EndIndex explicitly.
Range objects are immutable. Once created, the start index, end index and stride properties cannot be modified. Instead, create a new Range instance.
Constructors
Range( | Constructs a new Range. |
Range( | Constructs a new Range. |
Properties
End | Gets the index of the last element in the range. |
Start | Gets the index of the first element in the range. |
Stride | Gets the increment for the index. |
Methods
Equals |
Determines whether the specified Object
is equal to the current Range.
(Overrides ValueType.Equals(Object)) |
Get |
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode()) |
Get | Gets the Type of the current instance. (Inherited from Object) |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType) |
Operators
Equality( | Returns whether two instances of Range are equal. |
Inequality( | Returns whether two instances of Range are different. |
Fields
All | Represents the range over an entire row, column, or vector. |
Extension Methods
Group<Int32> |
Returns a grouping by the unique elements in a sequence.
(Defined by Grouping) |
Group<Int32> |
Returns a grouping by the unique elements in a sequence
using the specified comparer to determine equality.
(Defined by Grouping) |
Sequence |
Returns whether the specified values in the sequences are close to each other
within the default absolute and relative tolerances.
(Defined by Compare) |
Sequence |
Returns whether the values in the specified sequence are all close to the reference value
within the default absolute and relative tolerances.
(Defined by Compare) |
Sequence |
Returns whether the specified values in the sequences are close to each other
within the given absolute and relative tolerances.
(Defined by Compare) |
Sequence |
Returns whether the values in the specified sequence are all close to the reference value
within the given absolute and relative tolerances.
(Defined by Compare) |
Sequence |
Returns whether the specified values in the sequences are close to each other
within the default absolute tolerance.
(Defined by Compare) |
Sequence |
Returns whether the values in the specified sequence are all close to the reference value
within the default absolute tolerance.
(Defined by Compare) |
Sequence |
Returns whether the specified values in the sequences are close to each other
within the given absolute tolerance.
(Defined by Compare) |
Sequence |
Returns whether the values in the specified sequence are all close to the reference value
within the given absolute tolerance.
(Defined by Compare) |
Sequence |
Returns whether the specified values in the sequences are close to each other
within the default relative tolerance.
(Defined by Compare) |
Sequence |
Returns whether the values in the specified sequence are all close to the reference value
within the default relative tolerance.
(Defined by Compare) |
Sequence |
Returns whether the specified values in the sequences are close to each other
within the given relative tolerance.
(Defined by Compare) |
Sequence |
Returns whether the values in the specified sequence are all close to the reference value
within the given relative tolerance.
(Defined by Compare) |
Sequence |
Returns whether the specified values in the sequences are close to each other
within the given tolerance expressed in ULPs (units in the last place).
(Defined by Compare) |
Sequence |
Returns whether the values in the specified sequence are all close to the reference value
within the given tolerance expressed in ULPs (units in the last place).
(Defined by Compare) |
Standard |
Returns the standard deviation of the elements of a sequence.
(Defined by Stats) |
Sum<Int32> |
Computes the sum of the sequence of values.
(Defined by ArrayMath) |
Sum<Int32, U> |
Computes the sum of the sequence of values that are obtained
by invoking a transform function on each element of the input sequence.
(Defined by ArrayMath) |
Sum<Int32, T2, U> |
Computes the sum of the sequence of values that are obtained
by invoking a transform function on each pair of elements of
the input sequences.
(Defined by ArrayMath) |