void
MatrixBlockMonolithicEpetraView<DataType>::
sumIntoCoefficients ( UInt const numRows, UInt const numColumns,
                      std::vector<Int> const& blockRowIndices, std::vector<Int> const& blockColumnIndices,
                      DataType* const* const localValues,
                      Int format) const
{
    std::vector<Int> rowIndices (blockRowIndices);
    std::vector<Int> columnIndices (blockColumnIndices);

    for (UInt i (0); i < numRows; ++i)
    {
        rowIndices[i] += M_firstRowIndex;
    }
    for (UInt i (0); i < numColumns; ++i)
    {
        columnIndices[i] += M_firstColumnIndex;
    }

    M_matrix->sumIntoCoefficients (numRows, numColumns,
                                   rowIndices, columnIndices,
                                   localValues, format);
}
Exemplo n.º 2
0
 void pushToGlobal (boost::shared_ptr<MatrixType> mat)
 {
     mat->addToCoefficients ( M_nbRow, M_nbColumn,
                              rowIndices(), columnIndices(),
                              M_rawData, Epetra_FECrsMatrix::ROW_MAJOR);
 }
Exemplo n.º 3
0
 void pushToGlobal (MatrixType& mat)
 {
     mat.addToCoefficients ( M_nbRow, M_nbColumn,
                             rowIndices(), columnIndices(),
                             M_rawData, Epetra_FECrsMatrix::ROW_MAJOR);
 }