All Packages Class Hierarchy This Package Previous Next Index
Class Jampack.Z1
java.lang.Object
|
+----Jampack.Z1
- public class Z1
- extends Object
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.
-
im
-
-
n
-
-
re
-
-
Z1(int)
- Creates a Z1 initializes to zero.
-
get(int)
- Returns the ith element of a Z1 as a Z.
-
put(int, double, double)
- Sets the real and imaginary parts of the ith element of a Z1.
-
put(int, Z)
- Sets the ith element of a Z1 to a Z.
-
Times(int, Z)
- Multiplies the ith element of a Z1 by a Z.
n
protected int n
re
protected double re[]
im
protected double im[]
Z1
public Z1(int n) throws JampackException
- Creates a Z1 initializes to zero.
- Parameters:
- n - a positive integer
- Returns:
- A Z1 of length n
- Throws: JampackException
- Thrown if n<=0.
get
public Z get(int i)
- Returns the ith element of a Z1 as a Z.
- Parameters:
- i - an integer
- Returns:
- The ith elemeent of this Z1
put
public void put(int i,
Z z)
- Sets the ith element of a Z1 to a Z.
- Parameters:
- i - an integer
- z - a Z
- Returns:
- resets the ith element of this Z1 to z
put
public void put(int i,
double real,
double imag)
- Sets the real and imaginary parts of the ith element of a Z1.
- Parameters:
- i - an integer
- real - a double
- imag - a double
- Returns:
- resets the ith component of this Z1 to
real + i*imag
Times
public void Times(int i,
Z z)
- Multiplies the ith element of a Z1 by a Z.
- Parameters:
- i - an integer
- z - a Z
- Returns:
- multiplies the ith element of this Z1 by z.
All Packages Class Hierarchy This Package Previous Next Index