Constructor and Description |
---|
ComplexFloatMatrix(ComplexFloat[] data)
Construct a new row vector given the data
|
ComplexFloatMatrix(ComplexFloat[][] data)
Construct a new matrix given the data as a two dimensions array
|
ComplexFloatMatrix(float[] data)
Construct a new row vector given the data
|
ComplexFloatMatrix(float[][] data)
Construct a new matrix given the data as a two dimensions array
|
ComplexFloatMatrix(int rows)
Construct a new row vector given the number of rows
|
ComplexFloatMatrix(int rows,
int cols)
Construct a new matrix given the number of rows and columns
|
ComplexFloatMatrix(int rows,
int cols,
boolean zeroInit)
Construct a new matrix given the number of rows and columns.
|
ComplexFloatMatrix(int rows,
int cols,
ComplexFloat[] data)
Construct a new matrix given the number of rows, columns and the data as a linear array
|
ComplexFloatMatrix(int rows,
int cols,
float[] data)
Construct a new matrix given the number of rows, columns and the data as a linear array
|
Modifier and Type | Method and Description |
---|---|
ComplexFloatMatrix |
add(ComplexFloat scalar)
Add a scalar
|
ComplexFloatMatrix |
add(ComplexFloatMatrix matrix)
Add a matrix
|
ComplexFloatMatrix |
add(ComplexFloatMatrix A,
ComplexFloatMatrix B)
Make the current matrix be the result of the addition of two matrices
|
ComplexFloatMatrix |
add(ComplexFloatMatrix A,
ComplexFloatMatrix 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
|
ComplexFloatMatrix |
addi(ComplexFloat scalar)
In place add a scalar
|
ComplexFloatMatrix |
addi(ComplexFloatMatrix 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
|
ComplexFloatMatrix |
arrayDiv(ComplexFloatMatrix matrix)
Element-wise divide by a matrix
|
ComplexFloatMatrix |
arrayDivi(ComplexFloatMatrix matrix)
In place element-wise divide by a matrix
|
ComplexFloatMatrix |
arrayMul(ComplexFloatMatrix matrix)
Element-wise multiply by a matrix
|
ComplexFloatMatrix |
arrayMuli(ComplexFloatMatrix matrix)
In place element-wise multiply by a matrix
|
ComplexFloatMatrix |
arrayTranspose()
Transpose.
|
ComplexFloatMatrix |
arrayTransposei()
Transpose in place.
|
java.lang.Object |
clone()
Makes a deep copy of this matrix.
|
ComplexFloat |
det()
Matrix determinant
|
static ComplexFloatMatrix |
diag(ComplexFloatMatrix v)
Create a diagonal matrix with vector v on the main diagonal
|
static ComplexFloatMatrix |
diag(ComplexFloatMatrix v,
int k)
Create a diagonal matrix with vector v on the diagonal k
|
ComplexFloatMatrix |
diag(int k)
Return the k-th diagonal of the matrix.
|
ComplexFloatMatrix |
div(ComplexFloat scalar)
Divide by a scalar
|
ComplexFloatMatrix |
div(ComplexFloatMatrix matrix)
Divide by a matrix
|
ComplexFloatMatrix |
div(ComplexFloatMatrix A,
ComplexFloatMatrix B)
Make the current matrix be the result of the division of two matrices
|
ComplexFloatMatrix |
divi(ComplexFloat scalar)
In place divide by a scalar
|
ComplexFloatMatrix |
divi(ComplexFloatMatrix matrix)
In place divide by a matrix
|
ComplexFloatMatrix |
duplicate(ComplexFloatMatrix A)
Copy the data of a matrix to the current matrix.
|
ComplexFloatMatrix |
eq(ComplexFloat scalar)
Element-wise equals between matrix elements and a scalar
|
ComplexFloatMatrix |
eq(ComplexFloatMatrix matrix)
Element-wise equals between matrices elements
|
ComplexFloatMatrix |
eqi(ComplexFloat scalar)
In place element-wise equals between matrix elements and a scalar
|
ComplexFloatMatrix |
eqi(ComplexFloatMatrix matrix)
In place element-wise equals between matrices elements
|
boolean |
equals(java.lang.Object object)
Equals between matrices
|
static ComplexFloatMatrix |
eye(int dim)
Create a square identity matrix
|
static ComplexFloatMatrix |
eye(int rows,
int cols)
Create an identity matrix with the given dimensions
|
ComplexFloatMatrix |
ge(ComplexFloat scalar)
Element-wise greater or equals between matrix elements and a scalar
|
ComplexFloatMatrix |
ge(ComplexFloatMatrix matrix)
Element-wise greater or equals between matrices elements
|
ComplexFloatMatrix |
gei(ComplexFloat scalar)
In place element-wise greater or equals between matrix elements and a scalar
|
ComplexFloatMatrix |
gei(ComplexFloatMatrix matrix)
In place element-wise greater or equals between matrices elements
|
ComplexFloat |
get(int index)
Get the element at the given linear index
|
ComplexFloat |
get(int row,
int col)
Get the element at the given row and column
|
ComplexFloatMatrix |
get(Range range)
Get a vector of the elements at the given linear index range
|
ComplexFloatMatrix |
get(Range rowsRange,
Range colsRange)
Get a matrix of the elements at the given index ranges
|
ComplexFloatMatrix |
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
|
float |
getImaginary(int index)
Get the imaginary part of the element at the given linear index
|
float |
getImaginary(int row,
int col)
Get the imaginary part of the element at the given row and column
|
int |
getLength()
Get the total number of elements
|
float |
getReal(int index)
Get the real part of the element at the given linear index
|
float |
getReal(int row,
int col)
Get the real part of the element at the given row and column
|
ComplexFloatMatrix |
getRow(int row)
Get a vector of the elements at the given row
|
int |
getRows()
Get the number of rows
|
ComplexFloatMatrix |
gt(ComplexFloat scalar)
Element-wise greater than between matrix elements and a scalar
|
ComplexFloatMatrix |
gt(ComplexFloatMatrix matrix)
Element-wise greater than between matrices elements
|
ComplexFloatMatrix |
gti(ComplexFloat scalar)
In place element-wise greater than between matrix elements and a scalar
|
ComplexFloatMatrix |
gti(ComplexFloatMatrix 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
|
ComplexFloatMatrix |
le(ComplexFloat scalar)
Element-wise lower or equals between matrix elements and a scalar
|
ComplexFloatMatrix |
le(ComplexFloatMatrix matrix)
Element-wise lower or equals between matrices elements
|
ComplexFloatMatrix |
lei(ComplexFloat scalar)
In place element-wise lower or equals between matrix elements and a scalar
|
ComplexFloatMatrix |
lei(ComplexFloatMatrix matrix)
In place element-wise lower or equals between matrices elements
|
ComplexFloatMatrix |
lt(ComplexFloat scalar)
Element-wise lower than between matrix elements and a scalar
|
ComplexFloatMatrix |
lt(ComplexFloatMatrix matrix)
Element-wise lower than between matrices elements
|
ComplexFloatMatrix |
lti(ComplexFloat scalar)
In place element-wise lower than between matrix elements and a scalar
|
ComplexFloatMatrix |
lti(ComplexFloatMatrix matrix)
In place element-wise lower than between matrices elements
|
ComplexFloat |
max()
The maximum element of the matrix
|
ComplexFloatMatrix |
max(ComplexFloat scalar)
Element-wise maximum between matrix elements and a scalar
|
ComplexFloatMatrix |
max(ComplexFloatMatrix matrix)
Element-wise maximum between matrices
|
ComplexFloatMatrix |
maxi(ComplexFloat scalar)
In place element-wise maximum between matrix elements and a scalar
|
ComplexFloatMatrix |
maxi(ComplexFloatMatrix matrix)
In place element-wise maximum between matrices
|
ComplexFloat |
mean()
The mean value of all elements in the matrix
|
ComplexFloat |
min()
The minimum element of the matrix
|
ComplexFloatMatrix |
min(ComplexFloat scalar)
Element-wise minimum between matrix elements and a scalar
|
ComplexFloatMatrix |
min(ComplexFloatMatrix matrix)
Element-wise minimum between matrices
|
ComplexFloatMatrix |
mini(ComplexFloat scalar)
In place element-wise minimum between matrix elements and a scalar
|
ComplexFloatMatrix |
mini(ComplexFloatMatrix matrix)
In place element-wise minimum between matrices
|
ComplexFloatMatrix |
mul(ComplexFloat scalar)
Multiply by a scalar
|
ComplexFloatMatrix |
mul(ComplexFloatMatrix matrix)
Multiply by a matrix
|
ComplexFloatMatrix |
mul(ComplexFloatMatrix A,
ComplexFloatMatrix B)
Make the current matrix be the result of the multiplication of two matrices
|
ComplexFloatMatrix |
mul(ComplexFloatMatrix A,
ComplexFloatMatrix 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
|
ComplexFloatMatrix |
muli(ComplexFloat scalar)
In place multiply by a scalar
|
ComplexFloatMatrix |
muli(ComplexFloatMatrix matrix)
In place multiply by a matrix
|
ComplexFloatMatrix |
ne(ComplexFloat scalar)
Element-wise not-equals between matrix elements and a scalar
|
ComplexFloatMatrix |
ne(ComplexFloatMatrix matrix)
Element-wise not-equals between matrices elements
|
ComplexFloatMatrix |
nei(ComplexFloat scalar)
In place element-wise not-equals between matrix elements and a scalar
|
ComplexFloatMatrix |
nei(ComplexFloatMatrix matrix)
In place element-wise not-equals between matrices elements
|
float |
norm1()
The 1-norm of the matrix
|
float |
norm2()
The 2-norm of the matrix
|
float |
normInf()
The Inf-norm of the matrix
|
static ComplexFloatMatrix |
ones(int dim)
Create a square matrix filled with ones
|
static ComplexFloatMatrix |
ones(int rows,
int cols)
Create a matrix filled with ones with the given dimensions
|
ComplexFloat |
prod()
The product of all elements of the matrix
|
static ComplexFloatMatrix |
rand(int dim)
Create a square matrix filled with random elements uniformly distributed ont the interval (0, 1)
|
static ComplexFloatMatrix |
rand(int rows,
int cols)
Create a matrix filled with random elements uniformly distributed on the interval (0, 1)
|
static ComplexFloatMatrix |
randn(int dim)
Create a square matrix filled with random elements normally distributed on the interval (0, 1)
|
static ComplexFloatMatrix |
randn(int dim,
ComplexFloat realMean,
ComplexFloat realStandardDeviation,
ComplexFloat imaginaryMean,
ComplexFloat imaginaryStandardDeviation)
Create a square matrix filled with random elements normally distributed on the interval [minInterval, maxInterval]
|
static ComplexFloatMatrix |
randn(int rows,
int cols)
Create a matrix filled with random elements normally distributed on the interval (0, 1)
|
static ComplexFloatMatrix |
randn(int rows,
int cols,
ComplexFloat realMean,
ComplexFloat realStandardDeviation,
ComplexFloat imaginaryMean,
ComplexFloat imaginaryStandardDeviation)
Create a matrix filled with random elements normally distributed on the interval [minInterval, maxInterval]
|
static ComplexFloatMatrix |
repmat(ComplexFloat scalar,
int rows,
int cols)
Create a matrix of dimensions rows by columns containing the given scalar
|
static ComplexFloatMatrix |
repmat(ComplexFloatMatrix matrix,
int rows,
int cols)
Create a matrix containing rows by columns replications of the given matrix
|
ComplexFloatMatrix |
resize(int rows,
int columns)
Resize the matrix whith the given dimensions.
|
ComplexFloatMatrix |
resizei(int rows,
int columns)
In-place resize the matrix whith the given dimensions.
|
void |
set(int index,
ComplexFloat element)
Set the element at the given linear index
|
void |
set(int row,
int col,
ComplexFloat element)
Set the element at the given row and column
|
void |
set(Range range,
ComplexFloat element)
Set the elements at the given linear index range
|
void |
set(Range rowsRange,
Range colsRange,
ComplexFloat element)
Set the elements at the given index ranges
|
void |
setColumn(int column,
ComplexFloatMatrix vector)
Set the elements at the given column
|
static void |
setEpsilon(double epsilon)
Set epsilon
|
void |
setImaginary(int index,
float imag)
Set the imaginary part of the element at the given linear index
|
void |
setImaginary(int row,
int col,
float imag)
Set the imaginary part of the element at the given row and column
|
void |
setReal(int index,
float real)
Set the real part of the element at the given linear index
|
void |
setReal(int row,
int col,
float real)
Set the real part of the element at the given row and column
|
void |
setRow(int row,
ComplexFloatMatrix vector)
Set the elements at the given row
|
ComplexFloatMatrix |
sub(ComplexFloat scalar)
Subtract a scalar
|
ComplexFloatMatrix |
sub(ComplexFloatMatrix matrix)
Subtract a matrix
|
ComplexFloatMatrix |
sub(ComplexFloatMatrix A,
ComplexFloatMatrix B)
Make the current matrix be the result of the subtraction of two matrices
|
ComplexFloatMatrix |
sub(ComplexFloatMatrix A,
ComplexFloatMatrix 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
|
ComplexFloatMatrix |
subi(ComplexFloat scalar)
In place subtract a scalar
|
ComplexFloatMatrix |
subi(ComplexFloatMatrix matrix)
In place subtract a matrix
|
ComplexFloat |
sum()
The sum of all elements of the matrix
|
ComplexFloat[][] |
toArray()
Convert to a 2D array of ComplexFloat
|
ComplexDoubleMatrix |
toComplexDoubleMatrix()
Convert the current matrix to ComplexDoubleMatrix
|
ComplexFloatMatrix |
toComplexFloatMatrix()
Convert the current matrix to ComplexFloatMatrix
|
DoubleMatrix |
toDoubleMatrix()
Convert the current matrix to DoubleMatrix
|
float[][] |
toFloatArray()
Convert to a 2D array of float
|
FloatMatrix |
toFloatMatrix()
Convert the current matrix to FloatMatrix
|
float[] |
toFloatVector()
Convert to a 1D array of float
|
java.lang.String |
toString()
Get string representation of this complex
|
ComplexFloat[] |
toVector()
Convert to a 1D array of ComplexFloat
|
ComplexFloatMatrix |
transpose()
Transpose.
|
ComplexFloatMatrix |
transpose(ComplexFloatMatrix matrix)
Transpose a matrix and store the result into the current matrix.
|
ComplexFloatMatrix |
transposei()
Transpose in place.
|
static ComplexFloatMatrix |
zeros(int dim)
Create a square matrix filled with zeros
|
static ComplexFloatMatrix |
zeros(int rows,
int cols)
Create a matrix filled with zeros with the given dimensions
|
public ComplexFloatMatrix(int rows, int cols)
rows
- Number of rowscols
- Number of columnspublic ComplexFloatMatrix(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 ComplexFloatMatrix(int rows, int cols, ComplexFloat[] data)
rows
- Number of rowscols
- Number of columnsdata
- The data as a one dimension arraypublic ComplexFloatMatrix(int rows, int cols, float[] data)
rows
- Number of rowscols
- Number of columnsdata
- The data as a one dimension array (real and imaginary data are interleaved)public ComplexFloatMatrix(ComplexFloat[][] data)
data
- The data as a two dimensions arraypublic ComplexFloatMatrix(float[][] data)
data
- The data as a two dimensions array (real and imaginary data are interleaved)public ComplexFloatMatrix(int rows)
rows
- Number of rowspublic ComplexFloatMatrix(ComplexFloat[] data)
data
- The datapublic ComplexFloatMatrix(float[] data)
data
- The data (real and imaginary data are interleaved)public java.lang.Object clone()
clone
in class java.lang.Object
public ComplexFloatMatrix duplicate(ComplexFloatMatrix A)
A
- matrix to copy the data fromIllegalArguementException
- if matrices are not the same sizepublic ComplexFloat get(int row, int col)
row
- The rowcol
- The columnpublic void set(int row, int col, ComplexFloat element)
row
- The rowcol
- The columnelement
- The element to setpublic ComplexFloat get(int index)
index
- The linear indexpublic void set(int index, ComplexFloat element)
index
- The linear indexelement
- The element to setpublic float getReal(int row, int col)
row
- The rowcol
- The columnpublic void setReal(int row, int col, float real)
row
- The rowcol
- The columnreal
- The real part of the element to setpublic float getImaginary(int row, int col)
row
- The rowcol
- The columnpublic void setImaginary(int row, int col, float imag)
row
- The rowcol
- The columnimag
- The imaginary part of the element to setpublic float getReal(int index)
index
- The linear indexpublic void setReal(int index, float real)
index
- The linear indexreal
- The real part of the element to setpublic float getImaginary(int index)
index
- The linear indexpublic void setImaginary(int index, float imag)
index
- The linear indeximag
- The imaginary part of the element to setpublic ComplexFloatMatrix 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, ComplexFloat element)
rowsRange
- Index range of the rows to setcolsRange
- Index range of the columns to setelement
- Element to setpublic ComplexFloatMatrix get(Range range)
range
- Linear range of the elements to getpublic void set(Range range, ComplexFloat element)
range
- Linear range of the elements to setelement
- Element to setpublic ComplexFloatMatrix getRow(int row)
row
- Row of the elements to getpublic void setRow(int row, ComplexFloatMatrix vector)
row
- Row of the elements to setvector
- Vector of the elements to setpublic ComplexFloatMatrix getColumn(int column)
column
- Column of the elements to getpublic void setColumn(int column, ComplexFloatMatrix 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 ComplexFloatMatrix eye(int dim)
dim
- Dimension of the square matrix to createpublic static ComplexFloatMatrix eye(int rows, int cols)
rows
- Number of rowscols
- Number of columnspublic static ComplexFloatMatrix zeros(int dim)
dim
- Dimension of the square matrix to createpublic static ComplexFloatMatrix zeros(int rows, int cols)
rows
- Number of rowscols
- Number of columnspublic static ComplexFloatMatrix ones(int dim)
dim
- Dimension of the square matrix to createpublic static ComplexFloatMatrix ones(int rows, int cols)
rows
- Number of rowscols
- Number of columnspublic static ComplexFloatMatrix diag(ComplexFloatMatrix 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 ComplexFloatMatrix diag(ComplexFloatMatrix v)
v
- Vector of elementspublic static ComplexFloatMatrix repmat(ComplexFloatMatrix 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 ComplexFloatMatrix repmat(ComplexFloat scalar, int rows, int cols)
scalar
- The scalar to replicaterows
- Number of rowscols
- Number of columnspublic static ComplexFloatMatrix rand(int dim)
dim
- Dimension of the square matrix to createpublic static ComplexFloatMatrix rand(int rows, int cols)
rows
- Number of rowscols
- Number of columnspublic static ComplexFloatMatrix randn(int dim)
dim
- Dimension of the square matrix to createpublic static ComplexFloatMatrix randn(int dim, ComplexFloat realMean, ComplexFloat realStandardDeviation, ComplexFloat imaginaryMean, ComplexFloat imaginaryStandardDeviation)
dim
- Dimension of the square matrix to createrealMean
- the mean value for the generated real numbersrealStandardDeviation
- the standard deviation for the generated real numbersimaginaryMean
- the mean value for the generated imaginary numbersimaginaryStandardDeviation
- the standard deviation for the generated imaginary numberspublic static ComplexFloatMatrix randn(int rows, int cols)
rows
- Number of rowscols
- Number of columnspublic static ComplexFloatMatrix randn(int rows, int cols, ComplexFloat realMean, ComplexFloat realStandardDeviation, ComplexFloat imaginaryMean, ComplexFloat imaginaryStandardDeviation)
rows
- Number of rowscols
- Number of columnsrealMean
- the mean value for the generated real partrealStandardDeviation
- the standard deviation for the generated real partimaginaryMean
- the mean value for the generated imaginary numberimaginaryStandardDeviation
- the standard deviation for the generated imaginary numberpublic ComplexFloat[] toVector()
public ComplexFloat[][] toArray()
public float[] toFloatVector()
public float[][] toFloatArray()
public ComplexFloatMatrix add(ComplexFloatMatrix matrix)
matrix
- The matrix to add to the current matrixpublic ComplexFloatMatrix add(ComplexFloatMatrix A, ComplexFloatMatrix B)
A
- One the matrices to addB
- The other matrix to addpublic ComplexFloatMatrix addi(ComplexFloatMatrix matrix)
matrix
- The matrix to add to the current matrixpublic ComplexFloatMatrix add(ComplexFloat scalar)
scalar
- The scalar to add to the current matrixpublic ComplexFloatMatrix addi(ComplexFloat scalar)
scalar
- The scalar to add to the current matrixpublic ComplexFloatMatrix add(ComplexFloatMatrix A, ComplexFloatMatrix 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 ComplexFloatMatrix sub(ComplexFloatMatrix matrix)
matrix
- The matrix to subtract to the current matrixpublic ComplexFloatMatrix sub(ComplexFloatMatrix A, ComplexFloatMatrix B)
A
- One the matrices to subtractB
- The other matrix to subtractpublic ComplexFloatMatrix subi(ComplexFloatMatrix matrix)
matrix
- The matrix to subtract to the current matrixpublic ComplexFloatMatrix sub(ComplexFloat scalar)
scalar
- The scalar to subtract to the current matrixpublic ComplexFloatMatrix subi(ComplexFloat scalar)
scalar
- The scalar to subtract to the current matrixpublic ComplexFloatMatrix sub(ComplexFloatMatrix A, ComplexFloatMatrix 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 ComplexFloatMatrix mul(ComplexFloatMatrix matrix)
matrix
- The matrix to multiply the current matrix bypublic ComplexFloatMatrix mul(ComplexFloatMatrix A, ComplexFloatMatrix B)
A
- One the matrices to multiplyB
- The other matrix to multiplyjava.lang.IllegalArgumentException
- if B == thispublic ComplexFloatMatrix muli(ComplexFloatMatrix matrix)
matrix
- The matrix to multiply the current matrix bypublic ComplexFloatMatrix mul(ComplexFloat scalar)
scalar
- The scalar to multiply the current matrix bypublic ComplexFloatMatrix muli(ComplexFloat scalar)
scalar
- The scalar to multiply the current matrix bypublic ComplexFloatMatrix mul(ComplexFloatMatrix A, ComplexFloatMatrix 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 ComplexFloatMatrix arrayMul(ComplexFloatMatrix matrix)
matrix
- The matrix to element-wise multiply the current matrix bypublic ComplexFloatMatrix arrayMuli(ComplexFloatMatrix matrix)
matrix
- The matrix to element-wise multiply the current matrix bypublic ComplexFloatMatrix div(ComplexFloatMatrix matrix)
matrix
- The matrix to divide the current matrix bypublic ComplexFloatMatrix div(ComplexFloatMatrix A, ComplexFloatMatrix 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 ComplexFloatMatrix divi(ComplexFloatMatrix matrix)
matrix
- The matrix to divide the current matrix bypublic ComplexFloatMatrix div(ComplexFloat scalar)
scalar
- The scalar to divide the current matrix bypublic ComplexFloatMatrix divi(ComplexFloat scalar)
scalar
- The scalar to divide the current matrix bypublic ComplexFloatMatrix arrayDiv(ComplexFloatMatrix matrix)
matrix
- The matrix to element-wise divide the current matrix bypublic ComplexFloatMatrix arrayDivi(ComplexFloatMatrix 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 withComplexFloatMatrix
with equal elementspublic ComplexFloatMatrix eq(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix eqi(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix eq(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix eqi(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix ne(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix nei(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix ne(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix nei(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix gt(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix gti(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix gt(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix gti(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix lt(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix lti(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix lt(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix lti(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix ge(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix gei(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix ge(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix gei(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix le(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix lei(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix le(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix lei(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix 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 ComplexFloatMatrix transpose()
public ComplexFloatMatrix transpose(ComplexFloatMatrix 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 ComplexFloatMatrix transposei()
public ComplexFloatMatrix arrayTranspose()
public ComplexFloatMatrix arrayTransposei()
public ComplexFloat det()
public ComplexFloat sum()
public ComplexFloat prod()
public ComplexFloat mean()
public float norm1()
public float norm2()
public float normInf()
public ComplexFloat min()
public int argmin()
public ComplexFloatMatrix min(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix mini(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix min(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix mini(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloat max()
public int argmax()
public ComplexFloatMatrix max(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix maxi(ComplexFloatMatrix matrix)
matrix
- The matrix to compare the current matrix withpublic ComplexFloatMatrix max(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix maxi(ComplexFloat scalar)
scalar
- The scalar to compare the elements of the matrix withpublic ComplexFloatMatrix resize(int rows, int columns)
rows
- New number of rowscolumns
- New number of columnspublic ComplexFloatMatrix 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