Numerical Components for .NET
Namespace: Extreme.Mathematics.LinearAlgebraAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 4.2.11333.0 (4.2.12253.0)
public struct Range : IEnumerable<int>, IEnumerable
Public Structure Range _ Implements IEnumerable(Of Integer), IEnumerable
public value class Range : IEnumerable<int>, IEnumerable
[<SealedAttribute>] type Range = struct interface IEnumerable<int> interface IEnumerable end
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.
Copyright © 2003-2013, Extreme Optimization. All rights reserved. Extreme Optimization, Complexity made simple, M#, and M Sharp are trademarks of ExoAnalytics Inc. Microsoft, Visual C#, Visual Basic, Visual Studio, Visual Studio.NET, and the Optimized for Visual Studio logo are registered trademarks of Microsoft Corporation.