|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgromacs.io.IOMath
public class IOMath
This class contains static methods for IO of ArrayList and Matrix objects
Constructor Summary | |
---|---|
IOMath()
|
Method Summary | |
---|---|
static java.util.ArrayList<java.lang.Double> |
readArrayListFromFile(java.lang.String filename)
Reads ArrayList from the given file |
static jama.Matrix |
readMatrixFromFile(java.lang.String filename)
Reads Matrix from the given file |
static void |
writeArrayListToFile(java.util.ArrayList<java.lang.Double> list,
java.lang.String filename)
Writes an ArrayList to the given file |
static void |
writeMatrixToFile(jama.Matrix M,
java.lang.String filename)
Writes a Matrix to the given file |
static void |
writeScalarToFile(double scalar,
java.lang.String filename)
Writes a scalar to the given file |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IOMath()
Method Detail |
---|
public static java.util.ArrayList<java.lang.Double> readArrayListFromFile(java.lang.String filename) throws java.io.IOException
filename
- file name
java.io.IOException
public static jama.Matrix readMatrixFromFile(java.lang.String filename) throws java.io.IOException
filename
- file name
java.io.IOException
public static void writeScalarToFile(double scalar, java.lang.String filename) throws java.io.IOException
scalar
- the scalar valuefilename
- file name
java.io.IOException
public static void writeArrayListToFile(java.util.ArrayList<java.lang.Double> list, java.lang.String filename) throws java.io.IOException
list
- the ArrayList objectfilename
- file name
java.io.IOException
public static void writeMatrixToFile(jama.Matrix M, java.lang.String filename) throws java.io.IOException
M
- the Matrix objectfilename
- file name
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |