|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjmathlib.toolbox.jmathlib.matrix._private.Jampack.Zdiagmat
public class Zdiagmat
Zdiagmat is a storage efficient representation of a complex diagonal matrix.
| Field Summary | |
|---|---|
protected int |
basex
The base index |
int |
bx
The base index (public) |
int |
dx
The index of the last diagonal (public) |
protected double[] |
im
The imaginary part of the diagonal |
int |
n
The order of the matrix (public) |
protected int |
order
The order of the matrix |
protected double[] |
re
The real part of the diagonal |
| Constructor Summary | |
|---|---|
Zdiagmat(int order)
Constructs a Zdiagmat and initializes it to zero. |
|
Zdiagmat(int order,
Z val)
Constructs a Zdiagmat and initializes it to a constant. |
|
Zdiagmat(Z1 val)
Constructs a Zdiagmat and initializes it to a Z1. |
|
Zdiagmat(Zdiagmat D)
Constructs a Zdiagmat and initializes it to another Zdiagmat. |
|
Zdiagmat(Zmat A)
Constructs a Zdiagmat and initializes it to the principal diagonal of a Zmat. |
|
Zdiagmat(Zmat A,
int k)
Constructs a Zdiagmat and initializes it to the diagonal of a Zmat. |
|
| Method Summary | |
|---|---|
Z |
get(int ii)
Gets the ii-th diagonal element of a Zdiagmat. |
Z |
get0(int i)
Gets the ith diagonal of a of a Zdiagmat (0-based). |
void |
getProperties()
Sets the public parameters. |
void |
put(int ii,
Z val)
Writes the ii-th diagonal element of a Zdiagmat. |
void |
put0(int i,
Z val)
Writes the ith diagonal element of a Zdiagmat (0-based). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int order
protected int basex
protected double[] re
protected double[] im
public int n
public int bx
public int dx
| Constructor Detail |
|---|
public Zdiagmat(int order)
order - The order of the new Zdiagmat
public Zdiagmat(int order,
Z val)
order - The order of the new Zdiagmatval - The value to which the diagonal
is to be initializedpublic Zdiagmat(Z1 val)
val - A Z1
public Zdiagmat(Zmat A,
int k)
throws JampackException
A - The Zmatk - The diagonal. For k=0 gives the princpal diagonal;
k>0, the kth superdiagonal; k<0, the kth subdiagonal.
JampackException - Thrown for k to large or small.
public Zdiagmat(Zmat A)
throws JampackException
A - A Zmat
JampackException - Passed from below.public Zdiagmat(Zdiagmat D)
D - A Zdiagmat| Method Detail |
|---|
public void getProperties()
public Z get(int ii)
ii - An integer
public Z get0(int i)
public void put(int ii,
Z val)
ii - An integerval - A Z
public void put0(int i,
Z val)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||