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