MBO
 All Data Structures Files Functions Variables Typedefs Enumerations Modules Pages
Typedefs | Functions
MboNumOp

Typedefs

typedef struct MboNumSubMatrix_t * MboNumSubMatrix
 Data type for sub matrices. More...
 

Functions

MBO_EXPORT MBO_STATUS mboNumSubMatrixCreate (MboNumOp op, MboGlobInd rmin, MboGlobInd rmax, MboGlobInd cmin, MboGlobInd cmax, MboNumSubMatrix *submat)
 Create a sub matrix from an existing MboNumOp. More...
 
MBO_EXPORT void mboNumSubMatrixDestroy (MboNumSubMatrix *m)
 
MBO_EXPORT void mboNumSubMatrixSetTile (MboNumSubMatrix m, MboGlobInd rmin, MboGlobInd rmax, MboGlobInd cmin, MboGlobInd cmax)
 
MBO_EXPORT MBO_STATUS mboNumSubMatrixMatVec (struct MboAmplitude alpha, MboNumSubMatrix m, struct MboAmplitude *x, struct MboAmplitude beta, struct MboAmplitude *y)
 

Detailed Description

Typedef Documentation

typedef struct MboNumSubMatrix_t* MboNumSubMatrix

Data type for sub matrices.

MboNumSubMatrix objects can be created from MboNumOps using mboNumSubMatrixCreate.

See also
mboNumSubMatrixCreate, MboNumOp.

Function Documentation

MBO_EXPORT MBO_STATUS mboNumSubMatrixCreate ( MboNumOp  op,
MboGlobInd  rmin,
MboGlobInd  rmax,
MboGlobInd  cmin,
MboGlobInd  cmax,
MboNumSubMatrix submat 
)

Create a sub matrix from an existing MboNumOp.

Parameters
opThe operator from which to create the submatrix. This operator must remain valid until the returned MboNumSubMatrix is destroyed or until the operator is replaced with #mboNumSubMatrixSetOp.
rminFirst row of submatrix.
rmaxOne past last row of submatrix.
cminFirst column of submatrix.
cmaxOne past last column of submatrix.
submatThe newly create MboNumSubMatrix. This must be destroyed with mboNumSubMatrixDestroy.
Returns
Error code.
See also
mboNumSubMatrixDestroy, mboNumSubMatrixSetOp.