|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjmathlib.toolbox.jmathlib.matrix._private.Jampack.Z1
public class Z1
Z1 implements a one-dimensional array of complex numbers as a two arrays of type double. The addressing is zero based. It is necessary to provided one-dimensional complex arrays whose real and imaginary parts are contiguous in storage.
| Field Summary | |
|---|---|
protected double[] |
im
|
protected int |
n
|
protected double[] |
re
|
| Constructor Summary | |
|---|---|
Z1(int n)
Creates a Z1 initializes to zero. |
|
| Method Summary | |
|---|---|
Z |
get(int i)
Returns the ith element of a Z1 as a Z. |
void |
put(int i,
double real,
double imag)
Sets the real and imaginary parts of the ith element of a Z1. |
void |
put(int i,
Z z)
Sets the ith element of a Z1 to a Z. |
void |
Times(int i,
Z z)
Multiplies the ith element of a Z1 by a Z. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int n
protected double[] re
protected double[] im
| Constructor Detail |
|---|
public Z1(int n) throws JampackException
n - a positive integer
JampackException - Thrown if n<=0.| Method Detail |
|---|
public Z get(int i)
i - an integer
public void put(int i,
Z z)
i - an integerz - a Z
public void put(int i,
double real,
double imag)
i - an integerreal - a doubleimag - a double
public void Times(int i,
Z z)
i - an integerz - a Z
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||