コード例 #1
0
 static public mat operator *(double value,mat obj)
 {
     mat result = new mat(obj);
     result.reLine();
     while (result.it.line != null)
     {
         while (result.it.row != null)
         {
             result.times(result.it.line.lineId, result.it.row.rowId, value);
             result.it.nextRow();
         }
         result.it.nextLine();
     }
     return result;
 }
コード例 #2
0
 public mat(mat tar)
 {
     baseLine = new lineNode();
     baseLine.lineId = -1;
     it = new iterator();
     it.preline = baseLine;
     it.line = null;
     it.row = null;
     it.prerow = null;
     tar.reLine();
     lineCount = tar.lineCount;
     rowCount = tar.rowCount;
     while (tar.it.line!=null)
     {
         while (tar.it.row != null)
         {
             set(tar.it.line.lineId, tar.it.row.rowId, tar.it.row.value);
             tar.it.nextRow();
         }
         tar.it.nextLine();
     }
 }