/**
  * Construct a new shared signed 16-bit integer array buffer.
  *
  * @param theArray Shared array.
  * @param theRange Range of array elements to include in the buffer.
  */
 public SharedSigned16BitIntegerArrayBuf(SharedIntegerArray theArray, Range theRange) {
   super(theRange.length());
   myArray = theArray;
   myRange = theRange;
   myArrayOffset = theRange.lb();
   myStride = theRange.stride();
 }
Esempio n. 2
0
 /**
  * Construct a new shared long array buffer.
  *
  * @param theArray Shared array.
  * @param theRange Range of array elements to include in the buffer.
  */
 public SharedLongArrayBuf(SharedLongArray theArray, Range theRange) {
   super(theRange.length());
   myArray = theArray;
   myRange = theRange;
   myArrayOffset = theRange.lb();
   myStride = theRange.stride();
 }
Esempio n. 3
0
 /**
  * Construct a new Boolean matrix buffer. It is assumed that the rows and columns of
  * <TT>theMatrix</TT> are allocated and that each row of <TT>theMatrix</TT> has the same number of
  * columns.
  *
  * @param theMatrix Matrix.
  * @param theRowRange Range of rows to include.
  * @param theColRange Range of columns to include.
  */
 public BooleanMatrixBuf(boolean[][] theMatrix, Range theRowRange, Range theColRange) {
   super(theRowRange.length() * theColRange.length());
   myMatrix = theMatrix;
   myRowRange = theRowRange;
   myColRange = theColRange;
   myLowerRow = theRowRange.lb();
   myRowCount = theRowRange.length();
   myRowStride = theRowRange.stride();
   myLowerCol = theColRange.lb();
   myColCount = theColRange.length();
   myColStride = theColRange.stride();
 }