public class Zdiagmat extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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).
|
protected int order
protected int basex
protected double[] re
protected double[] im
public int n
public int bx
public int dx
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 ZmatJampackException - Passed from below.public Zdiagmat(Zdiagmat D)
D - A Zdiagmatpublic void getProperties()
public Z get(int ii)
ii - An integerpublic Z get0(int i)
public void put(int ii,
Z val)
ii - An integerval - A Zpublic void put0(int i,
Z val)
Copyright © 2015. All rights reserved.