return super.elementIterator();
}
}
@Override public void validate() {
if (dimensions>shape.length) throw new VectorzException("Insufficient shape data");
if (dimensions>stride.length) throw new VectorzException("Insufficient stride data");
if ((offset<0)||(offset>=data.length)) throw new VectorzException("Offset out of bounds");
int[] endIndex=IntArrays.decrementAll(shape);
int endOffset=offset+IntArrays.dotProduct(endIndex, stride);
if ((endOffset<0)||(endOffset>data.length)) throw new VectorzException("End offset out of bounds");
super.validate();
}