org.opensourcephysics.numerics
Class ComplexMatrix

java.lang.Object
  extended by org.opensourcephysics.numerics.ComplexMatrix

public class ComplexMatrix
extends java.lang.Object

Class description


Constructor Summary
ComplexMatrix()
           
 
Method Summary
static void add(Complex[][] A, Complex[][] B, Complex[][] C)
           
static void add(Complex[][] A, Complex B, Complex[][] C)
           
static void add(Complex[] X, Complex[] Y, Complex[] Z)
           
static void closeInput()
           
static void closeOutput()
           
static void copy(Complex[][] A, Complex[][] B)
           
static void copy(Complex[] X, Complex[] Y)
           
static Complex determinant(Complex[][] A)
           
static void eigenCheck(Complex[][] A, Complex[][] V, Complex[] Y)
           
static void eigenvalues(Complex[][] A, Complex[][] V, Complex[] Y)
           
static boolean equals(Complex[][] A, Complex[][] B)
           
static boolean equals(Complex[] X, Complex[] Y)
           
static void fromDouble(double[][] A, Complex[][] C)
           
static void fromDouble(double[][] A, double[][] B, Complex[][] C)
           
static void fromDouble(double[] X, Complex[] Z)
           
static void fromDouble(double[] X, double[] Y, Complex[] Z)
           
static void fromRoots(Complex[] X, Complex[] Y)
           
static void identity(Complex[][] A)
           
static void invert(Complex[][] A)
           
static void mul(Complex[][] A, Complex[][] B, Complex[][] C)
           
static void mul(Complex[][] A, Complex[] B, Complex[] C)
           
static void mul(Complex[][] A, Complex B, Complex[][] C)
           
static double norm1(Complex[] X)
           
static double norm1(Complex[][] A)
           
static double norm2(Complex[] X)
           
static double norm2(Complex[][] A)
           
static double normFro(Complex[][] A)
           
static double normInf(Complex[] X)
           
static double normInf(Complex[][] A)
           
static void print(Complex[] X)
           
static void print(Complex[][] A)
           
static void read(java.lang.String file_name, Complex[][] A)
           
static void readSize(java.lang.String file_name, int[] rowCol)
           
static void solve(Complex[][] A, Complex[] Y, Complex[] X)
           
static void subtract(Complex[][] A, Complex[][] B, Complex[][] C)
           
static void subtract(Complex[][] A, Complex B, Complex[][] C)
           
static void subtract(Complex[] X, Complex[] Y, Complex[] Z)
           
static void unitVector(Complex[] X, int j)
           
static void write(java.lang.String file_name, Complex[][] A)
           
static void zero(Complex[] X)
           
static void zero(Complex[][] A)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexMatrix

public ComplexMatrix()
Method Detail

solve

public static void solve(Complex[][] A,
                         Complex[] Y,
                         Complex[] X)

invert

public static final void invert(Complex[][] A)

determinant

public static final Complex determinant(Complex[][] A)

eigenvalues

public static final void eigenvalues(Complex[][] A,
                                     Complex[][] V,
                                     Complex[] Y)

eigenCheck

public static final void eigenCheck(Complex[][] A,
                                    Complex[][] V,
                                    Complex[] Y)

mul

public static final void mul(Complex[][] A,
                             Complex[][] B,
                             Complex[][] C)

mul

public static final void mul(Complex[][] A,
                             Complex B,
                             Complex[][] C)

add

public static final void add(Complex[][] A,
                             Complex[][] B,
                             Complex[][] C)

add

public static final void add(Complex[][] A,
                             Complex B,
                             Complex[][] C)

subtract

public static final void subtract(Complex[][] A,
                                  Complex[][] B,
                                  Complex[][] C)

subtract

public static final void subtract(Complex[][] A,
                                  Complex B,
                                  Complex[][] C)

norm1

public static final double norm1(Complex[][] A)

normInf

public static final double normInf(Complex[][] A)

normFro

public static final double normFro(Complex[][] A)

norm2

public static final double norm2(Complex[][] A)

copy

public static final void copy(Complex[][] A,
                              Complex[][] B)

equals

public static final boolean equals(Complex[][] A,
                                   Complex[][] B)

fromDouble

public static final void fromDouble(double[][] A,
                                    double[][] B,
                                    Complex[][] C)

fromDouble

public static final void fromDouble(double[][] A,
                                    Complex[][] C)

identity

public static final void identity(Complex[][] A)

zero

public static final void zero(Complex[][] A)

print

public static final void print(Complex[][] A)

mul

public static final void mul(Complex[][] A,
                             Complex[] B,
                             Complex[] C)

add

public static final void add(Complex[] X,
                             Complex[] Y,
                             Complex[] Z)

subtract

public static final void subtract(Complex[] X,
                                  Complex[] Y,
                                  Complex[] Z)

norm1

public static final double norm1(Complex[] X)

norm2

public static final double norm2(Complex[] X)

normInf

public static final double normInf(Complex[] X)

copy

public static final void copy(Complex[] X,
                              Complex[] Y)

equals

public static final boolean equals(Complex[] X,
                                   Complex[] Y)

fromDouble

public static final void fromDouble(double[] X,
                                    Complex[] Z)

fromDouble

public static final void fromDouble(double[] X,
                                    double[] Y,
                                    Complex[] Z)

fromRoots

public static void fromRoots(Complex[] X,
                             Complex[] Y)

unitVector

public static final void unitVector(Complex[] X,
                                    int j)

zero

public static final void zero(Complex[] X)

print

public static final void print(Complex[] X)

readSize

public static final void readSize(java.lang.String file_name,
                                  int[] rowCol)

read

public static final void read(java.lang.String file_name,
                              Complex[][] A)

closeInput

public static final void closeInput()

write

public static final void write(java.lang.String file_name,
                               Complex[][] A)

closeOutput

public static final void closeOutput()