Numerical operators. More...
Go to the source code of this file.
Typedefs | |
typedef struct MboNumOp_t * | MboNumOp |
Data type for numerical operators. More... | |
Functions | |
MBO_EXPORT MBO_STATUS | mboNumOpCompile (MboTensorOp op, MboNumOp *numOp) |
Build a numerical operator from a tensor operator. More... | |
MBO_EXPORT void | mboNumOpDestroy (MboNumOp *op) |
Deallocate all resources associated with a MboNumOp. More... | |
MBO_EXPORT MboProdSpace | mboNumOpGetSpace (MboNumOp op) |
Returns a (non-owning) pointer to the space of an operator. More... | |
MBO_EXPORT MBO_STATUS | mboNumOpMatVec (struct MboAmplitude alpha, MboNumOp a, struct MboAmplitude *x, struct MboAmplitude beta, struct MboAmplitude *y) |
MBO_EXPORT double | mboNumOpFlops (MboNumOp a) |
Returns an estimate for the number of floating point operations in a MatVec. More... | |
MBO_EXPORT void | mboNumOpDenseMatrix (MboNumOp a, struct MboAmplitude *mat) |
Dense matrix representation of operator. More... | |
MBO_EXPORT void | mboNumOpRowOffsets (MboNumOp op, MboGlobInd rmin, MboGlobInd rmax, MboGlobInd *i) |
Compute row offsets of sparse matrix. More... | |
MBO_EXPORT MBO_STATUS | mboNumOpSparseMatrix (MboNumOp op, MboGlobInd rmin, MboGlobInd rmax, MboGlobInd *i, MboGlobInd *j, struct MboAmplitude *a) |
Create a sparse matrix representation for a numerical operator. More... | |
MBO_EXPORT void | mboNumOpDiagonal (MboNumOp op, MboGlobInd rmin, MboGlobInd rmax, struct MboAmplitude *diag) |
Get diagonal entries from a numerical operator. More... | |
MBO_EXPORT void | mboNumOpDeleteDiagonal (MboNumOp op) |
Erase the diagonal from an operator. More... | |
Numerical operators.
MboNumOp objects provide operators in a form suitable for numerical operations such as matrix-vector multiplies. MboNumOp objects can be obtained from MboTensorOps by means of a compilation step with mboNumOpCompile.