@ Override public T copy ( ) { T ret = createNewInstance ( ) ; int N = getDimension ( ) ; for ( int i = 0 ; i < N ; i ++ ) { ret . setIdx ( i , getIdx ( i ) ) ; } return ret ; }
Generic copy routine . It is recommended that this be overridden with a faster implementation .