public interface SolverFeature extends PropFeature
Modifier and Type | Method and Description |
---|---|
void |
addSparseMatrixVal(java.lang.String mName,
int[] row,
int[] col,
double[] val)
Set real part of sparse matrix.
|
void |
addSparseMatrixValImag(java.lang.String mName,
int[] row,
int[] col,
double[] val)
Set imaginary part of sparse matrix.
|
SolverFeature |
clearXmesh()
Clears the data created by xmeshInfo.
|
SolverFeature |
create(java.lang.String tag,
java.lang.String oper)
Create a solver feature.
|
void |
createSparseMatrix(java.lang.String mName,
int M,
int N,
int Nnz,
boolean isReal)
Create a matrix.
|
void |
createVector(java.lang.String mName,
int M,
boolean isReal)
Create a vector.
|
SolverFeatureList |
feature()
Returns all solver features.
|
SolverFeature |
feature(java.lang.String tag)
Returns solver feature.
|
int |
getM(java.lang.String mName)
Returns number of rows in matrix.
|
int |
getN(java.lang.String mName)
Returns number of columns in matrix.
|
int |
getNnz(java.lang.String mName)
Get number of non-zeros in sparse matrix.
|
int[] |
getSparseMatrixCol(java.lang.String mName)
Returns column indices of matrix values.
|
int[] |
getSparseMatrixColBlock(java.lang.String mName,
int start,
int stop)
A blocked version of getSparseMatrixCol.
|
int[] |
getSparseMatrixRow(java.lang.String mName)
Returns row indices of matrix values.
|
int[] |
getSparseMatrixRowBlock(java.lang.String mName,
int start,
int stop)
A blocked version of getSparseMatrixRow.
|
double[] |
getSparseMatrixVal(java.lang.String mName)
Returns matrix values.
|
double[] |
getSparseMatrixValBlock(java.lang.String mName,
int start,
int stop)
A blocked version of getSparseMatrixVal.
|
double[] |
getSparseMatrixValImag(java.lang.String mName)
Returns imaginary matrix values.
|
double[] |
getSparseMatrixValImagBlock(java.lang.String mName,
int start,
int stop)
A blocked version of getVectorImag.
|
double[] |
getVector(java.lang.String mName)
Returns the real vector associated with the matrix type.
|
double[] |
getVectorBlock(java.lang.String mName,
int start,
int stop)
A blocked version of getVector.
|
double[] |
getVectorImag(java.lang.String mName)
Get the imaginary part of the vector associated with the matrix type.
|
double[] |
getVectorImagBlock(java.lang.String mName,
int start,
int stop)
A blocked version of getSparseMatrixValImag.
|
boolean |
hasError()
Check for error in solver feature.
|
boolean |
hasProblem()
Check for problem in solver feature.
|
boolean |
hasWarning()
Check for warnings in solver feature.
|
boolean |
isReal(java.lang.String mName)
Check if matrix is is real.
|
SolverProblemFeatureList |
problem()
Returns solver problem feature list.
|
SolverProblemFeature |
problem(java.lang.String fname)
Returns solver problem feature.
|
void |
setVector(java.lang.String mName,
double[] val)
Set real part of vector.
|
void |
setVectorBlock(java.lang.String mName,
double[] val,
int start)
Set real part of block in vector.
|
void |
setVectorImag(java.lang.String mName,
double[] val)
Set imaginary part of vector.
|
void |
setVectorImagBlock(java.lang.String mName,
double[] val,
int start)
Set imaginary part of block in vector.
|
XmeshInfo |
xmeshInfo()
Returns extended mesh information.
|
XmeshInfo |
xmeshInfo(java.lang.String meshCase)
Returns extended mesh information for a mesh case.
|
getAllowedPropertyValues, getBoolean, getBoolean, getBoolean, getBooleanArray, getBooleanMatrix, getDouble, getDouble, getDouble, getDoubleArray, getDoubleMatrix, getEntryKeyIndex, getEntryKeys, getInt, getInt, getInt, getIntArray, getIntMatrix, getReferenceArray, getString, getString, getString, getString, getStringArray, getStringMatrix, getType, getValueType, hasProperty, hasSelection, move, move, properties, remove, remove, selection, set, set, set, set, set, set, set, set, set, set, set, set, setEntry, setEntry, setEntry, setEntry, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex
selection
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
getContainer, getDisplayString
void addSparseMatrixVal(java.lang.String mName, int[] row, int[] col, double[] val)
mName
- Matrix name.row
- Row index vector.col
- Column index vector.val
- Matrix values.void addSparseMatrixValImag(java.lang.String mName, int[] row, int[] col, double[] val)
mName
- Matrix name.row
- Row index vector.col
- Column index vector.val
- Matrix values.SolverFeature clearXmesh()
SolverFeature create(java.lang.String tag, java.lang.String oper)
tag
- Feature tag.oper
- Type of feature.void createSparseMatrix(java.lang.String mName, int M, int N, int Nnz, boolean isReal)
mName
- Matrix name.M
- Number of rows.N
- Number of columns.Nnz
- Number of non zeros.isReal
- true
for real matrix.void createVector(java.lang.String mName, int M, boolean isReal)
mName
- Vector name.M
- Vector length.isReal
- true
for real vector - false
for complex
vector.SolverFeatureList feature()
SolverFeature feature(java.lang.String tag)
tag
- Solver feature tag.int getM(java.lang.String mName)
mName
- Matrix name.int getN(java.lang.String mName)
mName
- Matrix name.int getNnz(java.lang.String mName)
mName
- Matrix name.int[] getSparseMatrixCol(java.lang.String mName)
mName
- Matrix name.int[] getSparseMatrixColBlock(java.lang.String mName, int start, int stop)
mName
- Matrix name.start
- Start index.stop
- Stop index.int[] getSparseMatrixRow(java.lang.String mName)
mName
- Matrix name.int[] getSparseMatrixRowBlock(java.lang.String mName, int start, int stop)
mName
- Matrix name.start
- Start index.stop
- Stop index.double[] getSparseMatrixVal(java.lang.String mName)
mName
- Matrix name.double[] getSparseMatrixValBlock(java.lang.String mName, int start, int stop)
mName
- Matrix name.start
- Start index.stop
- Stop index.double[] getSparseMatrixValImag(java.lang.String mName)
mName
- Matrix name.double[] getSparseMatrixValImagBlock(java.lang.String mName, int start, int stop)
mName
- Matrix name.start
- Start index.stop
- Stop index.double[] getVector(java.lang.String mName)
mName
- Matrix name.double[] getVectorBlock(java.lang.String mName, int start, int stop)
mName
- Matrix name.start
- Start index.stop
- Stop index.double[] getVectorImag(java.lang.String mName)
mName
- Matrix name.double[] getVectorImagBlock(java.lang.String mName, int start, int stop)
mName
- Matrix name.start
- Start index.stop
- Stop index.boolean hasError()
true
if error.boolean hasProblem()
true
if problem.boolean hasWarning()
true
if warning.boolean isReal(java.lang.String mName)
mName
- Matrix name.true
if matrix is real.SolverProblemFeatureList problem()
SolverProblemFeature problem(java.lang.String fname)
fname
- Solver problem feature tag.void setVector(java.lang.String mName, double[] val)
mName
- Vector name.val
- Vector values.void setVectorBlock(java.lang.String mName, double[] val, int start)
mName
- Vector name.val
- Vector values.start
- Start index.void setVectorImag(java.lang.String mName, double[] val)
mName
- Vector name.val
- Vector values.void setVectorImagBlock(java.lang.String mName, double[] val, int start)
mName
- Vector name.val
- Vector values.start
- Start index.XmeshInfo xmeshInfo()
XmeshInfo xmeshInfo(java.lang.String meshCase)
meshCase
- Mesh case.