TMatrix
- template for matrix [A] elementTVector
- template for vector [b] elementpublic class AbstractMatrixEqn<TMatrix,TVector>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TMatrix[][] |
a |
protected TVector[] |
b |
Modifier | Constructor and Description |
---|---|
|
AbstractMatrixEqn()
default constructor
|
protected |
AbstractMatrixEqn(int d)
constructor
|
Modifier and Type | Method and Description |
---|---|
TMatrix[][] |
getA() |
TMatrix |
getAij(int i,
int j)
get the [A]ij element
|
TVector[] |
getB() |
TVector |
getBi(int i)
get the [b]i element
|
int |
getDimension() |
void |
setAij(TMatrix a,
int i,
int j)
set the [A]ij element
|
void |
setB(TVector[] bAry)
set the [b] vector
|
void |
setBi(TVector b,
int i)
set the [b]i element
|
public AbstractMatrixEqn()
protected AbstractMatrixEqn(int d)
d
- the dimension of the matrixpublic TVector[] getB()
public TMatrix[][] getA()
public int getDimension()
public void setAij(TMatrix a, int i, int j)
a
- the matrix elementi
- row numberj
- column numberpublic void setBi(TVector b, int i)
b
- the vector elementi
- row numberpublic void setB(TVector[] bAry)
bAry
- the [b] vectorpublic TMatrix getAij(int i, int j)
i
- row numberj
- column numberpublic TVector getBi(int i)
i
- row number