public class ReadWriteableMatrix extends Jama.Matrix implements ReadWriteable
| Modifier | Constructor and Description | 
|---|---|
| protected  | ReadWriteableMatrix()Construct a new matrix of zero size. | 
|   | ReadWriteableMatrix(double[][] data)Construct a matrix using the provided 2-D double array. | 
|   | ReadWriteableMatrix(int rows,
                   int cols)Construct a new matrix of the given size | 
|   | ReadWriteableMatrix(Jama.Matrix data)Construct a matrix using the provided matrix. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | asciiHeader()Header for ascii input. | 
| byte[] | binaryHeader()Header for binary input. | 
| void | readASCII(Scanner in)Read internal state from in. | 
| void | readBinary(DataInput in)Read internal state from in. | 
| protected void | setData(int m,
       int n,
       double[][] data) | 
| void | writeASCII(PrintWriter out)Write the content of this as ascii to out. | 
| void | writeBinary(DataOutput out)Write the content of this as binary to out. | 
arrayLeftDivide, arrayLeftDivideEquals, arrayRightDivide, arrayRightDivideEquals, arrayTimes, arrayTimesEquals, chol, clone, cond, constructWithCopy, copy, det, eig, get, getArray, getArrayCopy, getColumnDimension, getColumnPackedCopy, getMatrix, getMatrix, getMatrix, getMatrix, getRowDimension, getRowPackedCopy, identity, inverse, lu, minus, minusEquals, norm1, norm2, normF, normInf, plus, plusEquals, print, print, print, print, qr, random, rank, read, set, setMatrix, setMatrix, setMatrix, setMatrix, solve, solveTranspose, svd, times, times, timesEquals, trace, transpose, uminusprotected ReadWriteableMatrix()
public ReadWriteableMatrix(double[][] data)
data - the datapublic ReadWriteableMatrix(int rows, int cols)
rows - Number of rowscols - Number of columnspublic ReadWriteableMatrix(Jama.Matrix data)
data - the datapublic void readASCII(Scanner in) throws IOException
ReadableASCIIreadASCII in interface ReadableASCIIin - source to read from.IOException - an error reading inputpublic String asciiHeader()
ReadableASCIIasciiHeader in interface ReadableASCIIasciiHeader in interface WriteableASCIIpublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryin - source to read from.IOException - an error reading inputprotected void setData(int m, int n, double[][] data)
public byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarypublic void writeASCII(PrintWriter out) throws IOException
WriteableASCIIwriteASCII in interface WriteableASCIIout - sink to write toIOException - an error writing to outpublic void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinaryout - sink to write toIOException - an error writing to out