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