|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object BandMatrix
BandMatrix - Linear algebra package for band matrices
Field Summary | |
(package private) int |
c
|
(package private) double[] |
d
|
(package private) double |
det
|
(package private) int |
diagos
|
(package private) boolean |
isDecomposed
|
(package private) int |
l
|
(package private) int |
lines
|
(package private) double[][] |
m
|
(package private) int |
n
|
(package private) int |
r
|
Constructor Summary | |
BandMatrix(int diagos,
int lines)
Constructor |
Method Summary | |
double[] |
dot(double[] v)
Matrix times vector |
double |
get(int j,
int i)
Retrieve value of matrix elements |
double |
getD(int i)
|
double |
getL(int i)
|
double |
getR(int i)
|
boolean |
isEqual(double[] sol,
double[] ini,
double precision)
Decide whether two vectors are equal to a certain degree of precision |
void |
set(int i,
int j,
double v)
Store matrix elements |
void |
setD(int i,
double v)
|
void |
setL(int i,
double v)
|
void |
setR(int i,
double v)
|
double[] |
solve3(double[] rhs)
Direct LU solver for 3-banded matrix with multiple RHS and BC The matrix is decomposed once only for the first rhs vector Periodic boundary conditions are taken care of by the upper-left lower-right most matrix elements |
double[] |
ssor3(double[] rhs,
double[] ini)
Projected Symmetric Over Relaxation for 3-banded matrix Periodic boundary conditions are taken care of by the upper-left lower-right most matrix elements |
double[] |
ssor3(double[] rhs,
double[] ini,
double[] min,
double[] max,
double precision,
double w,
int maxIterations)
Projected Symmetric Over Relaxation for 3-banded matrix Periodic boundary conditions are taken care of by the upper-left lower-right most matrix elements |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
double[][] m
double[] d
double det
int diagos
int lines
int n
boolean isDecomposed
int l
int c
int r
Constructor Detail |
public BandMatrix(int diagos, int lines)
Method Detail |
public void set(int i, int j, double v)
public void setL(int i, double v)
public void setD(int i, double v)
public void setR(int i, double v)
public double get(int j, int i)
public double getL(int i)
public double getD(int i)
public double getR(int i)
public double[] dot(double[] v)
public double[] solve3(double[] rhs)
rhs
- Right hand side vector
public double[] ssor3(double[] rhs, double[] ini, double[] min, double[] max, double precision, double w, int maxIterations)
rhs
- Right hand side vectorini
- Initial iteratemin
- Lower limit for obstacle problemsmax
- Upper limit for obstacle problemsprecision
- Relative precision requiredw
- Relaxation parameter to be chosen within [0;2]maxIterations
- Maximum number of iterations
public double[] ssor3(double[] rhs, double[] ini)
rhs
- Right hand side vectorini
- Initial iterate
public boolean isEqual(double[] sol, double[] ini, double precision)
sol
- First vectorini
- Second vectorprecision
- Absolute precision
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |