예제 #1
0
 public LongMatrix2D assign(
     final LongMatrix2D y, final cern.colt.function.tlong.LongLongFunction function) {
   checkShape(y);
   if (y instanceof WrapperLongMatrix2D) {
     IntArrayList rowList = new IntArrayList();
     IntArrayList columnList = new IntArrayList();
     LongArrayList valueList = new LongArrayList();
     y.getNonZeros(rowList, columnList, valueList);
     assign(y, function, rowList, columnList);
   } else {
     super.assign(y, function);
   }
   return this;
 }