|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJampack.Zdiagmat
public class Zdiagmat
Zdiagmat is a storage efficient representation of a complex diagonal matrix.
Field Summary | |
---|---|
int |
bx
The base index (public) |
int |
dx
The index of the last diagonal (public) |
int |
n
The order of the matrix (public) |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int n
public int bx
public int dx
Constructor Detail |
---|
public Zdiagmat(int order)
order
- The order of the new Zdiagmatpublic 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 Z1public 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 ZdiagmatMethod 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 Zpublic void put0(int i, Z val)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |