| Modifier and Type | Field and Description |
|---|---|
protected int |
basex
The base index
|
int |
bx
The base index
|
protected Zchol |
CHOL
Points to a Cholesky decompoistion of the matrix
provided one exists
|
int |
cx
The upper column index
|
protected boolean |
dirty
True if the matrix has been altered
|
protected Zhqrd |
HQR
Points to a Householder QR decompoistion of the matrix
provided one exists
|
protected double[][] |
im
The imaginary part of the matrix
|
protected Zludpp |
LU
Points to an LU decompoistion of the matrix
provided one exists
|
int |
nc
The number of columns
|
protected int |
ncol
The number of columns
|
int |
nr
The number of rows
|
protected int |
nrow
The number of rows
|
protected double[][] |
re
The real part of the matrix
|
int |
rx
The upper row index
|
| Constructor and Description |
|---|
Zmat(double[][] A)
Creates a Zmat and initializes its real part to
to an array of class double.
|
Zmat(double[][] re,
double[][] im)
Creates a Zmat and initializes its real and imaginary
parts to a pair of arrays.
|
Zmat(int nrow,
int ncol)
Creates a Zmat and initializes it to zero.
|
Zmat(Z[][] A)
Creates a Zmat and initializes it to an array of class Z.
|
Zmat(Z1 A)
Creates a Zmat and initialize it to a Z1.
|
Zmat(Zdiagmat D)
Creates a Zmat and initialize it to a Zdiagmat.
|
Zmat(Zmat A)
Creates a Zmat and intitializes it to a Zmat.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clean()
Nullifies the history pointers if the matrix is dirty
and sets the dirty flag to false.
|
Zmat |
get(int[] ii,
int[] jj)
Returns the submatrix (ii[], jj[]).
|
Zmat |
get(int[] ii,
int jj1,
int jj2)
Returns the submatrix (ii[], jj1:jj2).
|
Z |
get(int ii,
int jj)
Returns the (ii,jj)-element of a Zmat.
|
Zmat |
get(int ii1,
int ii2,
int[] jj)
Returns the submatrix (ii1:ii2, jj[]).
|
Zmat |
get(int ii1,
int ii2,
int jj1,
int jj2)
Returns the submatrix (ii1:ii2, jj1:jj2).
|
Z |
get0(int i,
int j)
Returns the zero-based (i,j)-element of a Zmat.
|
Zchol |
getCHOL()
Returns a Cholesky decomposition if a valid one exists.
|
Zhqrd |
getHQR()
Returns a Householder QR decomposition if a valid one exists.
|
double[][] |
getIm()
Returns a copy of the imaginary part of a Zmat.
|
Zludpp |
getLU()
Returns an LU decomposition if a valid one exists.
|
void |
getProperties()
Sets the public parameters.
|
double[][] |
getRe()
Returns a copy of the real part of a Zmat.
|
Z[][] |
getZ()
Returns a copy of the real and imaginary parts as a complex array.
|
void |
put(int[] ii,
int[] jj,
Zmat A)
Overwrites the submatrix (ii[], jj[]) with a Zmat.
|
void |
put(int[] ii,
int jj1,
int jj2,
Zmat A)
Overwrites the submatrix (ii[], jj1:jj2) with a Zmat.
|
void |
put(int ii1,
int ii2,
int[] jj,
Zmat A)
Overwrites the submatrix (ii1:ii2, jj[]) with a Zmat.
|
void |
put(int ii1,
int ii2,
int jj1,
int jj2,
Zmat A)
Overwrites the submatrix (ii1:ii2, jj1:jj2) with a Zmat.
|
void |
put(int ii,
int jj,
Z a)
Writes the (ii,jj) element of a Zmat.
|
void |
put0(int i,
int j,
Z a)
Writes the zero-based (i,j)-element of a Zmat.
|
protected int nrow
protected int ncol
protected int basex
protected double[][] re
protected double[][] im
protected boolean dirty
protected Zludpp LU
protected Zhqrd HQR
protected Zchol CHOL
public int bx
public int rx
public int nr
public int cx
public int nc
public Zmat(double[][] re,
double[][] im)
throws JampackException
re - Contains the real part.im - Contains the imaginary part.JampackException - if the dimensions of re and im
do not matchpublic Zmat(Z[][] A)
public Zmat(double[][] A)
public Zmat(Zmat A)
public Zmat(Z1 A)
public Zmat(Zdiagmat D)
public Zmat(int nrow,
int ncol)
public void getProperties()
public double[][] getRe()
public double[][] getIm()
public Z[][] getZ()
public Z get(int ii, int jj)
ii - The row index of the elementjj - The column index of the elementpublic Z get0(int i, int j)
i - The row index of the elementj - The column index of the elementpublic void put(int ii,
int jj,
Z a)
ii - The row index of the elementjj - The column index of the elementa - The new value of the elementpublic void put0(int i,
int j,
Z a)
i - The row index of the elementj - The column index of the elementa - The new value of the elementpublic Zmat get(int ii1, int ii2, int jj1, int jj2)
ii1 - The lower column indexii2 - The upper column indexjj1 - The lower row indexjj2 - The upper row indexpublic void put(int ii1,
int ii2,
int jj1,
int jj2,
Zmat A)
ii1 - The lower column indexii2 - The upper column indexjj1 - The lower row indexjj2 - The upper row indexA - The new value of the submatrixpublic Zmat get(int[] ii, int jj1, int jj2)
i[] - Contains the row indices of the submatrixjj1 - The lower column indexjj2 - The upper column indexpublic void put(int[] ii,
int jj1,
int jj2,
Zmat A)
i[] - Contains the row indices of the submatrixjj1 - The lower column indexjj2 - The upper column indexA - The new value of the submatrix.public Zmat get(int ii1, int ii2, int[] jj)
ii1 - The lower row indexii2 - The upper row indexjj[] - Contains the column indices of the submatrixpublic void put(int ii1,
int ii2,
int[] jj,
Zmat A)
ii1 - The lower row indexii2 - The upper row indexjj[] - Contains the column indices of the submatrixA - The new value of the submatrixpublic Zmat get(int[] ii, int[] jj)
ii[] - Contains the row indices of the submatrixjj[] - Contains the column indices of the submatrixpublic void put(int[] ii,
int[] jj,
Zmat A)
ii[] - Contains the row indices of the submatrixjj[] - Contains the column indices of the submatrixA - The value of the new submatrixpublic Zludpp getLU()
public Zhqrd getHQR()
public Zchol getCHOL()
protected void clean()
Copyright © 2015. All rights reserved.