Click or drag to resize

IndexArray Class

Class IndexArray presents 0-based indices to the user, but uses 1-based indices internally.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreIndexArray

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public class IndexArray : ICloneable

The IndexArray type exposes the following members.

Constructors
 NameDescription
Public methodIndexArray Constructs an empty index array instance.
Public methodIndexArray(Int32) Constructs an IndexArray instance with the given length. All index values are initialized to zero.
Public methodIndexArray(Int32) Constructs an IndexArray instance with the given unique Indices.
Top
Properties
 NameDescription
Public propertyItem Gets the index at the ith position.
Public propertyLength Gets the length of the index array.
Top
Methods
 NameDescription
Public methodClone Creates a deep copy of this index array.
Public methodContainsDuplicates Determines if the index array contains duplicate values.
Public methodExists Determines if the given index exists is self.
Public methodFindIndex(Int32) Searches for the given value in the index array.
Public methodFindIndex(Int32, Int32) Searches for the given index from the given start index for the given value.
Public methodGetHashCode Get the hash code for this index array.
(Overrides ObjectGetHashCode)
Top
Operators
 NameDescription
Public operatorStatic member(IndexArray to Int32) Implicit conversion from an IndexArray to an int array/
Top
See Also