/** * Gets the <b>stride</b> value for the array projection. The parameter * <code>dimension</code> is checked against the instance of the * <code>SDArray</code> for bounds violation. */ public int getStride(int dimension) throws InvalidDimensionException { DArrayDimension d = getDimension(dimension); return (d.getStride()); }
/** * Gets the <b>start</b> value for the array projection. The parameter * <code>dimension</code> is checked against the instance of the * <code>SDArray</code> for bounds violation. */ public int getStart(int dimension) throws InvalidDimensionException { DArrayDimension d = getDimension(dimension); return (d.getStart()); }
/** * Gets the <b>stop</b> value for the array projection. The parameter * <code>dimension</code> is checked against the instance of the * <code>SDArray</code> for bounds violation. */ public int getStop(int dimension) throws InvalidDimensionException { DArrayDimension d = getDimension(dimension); return (d.getStop()); }
/** * Set the projection information for this dimension. The * <code>DArrayDimension</code> associated with the * <code>dimension</code> specified is retrieved and the * <code>start</code> <code>stride</code> and <code>stop</code> * parameters are passed to its <code>setProjection()</code> method. * * @param dimension The dimension that is to be modified. * @param start The starting point for the projection of this * <code>DArrayDimension</code>. * @param stride The size of the stride for the projection of this * <code>DArrayDimension</code>. * @param stop The stopping point for the projection of this * <code>DArrayDimension</code>. * @see DArray * @see DArrayDimension */ public void setProjection(int dimension, int start, int stride, int stop) throws InvalidDimensionException { DArrayDimension d = getDimension(dimension); d.setProjection(start, stride, stop); }