43 #ifndef _fei_AztecDVBR_Matrix_hpp_
44 #define _fei_AztecDVBR_Matrix_hpp_
54 namespace fei_trilinos {
75 int getBlockSize(
int blkRow,
int blkCol,
int& ptRows,
int& ptCols);
87 int num_nz_blocks)
const;
94 int num_nz_blocks)
const;
99 int num_nz_blocks)
const;
102 void allocate(
int* num_nz_blocks,
int* blk_col_inds);
126 int inUpdate(
int globalIndex,
int& localIndex)
const;
128 void readAllocateInfo(FILE* infile,
int*& num_nz_blocks,
int*& blk_col_inds);
133 void setBindx(
int nnzBlks,
int* blkColInds);
136 int getBindxOffset(
int blkInd,
int bpntrStart,
int bpntrEnd)
const;
140 void insertList(
int item,
int*& list,
int& len);
void setBindx(int nnzBlks, int *blkColInds)
int getNumBlocksPerRow(int blkRow, int &nnzBlksPerRow) const
void readMatrixData(FILE *infile)
void matvec(const Aztec_LSVector &x, Aztec_LSVector &y) const
int getNumNonzerosPerRow(int blkRow, int &nnzPerRow) const
AZ_MATRIX * getAZ_MATRIX_Ptr() const
void calcIndx(int nnzBlks)
void insertList(int item, int *&list, int &len)
void getRemoteBlkSizes(int *remoteBlkSizes, int *remoteInds, int len)
void setLoaded(bool flag)
AztecDVBR_Matrix(fei::SharedPtr< Aztec_BlockMap > map)
void calcBpntr(int *nzBlksPerRow)
bool writeToFile(const char *fileName) const
void readAllocateInfo(FILE *infile, int *&num_nz_blocks, int *&blk_col_inds)
int * getRemoteBlockIndices()
fei::SharedPtr< Aztec_BlockMap > amap_
int * getRemoteBlockSizes()
int getBlockRow(int blk_row, double *vals, int *blk_col_inds, int num_nz_blocks) const
void calcRemoteInds(int *&remoteInds, int &len)
int inUpdate(int globalIndex, int &localIndex) const
int sumIntoBlockRow(int blk_row, double *vals, int *blk_col_inds, int num_nz_blocks) const
int getBindxOffset(int blkInd, int bpntrStart, int bpntrEnd) const
void setAllocated(bool flag)
void messageAbort(const char *mesg) const
void getValuesFromString(char *line, int len, double *values, int lenValues)
void allocate(int *num_nz_blocks, int *blk_col_inds)
virtual ~AztecDVBR_Matrix()
int getBlockSize(int blkRow, int blkCol, int &ptRows, int &ptCols)
int putBlockRow(int blk_row, double *vals, int *blk_col_inds, int num_nz_blocks) const
bool readFromFile(const char *filename)