|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectqcnn.ComplexMatrix
class ComplexMatrix
Represents a 2x2 matrix of complex numbers. The implementation is such
that instances of ComplexMatrix are immutable; operations
should be combined through composition and cascading of method
invokations.
| Field Summary | |
|---|---|
protected Complex |
a
|
protected Complex |
b
|
protected Complex |
c
|
protected Complex |
d
|
static ComplexMatrix |
IDENTITY
|
| Constructor Summary | |
|---|---|
ComplexMatrix()
Creates a new identity matrix |
|
ComplexMatrix(Complex a,
Complex b,
Complex c,
Complex d)
Creates a new complex matrix. |
|
ComplexMatrix(double a,
double b,
double c,
double d)
Creates a real-valued complex matrix. |
|
| Method Summary | |
|---|---|
ComplexMatrix |
multiply(ComplexMatrix m)
Computes the product of two matrices. |
ComplexMatrix |
multiply(double v)
Scales all entries in this matric by a real number |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Complex a
protected Complex b
protected Complex c
protected Complex d
public static final ComplexMatrix IDENTITY
| Constructor Detail |
|---|
public ComplexMatrix(Complex a,
Complex b,
Complex c,
Complex d)
/ a b \
\ c d /
public ComplexMatrix(double a,
double b,
double c,
double d)
/ a b \
\ c d /
public ComplexMatrix()
| Method Detail |
|---|
public ComplexMatrix multiply(ComplexMatrix m)
M = A.multiply(B.multiply(C)) or
M = A.multiply(B).multiply(C); these are equivalent due
to associativity.
public ComplexMatrix multiply(double v)
v - The scaling factor
public java.lang.String toString()
toString in class java.lang.Object(a,b,c,d)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||