Package | Description |
---|---|
starfish.core.boundaries | |
starfish.core.solver |
Modifier and Type | Method and Description |
---|---|
void |
BoundaryModule.NewBoundary(org.w3c.dom.Element element,
Matrix G,
boolean flip_normals_global)
ads a new boundary
|
void |
Spline.setPath(java.lang.String path,
Matrix T,
boolean flip_normals)
Sets the spline using a SVG-like path syntax:
M x y : moves the current position to x y
L x y : creates a linear segment from current position to (x,y)
C k1x k1y k2x k2y x y : creates a cubic segment from current position to (x,y) using knots k1 and k2
S x y : creates a smooth segment from current position to (x,y)
Z : adds discontinuity into the spline
Unlike SVG, the cubic path is specified only by the final position.
|
Modifier and Type | Field and Description |
---|---|
Matrix |
Solver.MeshData.A |
Matrix |
Solver.MeshData.Gi |
Matrix |
Solver.MeshData.Gj |
Matrix |
Solver.MeshData.L |
Matrix |
Solver.MeshData.U |
Modifier and Type | Method and Description |
---|---|
static Matrix |
Matrix.copy(Matrix A)
copy constructor
|
Matrix[] |
Matrix.decomposeLU() |
Matrix |
Matrix.diag_matrix()
returns a new matrix which is the diagonal of the specified on
|
Matrix |
Matrix.identity()
returns the identity matrix of size of
|
Matrix |
Matrix.inverse()
returns the inverse
NOTE: this is currently defined only for diagonal matrix!
|
static Matrix |
Matrix.makeTransformationMatrix(double[] scaling,
double theta,
double[] translation)
creates 2D transformation matrix
M = T*R*S
|
Matrix |
Matrix.mult(Matrix A)
performs matrix matrix multiplication
|
Matrix |
Matrix.subtract(Matrix B)
returns A-
|
Matrix |
Matrix.subtractDiag(double[] b)
returns A-diag(B), for now defined only for identical matrices (nv is equal
|
Matrix |
Matrix.transpose()
returns the transpose
|
Modifier and Type | Method and Description |
---|---|
protected double |
Solver.calculateResidue(Matrix A,
double[] x,
double[] b)
returns L2 norm of R=|Ax-b|
|
static Matrix |
Matrix.copy(Matrix A)
copy constructor
|
void |
Matrix.copyRow(Matrix A,
int i)
copies single row between matrixe
|
double[] |
Matrix.diag(Matrix A)
returns a vector containing the diagona
|
Matrix |
Matrix.mult(Matrix A)
performs matrix matrix multiplication
|
protected int |
Solver.solveLinearMultigrid(Matrix A,
double[] x,
double[] b)
solves Ax=b for x using the Multigrid method
|
Matrix |
Matrix.subtract(Matrix B)
returns A-
|