Package org.ssclab.pl.milp.util
Class A_Matrix
- java.lang.Object
-
- org.ssclab.pl.milp.util.A_Matrix
-
public final class A_Matrix extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intgetnCol()intgetnRow()static voidmain(String[] arg)double[]readArray(int row)doublereadValue(int row, int col)voidwriteDouble(double value)
-
-
-
Constructor Detail
-
A_Matrix
public A_Matrix(int row, int col, String path) throws FileNotFoundException, IOException- Throws:
FileNotFoundExceptionIOException
-
A_Matrix
public A_Matrix(double[][] A, String path) throws FileNotFoundException, IOException- Throws:
FileNotFoundExceptionIOException
-
-
Method Detail
-
getnRow
public int getnRow()
-
getnCol
public int getnCol()
-
main
public static void main(String[] arg) throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
writeDouble
public void writeDouble(double value) throws IOException- Throws:
IOException
-
readArray
public double[] readArray(int row) throws IOException- Throws:
IOException
-
readValue
public double readValue(int row, int col) throws IOException- Throws:
IOException
-
close
public void close() throws IOException- Throws:
IOException
-
-