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 java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getnCol()
int
getnRow()
static void
main(java.lang.String[] arg)
double[]
readArray(int row)
double
readValue(int row, int col)
void
writeDouble(double value)
-
-
-
Constructor Detail
-
A_Matrix
public A_Matrix(int row, int col, java.lang.String path) throws java.io.FileNotFoundException, java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
-
A_Matrix
public A_Matrix(double[][] A, java.lang.String path) throws java.io.FileNotFoundException, java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
-
-
Method Detail
-
getnRow
public int getnRow()
-
getnCol
public int getnCol()
-
main
public static void main(java.lang.String[] arg) throws java.io.FileNotFoundException, java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
-
writeDouble
public void writeDouble(double value) throws java.io.IOException
- Throws:
java.io.IOException
-
readArray
public double[] readArray(int row) throws java.io.IOException
- Throws:
java.io.IOException
-
readValue
public double readValue(int row, int col) throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
-