public static INDArrayIndex [ ] nTimes ( INDArrayIndex copy , int n ) { INDArrayIndex [ ] ret = new INDArrayIndex [ n ] ; for ( int i = 0 ; i < n ; i ++ ) { ret [ i ] = copy ; } return ret ; }
Repeat a copy of copy n times