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.


Variable Index

 o im
 o n
 o re

Constructor Index

 o Z1(int)
Creates a Z1 initializes to zero.

Method Index

 o get(int)
Returns the ith element of a Z1 as a Z.
 o put(int, double, double)
Sets the real and imaginary parts of the ith element of a Z1.
 o put(int, Z)
Sets the ith element of a Z1 to a Z.
 o Times(int, Z)
Multiplies the ith element of a Z1 by a Z.

Variables

 o n
 protected int n
 o re
 protected double re[]
 o im
 protected double im[]

Constructors

 o 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.

Methods

 o 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
 o 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
 o 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
 o 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