public class Complex3x1
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
org.apache.commons.math3.complex.Complex |
a_0 |
org.apache.commons.math3.complex.Complex |
b_1 |
org.apache.commons.math3.complex.Complex |
c_2 |
static int |
Index_0 |
static int |
Index_1 |
static int |
Index_2 |
static int |
Index_a |
static int |
Index_b |
static int |
Index_c |
Constructor and Description |
---|
Complex3x1()
Default constructor.
|
Complex3x1(org.apache.commons.math3.complex.Complex[] c)
Constructor.
|
Complex3x1(Complex3x1 c)
Copy Constructor
|
Complex3x1(org.apache.commons.math3.complex.Complex a0,
org.apache.commons.math3.complex.Complex b1,
org.apache.commons.math3.complex.Complex c2)
Constructor.
|
Complex3x1(double a0,
double b1,
double c2)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Complex3x1 |
abc_to_z12(Complex3x1 abc)
Transformation from abc to 012 system
|
double |
abs()
get the absolute value of this object
|
double |
absMax()
get max[abs(a_0), abs(b_1), abs(c_2)]
|
Complex3x1 |
add(Complex3x1 y)
add this object with a Complex3x1 x+y = [ x.a_0+y.a_0, x.b_1+y.b_1, x.c_2+y.c_2 ]
|
Complex3x1 |
clone() |
Complex3x1 |
conjugate()
convert the complex object to its conjugate
|
Complex3x1 |
divide(Complex3x1 y)
devide this object with a Complex3x1 x/y = [ x.a_0/y.a_0, x.b_1/y.b_1, x.c_2/y.c_2 ]
|
org.apache.commons.math3.complex.Complex |
dotProduct(Complex3x1 value)
multiply the object with a complex3x1 object, and get the sum.
|
Complex3x1 |
multiply(Complex3x1 y)
multiply the object with a complex3x1 object => [x.a*y.a, x.b*y.b, x.c*y.c]
|
Complex3x1 |
multiply(double d)
multiply the object with a double value
|
Complex3x1 |
multiply(double d0,
double d1,
double d2)
multiply the object with three double values, as follows
this.a_0.multiply(d0), this.b_1.multiply(d1), this.c_2.multiply(d2)
|
Complex3x1 |
negate() |
Complex3x1 |
subtract(Complex3x1 y)
subtract this object with a Complex3x1 x - y = [ x.a_0-y.a_0, x.b_1-y.b_1, x.c_2-y.c_2 ]
|
Complex3x1 |
to012()
convert this object from abc to 012
|
Complex3x1 |
toABC()
convert this object from 012 to abc
|
org.apache.commons.math3.complex.Complex[] |
toArray() |
java.lang.String |
toString()
Convert the obj to a string.
|
static Complex3x1 |
valueOf(Complex3x1 c) |
static Complex3x1 |
z12_to_abc(Complex3x1 z12)
Transformation from 012 to abc system
|
public static final int Index_0
public static final int Index_1
public static final int Index_2
public static final int Index_a
public static final int Index_b
public static final int Index_c
public org.apache.commons.math3.complex.Complex a_0
public org.apache.commons.math3.complex.Complex b_1
public org.apache.commons.math3.complex.Complex c_2
public Complex3x1()
public Complex3x1(org.apache.commons.math3.complex.Complex a0, org.apache.commons.math3.complex.Complex b1, org.apache.commons.math3.complex.Complex c2)
a0
- a complex numberb1
- a complex numberc2
- a complex numberpublic Complex3x1(double a0, double b1, double c2)
a0
- a complex numberb1
- a complex numberc2
- a complex numberpublic Complex3x1(org.apache.commons.math3.complex.Complex[] c)
a0
- a complex numberb1
- a complex numberc2
- a complex numberpublic Complex3x1(Complex3x1 c)
c
- obj to be copiedpublic static Complex3x1 abc_to_z12(Complex3x1 abc)
abc
- a 3x1 complex vector in abc systempublic static Complex3x1 valueOf(Complex3x1 c)
public Complex3x1 negate()
public Complex3x1 clone()
clone
in class java.lang.Object
public Complex3x1 conjugate()
public org.apache.commons.math3.complex.Complex[] toArray()
public Complex3x1 add(Complex3x1 y)
y
- the add valuepublic Complex3x1 subtract(Complex3x1 y)
y
- the subtract valuepublic Complex3x1 multiply(double d)
d
- the double valuepublic Complex3x1 multiply(double d0, double d1, double d2)
d
- the double valuepublic Complex3x1 multiply(Complex3x1 y)
y
- the complex3x1 valuepublic org.apache.commons.math3.complex.Complex dotProduct(Complex3x1 value)
y
- the complex valuepublic Complex3x1 divide(Complex3x1 y)
y
- the deviderpublic double abs()
public double absMax()
public Complex3x1 to012()
public Complex3x1 toABC()
public static Complex3x1 z12_to_abc(Complex3x1 z12)
abc
- a 3x1 complex vector in 012 systempublic java.lang.String toString()
toString
in class java.lang.Object