389390391392393394395
public int apply(int index) { return (index % rows) + 1; } }; return new ComputingIntVector(fn, rows * cols, AttributeMap.dim(rows, cols)); }
406407408409410411412
@Override public int apply(int index) { return (index / rows) + 1; } }; return new ComputingIntVector(fn, rows * cols, AttributeMap.dim(rows, cols)); }