public String toString(DoubleMatrix3D matrix){
  StringBuffer buf=new StringBuffer();
  boolean oldPrintShape=this.printShape;
  this.printShape=false;
  for (int slice=0; slice < matrix.slices(); slice++) {
    if (slice != 0)     buf.append(sliceSeparator);
    buf.append(toString(matrix.viewSlice(slice)));
  }
  this.printShape=oldPrintShape;
  if (printShape)   buf.insert(0,shape(matrix) + "\n");
  return buf.toString();
}

public String toString ( DoubleMatrix3D matrix ) { StringBuffer buf = new StringBuffer ( ) ; boolean oldPrintShape = this . printShape ; this . printShape = false ; for ( int slice = 0 ; slice < matrix . slices ( ) ; slice ++ ) { if ( slice != 0 ) buf . append ( sliceSeparator ) ; buf . append ( toString ( matrix . viewSlice ( slice ) ) ) ; } this . printShape = oldPrintShape ; if ( printShape ) buf . insert ( 0 , shape ( matrix ) + "\n" ) ; return buf . toString ( ) ; }
returns a string representation of the given matrix .
