public class Z1 extends Object
| Modifier and Type | Field and Description |
|---|---|
protected double[] |
im |
protected int |
n |
protected double[] |
re |
| Constructor and Description |
|---|
Z1(int n)
Creates a Z1 initializes to zero.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Z1(int n) throws JampackException
n - a positive integerJampackException - Thrown if n<=0.public Z get(int i)
i - an integerpublic void put(int i,
Z z)
i - an integerz - a Zpublic void put(int i,
double real,
double imag)
i - an integerreal - a doubleimag - a doublepublic void Times(int i,
Z z)
i - an integerz - a ZCopyright © 2015. All rights reserved.