Ejemplo n.º 1
0
 public void print() {
   MyPrintStream mps = new MyPrintStream(f);
   for (int i = 0; i < data.length; i++) {
     mps.println(StringConverter.arrayToTabString(data[i]));
   }
   mps.close();
 }
Ejemplo n.º 2
0
  private void printMatrix(String matrix, Matrix m) {
    MyPrintStream mps = new MyPrintStream(new File(matrix));
    double[][] vals = m.getArray();

    mps.println(header);
    for (int i = 0; i < vals.length; i++) {
      mps.println(StringConverter.arrayToTabString(vals[i]));
    }
  }