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, uminus
protected 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
ReadableASCII
readASCII
in interface ReadableASCII
in
- source to read from.IOException
- an error reading inputpublic String asciiHeader()
ReadableASCII
asciiHeader
in interface ReadableASCII
asciiHeader
in interface WriteableASCII
public void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
in
- source to read from.IOException
- an error reading inputprotected void setData(int m, int n, double[][] data)
public byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
public void writeASCII(PrintWriter out) throws IOException
WriteableASCII
writeASCII
in interface WriteableASCII
out
- sink to write toIOException
- an error writing to outpublic void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
out
- sink to write toIOException
- an error writing to out