|
|||||||||
| Home >> All >> jmat >> [ data overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
jmat.data
Class Matrix

java.lang.Objectjmat.data.Matrix
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- Direct Known Subclasses:
- RandomMatrix
- public class Matrix
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
- extends java.lang.Object
The Matrix Class provides the fundamental operations of numerical linear algebra (from the package JAMA), basic manipulations, and visualization tools. All the operations in this version of the Matrix Class involve only real matrices.
- Version:
- 1.0
| Field Summary | |
protected double[][] |
A
Array for internal storage of elements. |
protected int |
m
Row and column dimensions. |
protected int |
n
Row and column dimensions. |
| Constructor Summary | |
Matrix(double[][] B)
Construct a matrix from a 2D-array. |
|
Matrix(double[][] B,
int m,
int n)
Construct a matrix from a 2D-array. |
|
Matrix(double[] vals,
int m)
Construct a matrix from a one-dimensional packed array |
|
Matrix(int m,
int n)
Construct an m-by-n matrix of zeros. |
|
Matrix(int m,
int n,
double s)
Construct an m-by-n constant matrix. |
|
| Method Summary | |
void |
checkColumnDimension(int column)
Check if number of Columns(A) == column. |
void |
checkColumnDimension(Matrix B)
Check if number of Columns(A) == number of Columns(B). |
static void |
checkIndicesDimensions(int[][] i,
int[][] j)
Check if indices have the same length. |
static void |
checkIndicesLengths(int[] i,
int[] j)
Check if indices have the same length. |
void |
checkMatrixDimensions(int m2,
int n2)
Check if size(A) == m2*n2. |
void |
checkMatrixDimensions(Matrix B)
Check if size(A) == size(B). |
void |
checkRowDimension(int row)
Check if number of Rows(A) == row. |
void |
checkRowDimension(Matrix B)
Check if number of Rows(A) == number of Rows(B). |
jmat.data.matrixDecompositions.CholeskyDecomposition |
chol()
Cholesky Decomposition |
java.lang.Object |
clone()
Clone the Matrix object. |
double |
cond()
Matrix condition (2 norm) |
Matrix |
copy()
Make a deep copy of a matrix |
double |
det()
Matrix determinant |
Matrix |
diag()
Matrix diagonal extraction. |
Matrix |
diag(int num)
Matrix diagonal extraction. |
Matrix |
dist(Matrix B)
Generate a matrix, each column contents the Euclidian distance between the columns. |
Matrix |
distColumns(Matrix B)
Generate a matrix, each line contents the Euclidian distance between the lines. |
Matrix |
distRows(Matrix B)
Generate a matrix, each column contents the Euclidian distance between the columns. |
Matrix |
divide(double s)
Divide a matrix by a scalar, C = A/s |
Matrix |
divide(Matrix B)
Linear algebraic matrix division, A / B |
Matrix |
ebeAbs()
Element-by-element inverse |
Matrix |
ebeCos()
Element-by-element cosinus |
Matrix |
ebeDivide(double s)
Divide a matrix by a scalar, C = A/s |
Matrix |
ebeDivide(Matrix B)
Element-by-element right division, C = A./B |
Matrix |
ebeExp()
Element-by-element exponential |
Matrix |
ebeFun(jmat.function.DoubleFunction fun)
Element-by-element methodName evaluation |
Matrix |
ebeIndFun(jmat.function.DoubleFunction fun)
Element-by-element indicial methodName evaluation |
Matrix |
ebeInv()
Element-by-element inverse |
Matrix |
ebeLog()
Element-by-element neperian logarithm |
Matrix |
ebeMinus(double s)
Sub a scalar to each element of a matrix, C = A .- B |
Matrix |
ebePlus(double s)
Add a scalar to each element of a matrix, C = A .+ s |
Matrix |
ebePow(double p)
Element-by-element power |
Matrix |
ebePow(Matrix B)
Element-by-element power |
Matrix |
ebeSin()
Element-by-element sinus |
Matrix |
ebeSqrt()
Element-by-element inverse |
Matrix |
ebeTimes(double s)
Multiply a matrix by a scalar, C = s*A |
Matrix |
ebeTimes(Matrix B)
Element-by-element multiplication, C = A.*B |
jmat.data.matrixDecompositions.EigenvalueDecomposition |
eig()
Eigenvalue Decomposition |
int[][] |
find(double e)
Find an element |
int[][] |
find(java.lang.String test,
double e)
Find elements verifying a boolean test |
Matrix |
findMatrix(double e)
Find an element |
Matrix |
findMatrix(java.lang.String test,
double e)
Find elements verifying a boolean test |
static Matrix |
fromFile(java.io.File file)
Load the Matrix from a file |
static Matrix |
fromFile(java.lang.String fileName)
Load the Matrix from a file. |
static Matrix |
fromMMLElement(org.jdom.Element e)
Load the Matrix from a MathML Element |
static Matrix |
fromMMLFile(java.io.File file)
Load the Matrix from a MathML File |
static Matrix |
fromString(java.lang.String s)
Load the Matrix from a String |
Matrix |
get(int[][] I,
int[][] J)
Get a several elements. |
Matrix |
get(int[] I,
int[] J)
Get a several elements in Column. |
double |
get(int i,
int j)
Get a single element. |
double[][] |
getArray()
Access the internal two-dimensional array. |
double[][] |
getArrayCopy()
Copy the internal two-dimensional array. |
Matrix |
getColumn(int c)
Copy an internal one-dimensional array from a column. |
double[] |
getColumnArrayCopy(int c)
Copy an internal one-dimensional array from a column. |
int |
getColumnDimension()
Get column dimension. |
double[] |
getColumnPackedCopy()
Make a one-dimensional column packed copy of the internal array. |
Matrix |
getColumns(int[] c)
Copy an internal one-dimensional array from a column. |
Matrix |
getMatrix(int i0,
int i1,
int j0,
int j1)
Get a submatrix. |
Matrix |
getRow(int l)
Copy an internal one-dimensional array from a row. |
double[] |
getRowArrayCopy(int l)
Copy an internal one-dimensional array from a row. |
int |
getRowDimension()
Get row dimension. |
double[] |
getRowPackedCopy()
Make a one-dimensional row packed copy of the internal array. |
Matrix |
getRows(int[] l)
Copy an internal one-dimensional array from many rows. |
static Matrix |
identity(int m,
int n)
Generate identity matrix |
static Matrix |
increment(int m,
int n,
double begin,
double pitch)
Generate a matrix with a constant pitch beetwen each row |
static Matrix |
incrementColumns(int m,
int n,
double begin,
double pitch)
Generate a matrix with a constant pitch beetwen each column |
static Matrix |
incrementRows(int m,
int n,
double begin,
double pitch)
Generate a matrix with a constant pitch beetwen each row |
Matrix |
inverse()
Matrix inverse or pseudoinverse |
jmat.data.matrixDecompositions.LUDecomposition |
lu()
LU Decomposition |
Matrix |
max()
Generate a row matrix, each column contents the maximum value of the columns. |
Matrix |
maxColumns()
Generate a column matrix, each line contents the maximum value of the lines. |
Matrix |
maxRows()
Generate a row matrix, each column contents the maximum value of the columns. |
Matrix |
merge(Matrix B)
Matrix merge. |
static Matrix |
merge(Matrix[] Xs)
Generate a matrix from other matrix. |
Matrix |
mergeColumns(Matrix B)
Matrix merge. |
static Matrix |
mergeColumns(Matrix[] Xs)
Generate a matrix from other matrix. |
Matrix |
mergeRows(Matrix B)
Matrix merge. |
static Matrix |
mergeRows(Matrix[] Xs)
Generate a matrix from other matrix. |
Matrix |
min()
Generate a row matrix, each column contents the minimum value of the columns. |
Matrix |
minColumns()
Generate a column matrix, each line contents the minimum value of the lines. |
Matrix |
minRows()
Generate a row matrix, each column contents the minimum value of the columns. |
Matrix |
minus(Matrix B)
C = A - B |
double |
norm1()
One norm |
double |
norm2()
Two norm |
double |
normF()
Frobenius norm |
double |
normInf()
Infinity norm |
Matrix |
plus(Matrix B)
C = A + B |
Matrix |
prod()
Generate a row matrix, each column contents the product value of the columns. |
Matrix |
prodColumns()
Generate a column matrix, each line contents the product value of the lines. |
Matrix |
prodRows()
Generate a row matrix, each column contents the product value of the columns. |
jmat.data.matrixDecompositions.QRDecomposition |
qr()
QR Decomposition |
static Matrix |
random(int m,
int n)
Generate matrix with random elements |
int |
rank()
Matrix rank |
Matrix |
reshape(int m2,
int n2)
Matrix reshape by Row. |
Matrix |
reshapeColumns(int m2,
int n2)
Matrix reshape by Column. |
Matrix |
reshapeRows(int m2,
int n2)
Matrix reshape by Row. |
Matrix |
resize(int m2,
int n2)
Matrix resize. |
void |
set(int[] I,
int[] J,
double s)
Set several elements. |
void |
set(int i,
int j,
double s)
Set a single element. |
void |
setColumn(int c,
Matrix B)
Set a column to an internal one-dimensional Column. |
void |
setColumns(int[] c,
Matrix B)
Copy an internal one-dimensional array from a column. |
void |
setMatrix(int[] I0,
int[] J0,
Matrix X)
Set a submatrix. |
void |
setMatrix(int i0,
int i1,
int j0,
int j1,
double v)
Set a submatrix. |
void |
setMatrix(int i0,
int i1,
int j0,
int j1,
Matrix X)
Set a submatrix. |
void |
setMatrix(int i0,
int j0,
Matrix X)
Set a submatrix. |
void |
setRow(int l,
Matrix B)
Copy an internal one-dimensional array from a row. |
void |
setRows(int[] l,
Matrix B)
Copy an internal one-dimensional array from many rows. |
Matrix |
solve(Matrix B)
Solve A*X = B |
int[] |
sort(int c)
Generate a column-permuted matrix, rows are permuted in order to sort the column 'c' |
int[] |
sortColumns(int l)
Generate a row-permuted matrix, columns are permuted in order to sort the row 'l' |
Matrix |
sortedColumnsMatrix(int l)
Generate a row-permuted matrix, columns are permuted in order to sort the row 'l' |
Matrix |
sortedMatrix(int c)
Generate a column-permuted matrix, rows are permuted in order to sort the column 'c' |
Matrix |
sortedRowsMatrix(int c)
Generate a column-permuted matrix, rows are permuted in order to sort the column 'c' |
int[] |
sortRows(int c)
Generate a column-permuted matrix, rows are permuted in order to sort the column 'c' |
Matrix |
sum()
Generate a row matrix, each column contents the sum value of the columns. |
Matrix |
sumColumns()
Generate a column matrix, each line contents the sum value of the lines. |
Matrix |
sumRows()
Generate a row matrix, each column contents the sum value of the columns. |
jmat.data.matrixDecompositions.SingularValueDecomposition |
svd()
Singular Value Decomposition |
Matrix |
times(double s)
Multiply a matrix by a scalar, C = s*A |
Matrix |
times(Matrix B)
Linear algebraic matrix multiplication, A * B |
void |
toCommandLine(java.lang.String title)
Print the Matrix in the Command Line. |
void |
toFile(java.io.File file)
Save the Matrix in a file. |
void |
toFile(java.lang.String fileName)
Save the Matrix in a file. |
jmat.io.gui.MatrixPlot2D |
toFramePlot2D(java.lang.String title)
Plot the Matrix in a JFrame |
jmat.io.gui.MatrixPlot2D |
toFramePlot2D(java.lang.String title,
Matrix X)
Plot the Matrix in a JFrame |
jmat.io.gui.MatrixPlot3D |
toFramePlot3D(java.lang.String title)
Plot the Matrix in a JFrame |
jmat.io.gui.MatrixPlot3D |
toFramePlot3D(java.lang.String title,
Matrix X,
Matrix Y)
Plot the Matrix in a Window in a JFrame |
void |
toFrameTable(java.lang.String title)
Print the Matrix data in a Table in a JFrame |
org.jdom.Element |
toMMLElement()
Convert the Matrix into a MathML Element |
void |
toMMLFile(java.io.File file)
Convert the Matrix into a MathML File |
jmat.io.gui.MatrixPlot2D |
toPanelPlot2D()
Plot the Matrix in a JPanel |
jmat.io.gui.MatrixPlot2D |
toPanelPlot2D(Matrix X)
Plot the Matrix in a JPanel |
jmat.io.gui.MatrixPlot3D |
toPanelPlot3D()
Plot the Matrix in a JPanel |
jmat.io.gui.MatrixPlot3D |
toPanelPlot3D(Matrix X,
Matrix Y)
Plot the Matrix in a JFrame |
jmat.io.gui.MatrixTable |
toPanelTable()
Print the Matrix in a JTable |
java.lang.String |
toString()
Convert the Matrix into a String |
double |
trace()
Matrix trace. |
Matrix |
transpose()
Matrix transpose. |
Matrix |
uminus()
Unary minus |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
A
protected double[][] A
- Array for internal storage of elements.
m
protected int m
- Row and column dimensions.
n
protected int n
- Row and column dimensions.
| Constructor Detail |
Matrix
public Matrix(int m,
int n)
- Construct an m-by-n matrix of zeros.
Matrix
public Matrix(int m,
int n,
double s)
- Construct an m-by-n constant matrix.
Matrix
public Matrix(double[][] B)
- Construct a matrix from a 2D-array.
Matrix
public Matrix(double[][] B,
int m,
int n)
- Construct a matrix from a 2D-array.
Matrix
public Matrix(double[] vals,
int m)
- Construct a matrix from a one-dimensional packed array
| Method Detail |
checkIndicesDimensions
public static void checkIndicesDimensions(int[][] i,
int[][] j)
- Check if indices have the same length.
checkIndicesLengths
public static void checkIndicesLengths(int[] i,
int[] j)
- Check if indices have the same length.
identity
public static Matrix identity(int m, int n)
- Generate identity matrix
increment
public static Matrix increment(int m, int n, double begin, double pitch)
- Generate a matrix with a constant pitch beetwen each row
incrementColumns
public static Matrix incrementColumns(int m, int n, double begin, double pitch)
- Generate a matrix with a constant pitch beetwen each column
incrementRows
public static Matrix incrementRows(int m, int n, double begin, double pitch)
- Generate a matrix with a constant pitch beetwen each row
merge
public static Matrix merge(Matrix[] Xs)
- Generate a matrix from other matrix.
mergeColumns
public static Matrix mergeColumns(Matrix[] Xs)
- Generate a matrix from other matrix.
mergeRows
public static Matrix mergeRows(Matrix[] Xs)
- Generate a matrix from other matrix.
random
public static Matrix random(int m, int n)
- Generate matrix with random elements
getArray
public double[][] getArray()
- Access the internal two-dimensional array.
getArrayCopy
public double[][] getArrayCopy()
- Copy the internal two-dimensional array.
setColumn
public void setColumn(int c,
Matrix B)
- Set a column to an internal one-dimensional Column.
getColumn
public Matrix getColumn(int c)
- Copy an internal one-dimensional array from a column.
getColumnArrayCopy
public double[] getColumnArrayCopy(int c)
- Copy an internal one-dimensional array from a column.
getColumnDimension
public int getColumnDimension()
- Get column dimension.
getColumnPackedCopy
public double[] getColumnPackedCopy()
- Make a one-dimensional column packed copy of the internal array.
setColumns
public void setColumns(int[] c,
Matrix B)
- Copy an internal one-dimensional array from a column.
getColumns
public Matrix getColumns(int[] c)
- Copy an internal one-dimensional array from a column.
setMatrix
public void setMatrix(int i0,
int j0,
Matrix X)
- Set a submatrix.
setMatrix
public void setMatrix(int[] I0,
int[] J0,
Matrix X)
- Set a submatrix.
setMatrix
public void setMatrix(int i0,
int i1,
int j0,
int j1,
double v)
- Set a submatrix.
setMatrix
public void setMatrix(int i0,
int i1,
int j0,
int j1,
Matrix X)
- Set a submatrix.
getMatrix
public Matrix getMatrix(int i0, int i1, int j0, int j1)
- Get a submatrix.
setRow
public void setRow(int l,
Matrix B)
- Copy an internal one-dimensional array from a row.
getRow
public Matrix getRow(int l)
- Copy an internal one-dimensional array from a row.
getRowArrayCopy
public double[] getRowArrayCopy(int l)
- Copy an internal one-dimensional array from a row.
getRowDimension
public int getRowDimension()
- Get row dimension.
getRowPackedCopy
public double[] getRowPackedCopy()
- Make a one-dimensional row packed copy of the internal array.
setRows
public void setRows(int[] l,
Matrix B)
- Copy an internal one-dimensional array from many rows.
getRows
public Matrix getRows(int[] l)
- Copy an internal one-dimensional array from many rows.
checkColumnDimension
public void checkColumnDimension(Matrix B)
- Check if number of Columns(A) == number of Columns(B).
checkColumnDimension
public void checkColumnDimension(int column)
- Check if number of Columns(A) == column.
checkMatrixDimensions
public void checkMatrixDimensions(Matrix B)
- Check if size(A) == size(B).
checkMatrixDimensions
public void checkMatrixDimensions(int m2,
int n2)
- Check if size(A) == m2*n2.
checkRowDimension
public void checkRowDimension(Matrix B)
- Check if number of Rows(A) == number of Rows(B).
checkRowDimension
public void checkRowDimension(int row)
- Check if number of Rows(A) == row.
chol
public jmat.data.matrixDecompositions.CholeskyDecomposition chol()
- Cholesky Decomposition
clone
public java.lang.Object clone()
- Clone the Matrix object.
cond
public double cond()
- Matrix condition (2 norm)
copy
public Matrix copy()
- Make a deep copy of a matrix
det
public double det()
- Matrix determinant
diag
public Matrix diag()
- Matrix diagonal extraction.
diag
public Matrix diag(int num)
- Matrix diagonal extraction.
dist
public Matrix dist(Matrix B)
- Generate a matrix, each column contents the Euclidian distance between the columns.
distColumns
public Matrix distColumns(Matrix B)
- Generate a matrix, each line contents the Euclidian distance between the lines.
distRows
public Matrix distRows(Matrix B)
- Generate a matrix, each column contents the Euclidian distance between the columns.
divide
public Matrix divide(double s)
- Divide a matrix by a scalar, C = A/s
divide
public Matrix divide(Matrix B)
- Linear algebraic matrix division, A / B
ebeAbs
public Matrix ebeAbs()
- Element-by-element inverse
ebeCos
public Matrix ebeCos()
- Element-by-element cosinus
ebeDivide
public Matrix ebeDivide(double s)
- Divide a matrix by a scalar, C = A/s
ebeDivide
public Matrix ebeDivide(Matrix B)
- Element-by-element right division, C = A./B
ebeExp
public Matrix ebeExp()
- Element-by-element exponential
ebeFun
public Matrix ebeFun(jmat.function.DoubleFunction fun)
- Element-by-element methodName evaluation
ebeIndFun
public Matrix ebeIndFun(jmat.function.DoubleFunction fun)
- Element-by-element indicial methodName evaluation
ebeInv
public Matrix ebeInv()
- Element-by-element inverse
ebeLog
public Matrix ebeLog()
- Element-by-element neperian logarithm
ebeMinus
public Matrix ebeMinus(double s)
- Sub a scalar to each element of a matrix, C = A .- B
ebePlus
public Matrix ebePlus(double s)
- Add a scalar to each element of a matrix, C = A .+ s
ebePow
public Matrix ebePow(double p)
- Element-by-element power
ebePow
public Matrix ebePow(Matrix B)
- Element-by-element power
ebeSin
public Matrix ebeSin()
- Element-by-element sinus
ebeSqrt
public Matrix ebeSqrt()
- Element-by-element inverse
ebeTimes
public Matrix ebeTimes(double s)
- Multiply a matrix by a scalar, C = s*A
ebeTimes
public Matrix ebeTimes(Matrix B)
- Element-by-element multiplication, C = A.*B
eig
public jmat.data.matrixDecompositions.EigenvalueDecomposition eig()
- Eigenvalue Decomposition
find
public int[][] find(double e)
- Find an element
find
public int[][] find(java.lang.String test, double e)
- Find elements verifying a boolean test
findMatrix
public Matrix findMatrix(double e)
- Find an element
findMatrix
public Matrix findMatrix(java.lang.String test, double e)
- Find elements verifying a boolean test
fromFile
public static Matrix fromFile(java.lang.String fileName)
- Load the Matrix from a file.
fromFile
public static Matrix fromFile(java.io.File file)
- Load the Matrix from a file
fromMMLElement
public static Matrix fromMMLElement(org.jdom.Element e)
- Load the Matrix from a MathML Element
fromMMLFile
public static Matrix fromMMLFile(java.io.File file)
- Load the Matrix from a MathML File
fromString
public static Matrix fromString(java.lang.String s)
- Load the Matrix from a String
get
public double get(int i,
int j)
- Get a single element.
get
public Matrix get(int[] I, int[] J)
- Get a several elements in Column.
get
public Matrix get(int[][] I, int[][] J)
- Get a several elements.
inverse
public Matrix inverse()
- Matrix inverse or pseudoinverse
lu
public jmat.data.matrixDecompositions.LUDecomposition lu()
- LU Decomposition
max
public Matrix max()
- Generate a row matrix, each column contents the maximum value of the columns.
maxColumns
public Matrix maxColumns()
- Generate a column matrix, each line contents the maximum value of the lines.
maxRows
public Matrix maxRows()
- Generate a row matrix, each column contents the maximum value of the columns.
merge
public Matrix merge(Matrix B)
- Matrix merge.
mergeColumns
public Matrix mergeColumns(Matrix B)
- Matrix merge.
mergeRows
public Matrix mergeRows(Matrix B)
- Matrix merge.
min
public Matrix min()
- Generate a row matrix, each column contents the minimum value of the columns.
minColumns
public Matrix minColumns()
- Generate a column matrix, each line contents the minimum value of the lines.
minRows
public Matrix minRows()
- Generate a row matrix, each column contents the minimum value of the columns.
minus
public Matrix minus(Matrix B)
- C = A - B
norm1
public double norm1()
- One norm
norm2
public double norm2()
- Two norm
normF
public double normF()
- Frobenius norm
normInf
public double normInf()
- Infinity norm
plus
public Matrix plus(Matrix B)
- C = A + B
prod
public Matrix prod()
- Generate a row matrix, each column contents the product value of the columns.
prodColumns
public Matrix prodColumns()
- Generate a column matrix, each line contents the product value of the lines.
prodRows
public Matrix prodRows()
- Generate a row matrix, each column contents the product value of the columns.
qr
public jmat.data.matrixDecompositions.QRDecomposition qr()
- QR Decomposition
rank
public int rank()
- Matrix rank
reshape
public Matrix reshape(int m2, int n2)
- Matrix reshape by Row.
reshapeColumns
public Matrix reshapeColumns(int m2, int n2)
- Matrix reshape by Column.
reshapeRows
public Matrix reshapeRows(int m2, int n2)
- Matrix reshape by Row.
resize
public Matrix resize(int m2, int n2)
- Matrix resize.
set
public void set(int i,
int j,
double s)
- Set a single element.
set
public void set(int[] I,
int[] J,
double s)
- Set several elements.
solve
public Matrix solve(Matrix B)
- Solve A*X = B
sort
public int[] sort(int c)
- Generate a column-permuted matrix, rows are permuted in order to sort the column 'c'
sortColumns
public int[] sortColumns(int l)
- Generate a row-permuted matrix, columns are permuted in order to sort the row 'l'
sortRows
public int[] sortRows(int c)
- Generate a column-permuted matrix, rows are permuted in order to sort the column 'c'
sortedColumnsMatrix
public Matrix sortedColumnsMatrix(int l)
- Generate a row-permuted matrix, columns are permuted in order to sort the row 'l'
sortedMatrix
public Matrix sortedMatrix(int c)
- Generate a column-permuted matrix, rows are permuted in order to sort the column 'c'
sortedRowsMatrix
public Matrix sortedRowsMatrix(int c)
- Generate a column-permuted matrix, rows are permuted in order to sort the column 'c'
sum
public Matrix sum()
- Generate a row matrix, each column contents the sum value of the columns.
sumColumns
public Matrix sumColumns()
- Generate a column matrix, each line contents the sum value of the lines.
sumRows
public Matrix sumRows()
- Generate a row matrix, each column contents the sum value of the columns.
svd
public jmat.data.matrixDecompositions.SingularValueDecomposition svd()
- Singular Value Decomposition
times
public Matrix times(double s)
- Multiply a matrix by a scalar, C = s*A
times
public Matrix times(Matrix B)
- Linear algebraic matrix multiplication, A * B
toCommandLine
public void toCommandLine(java.lang.String title)
- Print the Matrix in the Command Line.
toFile
public void toFile(java.lang.String fileName)
- Save the Matrix in a file.
toFile
public void toFile(java.io.File file)
- Save the Matrix in a file.
toFramePlot2D
public jmat.io.gui.MatrixPlot2D toFramePlot2D(java.lang.String title)
- Plot the Matrix in a JFrame
toFramePlot2D
public jmat.io.gui.MatrixPlot2D toFramePlot2D(java.lang.String title, Matrix X)
- Plot the Matrix in a JFrame
toFramePlot3D
public jmat.io.gui.MatrixPlot3D toFramePlot3D(java.lang.String title)
- Plot the Matrix in a JFrame
toFramePlot3D
public jmat.io.gui.MatrixPlot3D toFramePlot3D(java.lang.String title, Matrix X, Matrix Y)
- Plot the Matrix in a Window in a JFrame
toFrameTable
public void toFrameTable(java.lang.String title)
- Print the Matrix data in a Table in a JFrame
toMMLElement
public org.jdom.Element toMMLElement()
- Convert the Matrix into a MathML Element
toMMLFile
public void toMMLFile(java.io.File file)
- Convert the Matrix into a MathML File
toPanelPlot2D
public jmat.io.gui.MatrixPlot2D toPanelPlot2D()
- Plot the Matrix in a JPanel
toPanelPlot2D
public jmat.io.gui.MatrixPlot2D toPanelPlot2D(Matrix X)
- Plot the Matrix in a JPanel
toPanelPlot3D
public jmat.io.gui.MatrixPlot3D toPanelPlot3D()
- Plot the Matrix in a JPanel
toPanelPlot3D
public jmat.io.gui.MatrixPlot3D toPanelPlot3D(Matrix X, Matrix Y)
- Plot the Matrix in a JFrame
toPanelTable
public jmat.io.gui.MatrixTable toPanelTable()
- Print the Matrix in a JTable
toString
public java.lang.String toString()
- Convert the Matrix into a String
trace
public double trace()
- Matrix trace.
transpose
public Matrix transpose()
- Matrix transpose.
uminus
public Matrix uminus()
- Unary minus
|
|||||||||
| Home >> All >> jmat >> [ data overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
jmat.data.Matrix