EpetraMatrix

class dolfin.cpp.la.EpetraMatrix(*args)

Bases: dolfin.cpp.la.GenericMatrix

This class provides a simple matrix class based on Epetra. It is a simple wrapper for an Epetra matrix object (Epetra_FECrsMatrix) implementing the GenericMatrix interface.

The interface is intentionally simple. For advanced usage, access the Epetra_FECrsMatrix object using the function mat() and use the standard Epetra interface.

Overloaded versions

  • EpetraMatrix()

    Create empty matrix

  • EpetraMatrix(A)

    Copy constuctor

  • EpetraMatrix(A)

    Create matrix from given Epetra_FECrsMatrix pointer

  • EpetraMatrix(A)

    Create matrix from given Epetra_FECrsMatrix pointer

  • EpetraMatrix(graph)

    Create matrix from given Epetra_CrsGraph

assign()

Overloaded versions

  • operator=(x)

    Assignment operator

  • operator=(x)

    Assignment operator

mat()

Return the Epetra_FECrsMatrix

thisown

The membership flag

zero()

Overloaded versions

  • zero()

    Set all entries to zero and keep any sparse structure

  • zero(m, rows)

    Set given rows to zero