Class DefaultMatrixFileWriter

java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.variables.MatrixFileWriter
mgui.io.domestic.variables.DefaultMatrixFileWriter
All Implemented Interfaces:
InterfaceIO, IconObject

public class DefaultMatrixFileWriter
extends MatrixFileWriter
  • Field Details

    • format

      public int format
    • precision

      public int precision
  • Constructor Details

    • DefaultMatrixFileWriter

      public DefaultMatrixFileWriter()
    • DefaultMatrixFileWriter

      public DefaultMatrixFileWriter​(java.io.File file)
    • DefaultMatrixFileWriter

      public DefaultMatrixFileWriter​(java.io.File file, int format)
  • Method Details

    • open

      public boolean open()
    • finalize

      public boolean finalize​(int m, int n)
    • finalizeAsciiSparse

      public boolean finalizeAsciiSparse​(int m, int n)
    • finalizeBinarySparse

      public boolean finalizeBinarySparse​(int m, int n)
    • close

      public boolean close()
    • isWriting

      public boolean isWriting()
    • openAsciiSparse

      public boolean openAsciiSparse()
    • openBinarySparse

      public boolean openBinarySparse()
    • writeLine

      public boolean writeLine​(int i, int j, double value)
    • writeLineAsciiSparse

      public boolean writeLineAsciiSparse​(int i, int j, double value)
    • writeLineBinarySparse

      public boolean writeLineBinarySparse​(int i, int j, double value)
    • write

      public boolean write​(InterfaceIOOptions options, ProgressUpdater progress_bar)
      Description copied from class: FileWriter
      Writes this object according to the given options. If loaded object is of type PersistentObject, this method should also set the file writer and reference URL for the object.
      Specified by:
      write in class FileWriter
      Returns:
    • writeMatrix

      public boolean writeMatrix​(Jama.Matrix m, ProgressUpdater progress_bar) throws java.io.IOException, InterfaceIOException
      Specified by:
      writeMatrix in class MatrixFileWriter
      Throws:
      java.io.IOException
      InterfaceIOException