public boolean isZero(int... indexes) { for (int i = 0; i < length(); i++) { int[] idx = getUnderlyingIndicesOf(i).asInt(); if (Arrays.equals(idx, translateToPhysical(indexes))) { return false; } } return true; }
/** * Return the index of the value corresponding to the indexes * @param indexes * @return index of the value * */ public int reverseIndexes(int... indexes) { long[] idx = translateToPhysical(ArrayUtil.toLongArray(indexes)); sort(); // FIXME: int cast return indexesBinarySearch(0, (int) length(), ArrayUtil.toInts(idx)); }
long[] physicalIndexes = isView() ? translateToPhysical(indexes) : indexes;