org.ojalgo.access
Class AccessUtils

java.lang.Object
  extended by org.ojalgo.access.AccessUtils

public abstract class AccessUtils
extends Object


Method Summary
static int index(int[] aStructure, int[] aReference)
           
static int size(int[] aStructure)
           
static int size(int[] aStructure, int aDimension)
           
static int step(int[] aStructure, int aDimension)
           
static int step(int[] aStructure, int[] aReferenceIncrement)
          A more complex/general version of step(int[], int).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

index

public static int index(int[] aStructure,
                        int[] aReference)
Parameters:
aStructure - An access structure
aReference - An access element reference
Returns:
The index of that element

size

public static int size(int[] aStructure)
Parameters:
aStructure - An access structure
Returns:
The size of an access with that structure

size

public static int size(int[] aStructure,
                       int aDimension)
Parameters:
aStructure - An access structure
aDimension - A dimension index
Returns:
The size of that dimension

step

public static int step(int[] aStructure,
                       int aDimension)
Parameters:
aStructure - An access structure
aDimension - A dimension index indication a direction
Returns:
The step size (index change) in that direction

step

public static int step(int[] aStructure,
                       int[] aReferenceIncrement)
A more complex/general version of step(int[], int).

Parameters:
aStructure - An access structure
aReferenceIncrement - A vector indication a direction (and size)
Returns:
The step size (index change)