Constructor and Description |
---|
DoubleMatrix(double[] data)
Construct a new row vector given the data
|
DoubleMatrix(double[][] data)
Construct a new matrix given the data as a two dimensions array
|
DoubleMatrix(int rows)
Construct a new row vector given the number of rows
|
DoubleMatrix(int rows,
int cols)
Construct a new matrix given the number of rows and columns
|
DoubleMatrix(int rows,
int cols,
boolean zeroInit)
Construct a new matrix given the number of rows and columns.
|
DoubleMatrix(int rows,
int cols,
double[] data)
Construct a new matrix given the number of rows, columns and the data as a linear array
|
Modifier and Type | Method and Description |
---|---|
DoubleMatrix |
add(double scalar)
Add a scalar
|
DoubleMatrix |
add(DoubleMatrix matrix)
Add a matrix
|
DoubleMatrix |
add(DoubleMatrix A,
DoubleMatrix B)
Make the current matrix be the result of the addition of two matrices
|
DoubleMatrix |
add(DoubleMatrix A,
DoubleMatrix B,
int rows,
int cols,
int RrowStart,
int RcolStart,
int ArowStart,
int AcolStart,
int BrowStart,
int BcolStart)
Make the current (sub) matrix be the result of the addition of two sub matrices
|
DoubleMatrix |
addi(double scalar)
In place add a scalar
|
DoubleMatrix |
addi(DoubleMatrix matrix)
In place add a matrix
|
int |
argmax()
The linear index of the maximum element of the matrix
|
int |
argmin()
The linear index of the minimum element of the matrix
|
DoubleMatrix |
arrayDiv(DoubleMatrix matrix)
Element-wise divide by a matrix
|
DoubleMatrix |
arrayDivi(DoubleMatrix matrix)
In place element-wise divide by a matrix
|
DoubleMatrix |
arrayMul(DoubleMatrix matrix)
Element-wise multiply by a matrix
|
DoubleMatrix |
arrayMuli(DoubleMatrix matrix)
In place element-wise multiply by a matrix
|
DoubleMatrix |
arrayTranspose()
Transpose.
|
DoubleMatrix |
arrayTransposei()
Transpose in place.
|
java.lang.Object |
clone()
Makes a deep copy of this matrix.
|
double |
det()
Matrix determinant
|
static DoubleMatrix |
diag(DoubleMatrix v)
Create a diagonal matrix with vector v on the main diagonal
|
static DoubleMatrix |
diag(DoubleMatrix v,
int k)
Create a diagonal matrix with vector v on the diagonal k
|
DoubleMatrix |
diag(int k)
Return the k-th diagonal of the matrix.
|
DoubleMatrix |
div(double scalar)
Divide by a scalar
|
DoubleMatrix |
div(DoubleMatrix matrix)
Divide by a matrix
|
DoubleMatrix |
div(DoubleMatrix A,
DoubleMatrix B)
Make the current matrix be the result of the division of two matrices
|
DoubleMatrix |
divi(double scalar)
In place divide by a scalar
|
DoubleMatrix |
divi(DoubleMatrix matrix)
In place divide by a matrix
|
DoubleMatrix |
duplicate(DoubleMatrix A)
Copy the data of a matrix to the current matrix.
|
DoubleMatrix |
eq(double scalar)
Element-wise equals between matrix elements and a scalar
|
DoubleMatrix |
eq(DoubleMatrix matrix)
Element-wise equals between matrices elements
|
DoubleMatrix |
eqi(double scalar)
In place element-wise equals between matrix elements and a scalar
|
DoubleMatrix |
eqi(DoubleMatrix matrix)
In place element-wise equals between matrices elements
|
boolean |
equals(java.lang.Object object)
Equals between matrices
|
static DoubleMatrix |
eye(int dim)
Create a square identity matrix
|
static DoubleMatrix |
eye(int rows,
int cols)
Create an identity matrix with the given dimensions
|
DoubleMatrix |
ge(double scalar)
Element-wise greater or equals between matrix elements and a scalar
|
DoubleMatrix |
ge(DoubleMatrix matrix)
Element-wise greater or equals between matrices elements
|
DoubleMatrix |
gei(double scalar)
In place element-wise greater or equals between matrix elements and a scalar
|
DoubleMatrix |
gei(DoubleMatrix matrix)
In place element-wise greater or equals between matrices elements
|
double |
get(int index)
Get the element at the given linear index
|
double |
get(int row,
int col)
Get the element at the given row and column
|
DoubleMatrix |
get(Range range)
Get a vector of the elements at the given linear index range
|
DoubleMatrix |
get(Range rowsRange,
Range colsRange)
Get a matrix of the elements at the given index ranges
|
DoubleMatrix |
getColumn(int column)
Get a vector of the elements at the given column
|
int |
getColumns()
Get the number of columns
|
static double |
getEpsilon()
get epsilon
|
int |
getLength()
Get the total number of elements
|
DoubleMatrix |
getRow(int row)
Get a vector of the elements at the given row
|
int |
getRows()
Get the number of rows
|
DoubleMatrix |
gt(double scalar)
Element-wise greater than between matrix elements and a scalar
|
DoubleMatrix |
gt(DoubleMatrix matrix)
Element-wise greater than between matrices elements
|
DoubleMatrix |
gti(double scalar)
In place element-wise greater than between matrix elements and a scalar
|
DoubleMatrix |
gti(DoubleMatrix matrix)
In place element-wise greater than between matrices elements
|
boolean |
isColumnVector()
Checks whether the matrix is a column vector
|
boolean |
isEmpty()
Checks whether the matrix is empty
|
boolean |
isRowVector()
Checks whether the matrix is a row vector
|
boolean |
isSquare()
Checks whether the matrix is square
|
boolean |
isVector()
Checks whether the matrix is a vector
|
DoubleMatrix |
le(double scalar)
Element-wise lower or equals between matrix elements and a scalar
|
DoubleMatrix |
le(DoubleMatrix matrix)
Element-wise lower or equals between matrices elements
|
DoubleMatrix |
lei(double scalar)
In place element-wise lower or equals between matrix elements and a scalar
|
DoubleMatrix |
lei(DoubleMatrix matrix)
In place element-wise lower or equals between matrices elements
|
DoubleMatrix |
lt(double scalar)
Element-wise lower than between matrix elements and a scalar
|
DoubleMatrix |
lt(DoubleMatrix matrix)
Element-wise lower than between matrices elements
|
DoubleMatrix |
lti(double scalar)
In place element-wise lower than between matrix elements and a scalar
|
DoubleMatrix |
lti(DoubleMatrix matrix)
In place element-wise lower than between matrices elements
|
double |
max()
The maximum element of the matrix
|
DoubleMatrix |
max(double scalar)
Element-wise maximum between matrix elements and a scalar
|
DoubleMatrix |
max(DoubleMatrix matrix)
Element-wise maximum between matrices
|
DoubleMatrix |
maxi(double scalar)
In place element-wise maximum between matrix elements and a scalar
|
DoubleMatrix |
maxi(DoubleMatrix matrix)
In place element-wise maximum between matrices
|
double |
mean()
The mean value of all elements in the matrix
|
double |
min()
The minimum element of the matrix
|
DoubleMatrix |
min(double scalar)
Element-wise minimum between matrix elements and a scalar
|
DoubleMatrix |
min(DoubleMatrix matrix)
Element-wise minimum between matrices
|
DoubleMatrix |
mini(double scalar)
In place element-wise minimum between matrix elements and a scalar
|
DoubleMatrix |
mini(DoubleMatrix matrix)
In place element-wise minimum between matrices
|
DoubleMatrix |
mul(double scalar)
Multiply by a scalar
|
DoubleMatrix |
mul(DoubleMatrix matrix)
Multiply by a matrix
|
DoubleMatrix |
mul(DoubleMatrix A,
DoubleMatrix B)
Make the current matrix be the result of the multiplication of two matrices
|
DoubleMatrix |
mul(DoubleMatrix A,
DoubleMatrix B,
int rows,
int colsRows,
int cols,
int RrowStart,
int RcolStart,
int ArowStart,
int AcolStart,
int BrowStart,
int BcolStart)
Make the current matrix be the result of the multiplication of two sub matrices
|
DoubleMatrix |
muli(double scalar)
In place multiply by a scalar
|
DoubleMatrix |
muli(DoubleMatrix matrix)
In place multiply by a matrix
|
DoubleMatrix |
ne(double scalar)
Element-wise not-equals between matrix elements and a scalar
|
DoubleMatrix |
ne(DoubleMatrix matrix)
Element-wise not-equals between matrices elements
|
DoubleMatrix |
nei(double scalar)
In place element-wise not-equals between matrix elements and a scalar
|
DoubleMatrix |
nei(DoubleMatrix matrix)
In place element-wise not-equals between matrices elements
|
double |
norm1()
The 1-norm of the matrix
|
double |
norm2()
The 2-norm of the matrix
|
double |
normInf()
The Inf-norm of the matrix
|
static DoubleMatrix |
ones(int dim)
Create a square matrix filled with ones
|
static DoubleMatrix |
ones(int rows,
int cols)
Create a matrix filled with ones with the given dimensions
|
double |
prod()
The product of all elements of the matrix
|
static DoubleMatrix |
rand(int dim)
Create a square matrix filled with random elements uniformly distributed ont the interval (0, 1)
|
static DoubleMatrix |
rand(int rows,
int cols)
Create a matrix filled with random elements uniformly distributed on the interval (0, 1)
|
static DoubleMatrix |
randn(int dim)
Create a square matrix filled with random elements normally distributed on the interval (0, 1)
|
static DoubleMatrix |
randn(int dim,
double mean,
double standardDeviation)
Create a square matrix filled with random elements normally distributed on the interval [minInterval, maxInterval]
|
static DoubleMatrix |
randn(int rows,
int cols)
Create a matrix filled with random elements normally distributed on the interval (0, 1)
|
static DoubleMatrix |
randn(int rows,
int cols,
double mean,
double standardDeviation)
Create a matrix filled with random elements normally distributed on the interval [minInterval, maxInterval]
|
static DoubleMatrix |
repmat(double scalar,
int rows,
int cols)
Create a matrix of dimensions rows by columns containing the given scalar
|
static DoubleMatrix |
repmat(DoubleMatrix matrix,
int rows,
int cols)
Create a matrix containing rows by columns replications of the given matrix
|
DoubleMatrix |
resize(int rows,
int columns)
Resize the matrix whith the given dimensions.
|
DoubleMatrix |
resizei(int rows,
int columns)
In-place resize the matrix whith the given dimensions.
|
void |
set(int index,
double element)
Set the element at the given linear index
|
void |
set(int row,
int col,
double element)
Set the element at the given row and column
|
void |
set(Range range,
double element)
Set the elements at the given linear index range
|
void |
set(Range rowsRange,
Range colsRange,
double element)
Set the elements at the given index ranges
|
void |
setColumn(int column,
DoubleMatrix vector)
Set the elements at the given column
|
static void |
setEpsilon(double epsilon)
Set epsilon
|
void |
setRow(int row,
DoubleMatrix vector)
Set the elements at the given row
|
DoubleMatrix |
sub(double scalar)
Subtract a scalar
|
DoubleMatrix |
sub(DoubleMatrix matrix)
Subtract a matrix
|
DoubleMatrix |
sub(DoubleMatrix A,
DoubleMatrix B)
Make the current matrix be the result of the subtraction of two matrices
|
DoubleMatrix |
sub(DoubleMatrix A,
DoubleMatrix B,
int rows,
int cols,
int RrowStart,
int RcolStart,
int ArowStart,
int AcolStart,
int BrowStart,
int BcolStart)
Make the current (sub) matrix be the result of the subtraction of two sub matrices
|
DoubleMatrix |
subi(double scalar)
In place subtract a scalar
|
DoubleMatrix |
subi(DoubleMatrix matrix)
In place subtract a matrix
|
double |
sum()
The sum of all elements of the matrix
|
double[][] |
toArray()
Convert to a 2D array of double
|
ComplexDoubleMatrix |
toComplexDoubleMatrix()
Convert the current matrix to ComplexDoubleMatrix
|
ComplexFloatMatrix |
toComplexFloatMatrix()
Convert the current matrix to ComplexFloatMatrix
|
DoubleMatrix |
toDoubleMatrix()
Convert the current matrix to DoubleMatrix
|
FloatMatrix |
toFloatMatrix()
Convert the current matrix to FloatMatrix
|
java.lang.String |
toString()
Get string representation of this complex
|
double[] |
toVector()
Convert to a 1D array of double
|
DoubleMatrix |
transpose()
Transpose.
|
DoubleMatrix |
transpose(DoubleMatrix matrix)
Transpose a matrix and store the result into the current matrix.
|
DoubleMatrix |
transposei()
Transpose in place.
|
static DoubleMatrix |
zeros(int dim)
Create a square matrix filled with zeros
|
static DoubleMatrix |
zeros(int rows,
int cols)
Create a matrix filled with zeros with the given dimensions
|
public DoubleMatrix(int rows, int cols)
rows
- Number of rowscols
- Number of columnspublic DoubleMatrix(int rows, int cols, boolean zeroInit)
rows
- Number of rowscols
- Number of columnszeroInit
- set to true to initialize to zero the content of the matrix. If false the content is not cleared.public DoubleMatrix(int rows, int cols, double[] data)
rows
- Number of rowscols
- Number of columnsdata
- The data as a one dimension arraypublic DoubleMatrix(double[][] data)
data
- The data as a two dimensions arraypublic DoubleMatrix(int rows)
rows
- Number of rowspublic DoubleMatrix(double[] data)
data
- The datapublic java.lang.Object clone()
clone
in class java.lang.Object
public DoubleMatrix duplicate(DoubleMatrix A)
A
- matrix to copy the data fromIllegalArguementException
- if matrices are not the same sizepublic double get(int row, int col)
row
- The rowcol
- The columnpublic void set(int row, int col, double element)
row
- The rowcol
- The columnelement
- The element to setpublic double get(int index)
index
- The linear indexpublic void set(int index, double element)
index
- The linear indexelement
- The element to setpublic DoubleMatrix get(Range rowsRange, Range colsRange)
rowsRange
- Index range of the rows to getcolsRange
- Index range of the columns to getpublic void set(Range rowsRange, Range colsRange, double element)
rowsRange
- Index range of the rows to setcolsRange
- Index range of the columns to setelement
- Element to setpublic DoubleMatrix get(Range range)
range
- Linear range of the elements to getpublic void set(Range range, double element)
range
- Linear range of the elements to setelement
- Element to setpublic DoubleMatrix getRow(int row)
row
- Row of the elements to getpublic void setRow(int row, DoubleMatrix vector)
row
- Row of the elements to setvector
- Vector of the elements to setpublic DoubleMatrix getColumn(int column)
column
- Column of the elements to getpublic void setColumn(int column, DoubleMatrix vector)
column
- Column of the elements to setvector
- Vector of the elements to setpublic int getRows()
public int getColumns()
public int getLength()
public boolean isEmpty()
public boolean isSquare()
public boolean isVector()
public boolean isRowVector()
public boolean isColumnVector()
public static DoubleMatrix eye(int dim)
dim
- Dimension of the square matrix to createpublic static DoubleMatrix eye(int rows, int cols)
rows
- Number of rowscols
- Number of columnspublic static DoubleMatrix zeros(int dim)
dim
- Dimension of the square matrix to createpublic static DoubleMatrix zeros(int rows, int cols)
rows
- Number of rowscols
- Number of columnspublic static DoubleMatrix ones(int dim)
dim
- Dimension of the square matrix to createpublic static DoubleMatrix ones(int rows, int cols)
rows
- Number of rowscols
- Number of columnspublic static DoubleMatrix diag(DoubleMatrix v, int k)
v
- Vector of k elementsk
- If k is positive, the vector is placed on the k-th super diagonal. If it is negative, it is placed on the -k-th sub-diagonal.public static DoubleMatrix diag(DoubleMatrix v)
v
- Vector of elementspublic static DoubleMatrix repmat(DoubleMatrix matrix, int rows, int cols)
matrix
- The matrix to replicaterows
- The number of horizontal replications of the matrixcols
- The number of vertical replications of the matrixpublic static DoubleMatrix repmat(double scalar, int rows, int cols)
scalar
- The scalar to replicaterows
- Number of rowscols
- Number of columnspublic static DoubleMatrix rand(int dim)
dim
- Dimension of the square matrix to createpublic static DoubleMatrix rand(int rows, int cols)
rows
- Number of rowscols
- Number of columnspublic static DoubleMatrix randn(int dim)
dim
- Dimension of the square matrix to createpublic static DoubleMatrix randn(int dim, double mean, double standardDeviation)
dim
- Dimension of the square matrix to createmean
- the mean value for the generated numbersstandardDeviation
- the standard deviation for the generated numberspublic static DoubleMatrix randn(int rows, int cols)
rows
- Number of rowscols
- Number of columnspublic static DoubleMatrix randn(int rows, int cols, double mean, double standardDeviation)
rows
- Number of rowscols
- Number of columnsmean
- the mean value for the generated numbersstandardDeviation
- the standard deviation for the generated numberspublic double[] toVector()
public double[][] toArray()
public DoubleMatrix add(DoubleMatrix matrix)
matrix
- The matrix to add to the current matrixpublic DoubleMatrix add(DoubleMatrix A, DoubleMatrix B)
A
- One the matrices to addB
- The other matrix to addpublic DoubleMatrix addi(DoubleMatrix matrix)
matrix
- The matrix to add to the current matrixpublic DoubleMatrix add(double scalar)
scalar
- The scalar to add to the current matrixpublic DoubleMatrix addi(double scalar)
scalar
- The scalar to add to the current matrixpublic DoubleMatrix add(DoubleMatrix A, DoubleMatrix B, int rows, int cols, int RrowStart, int RcolStart, int ArowStart, int AcolStart, int BrowStart, int BcolStart)
A
- One the matrices to addB
- The other matrix to addpublic DoubleMatrix sub(DoubleMatrix matrix)
matrix
- The matrix to subtract to the current matrixpublic DoubleMatrix sub(DoubleMatrix A, DoubleMatrix B)
A
- One the matrices to subtractB
- The other matrix to subtractpublic DoubleMatrix subi(DoubleMatrix matrix)
matrix
- The matrix to subtract to the current matrixpublic DoubleMatrix sub(double scalar)
scalar
- The scalar to subtract to the current matrixpublic DoubleMatrix subi(double scalar)
scalar
- The scalar to subtract to the current matrixpublic DoubleMatrix sub(DoubleMatrix A, DoubleMatrix B, int rows, int cols, int RrowStart, int RcolStart, int ArowStart, int AcolStart, int BrowStart, int BcolStart)
A
- One the matrices to subtractB
- The other matrix to subtractpublic DoubleMatrix mul(DoubleMatrix matrix)
matrix
- The matrix to multiply the current matrix bypublic DoubleMatrix mul(DoubleMatrix A, DoubleMatrix B)
A
- One the matrices to multiplyB
- The other matrix to multiplyjava.lang.IllegalArgumentException
- if B == thispublic DoubleMatrix muli(DoubleMatrix matrix)
matrix
- The matrix to multiply the current matrix bypublic DoubleMatrix mul(double scalar)
scalar
- The scalar to multiply the current matrix bypublic DoubleMatrix muli(double scalar)
scalar
- The scalar to multiply the current matrix bypublic DoubleMatrix mul(DoubleMatrix A, DoubleMatrix B, int rows, int colsRows, int cols, int RrowStart, int RcolStart, int ArowStart, int AcolStart, int BrowStart, int BcolStart)
A
- One the matrices to multiplyB
- The other matrix to multiplyjava.lang.IllegalArgumentException
- if B == this
subThis = subA * subB
subThis is a sub matrix of this which starts at the (RrowStart,RcolStart) and its size is (rows,cols)
subA is a sub matrix of A which starts at the (ArowStart,AcolStart) and its size is (rows,colsRows)
subB is a sub matrix of B which starts at the (BrowStart,BcolStart) and its size is (colsRows, cols)public DoubleMatrix arrayMul(DoubleMatrix matrix)
matrix
- The matrix to element-wise multiply the current matrix bypublic DoubleMatrix arrayMuli(DoubleMatrix matrix)
matrix
- The matrix to element-wise multiply the current matrix bypublic DoubleMatrix div(DoubleMatrix matrix)
matrix
- The matrix to divide the current matrix bypublic DoubleMatrix div(DoubleMatrix A, DoubleMatrix B)
A
- matrix for numerator (dividend)B
- matrix for denominator (divisor)java.lang.IllegalArgumentException
- if B == this
if 'this' and 'A*B' are not the same sizepublic DoubleMatrix divi(DoubleMatrix matrix)
matrix
- The matrix to divide the current matrix bypublic DoubleMatrix div(double scalar)
scalar
- The scalar to divide the current matrix bypublic DoubleMatrix divi(double scalar)
scalar
- The scalar to divide the current matrix bypublic DoubleMatrix arrayDiv(DoubleMatrix matrix)
matrix
- The matrix to element-wise divide the current matrix bypublic DoubleMatrix arrayDivi(DoubleMatrix matrix)
matrix
- The matrix to element-wise divide the current matrix bypublic boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The object to compare withDoubleMatrix
with equal elementspublic DoubleMatrix eq(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix eqi(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix eq(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix eqi(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix ne(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix nei(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix ne(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix nei(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix gt(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix gti(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix gt(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix gti(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix lt(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix lti(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix lt(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix lti(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix ge(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix gei(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix ge(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix gei(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix le(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix lei(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix le(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix lei(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix diag(int k)
k
- If k is positive, returns the k-th super diagonal. If it is negative, returns the -k-th sub-diagonal. If k is zero, returns the main diagonal.public DoubleMatrix transpose()
public DoubleMatrix transpose(DoubleMatrix matrix)
matrix
- the matrix where the result will be storedjava.lang.IllegalArgumentException
- if the size of result is not compatible with the size of the transposepublic DoubleMatrix transposei()
public DoubleMatrix arrayTranspose()
public DoubleMatrix arrayTransposei()
public double det()
public double sum()
public double prod()
public double mean()
public double norm1()
public double norm2()
public double normInf()
public double min()
public int argmin()
public DoubleMatrix min(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix mini(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix min(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix mini(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic double max()
public int argmax()
public DoubleMatrix max(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix maxi(DoubleMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic DoubleMatrix max(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix maxi(double scalar)
scalar
- The scalar to compare the elements of the matrix withpublic DoubleMatrix resize(int rows, int columns)
rows
- New number of rowscolumns
- New number of columnspublic DoubleMatrix resizei(int rows, int columns)
rows
- New number of rowscolumns
- New number of columnspublic static double getEpsilon()
public static void setEpsilon(double epsilon)
public java.lang.String toString()
toString
in class java.lang.Object
public FloatMatrix toFloatMatrix()
toFloatMatrix
in interface Matrix
public DoubleMatrix toDoubleMatrix()
toDoubleMatrix
in interface Matrix
public ComplexFloatMatrix toComplexFloatMatrix()
toComplexFloatMatrix
in interface Matrix
public ComplexDoubleMatrix toComplexDoubleMatrix()
toComplexDoubleMatrix
in interface Matrix