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 void
close()
int
getnCol()
int
getnRow()
static void
main(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, String path) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
A_Matrix
public A_Matrix(double[][] A, String path) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
-
Method Detail
-
getnRow
public int getnRow()
-
getnCol
public int getnCol()
-
main
public static void main(String[] arg) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
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
-
-