ngsPETSc.mat
============

.. py:module:: ngsPETSc.mat

.. autoapi-nested-parse::

   This module contains all the functions related to wrapping NGSolve matrices to
   PETSc matrices using the petsc4py interface.



Classes
-------

.. autoapisummary::

   ngsPETSc.mat.Matrix


Module Contents
---------------

.. py:class:: Matrix(ngsMat, parDescr, matType='aij', petscMat=None)

   Bases: :py:obj:`object`


   This class creates a PETSc Matrix

   :arg ngsMat: the NGSolve matrix

   :arg freeDofs: free DOFs of the FE spaces used to construct the matrix

   :arg matType: type of PETSc matrix, i.e. PETSc sparse: aij,
   MKL sparse: aijmkl or CUDA: aijcusparse



   .. py:method:: view()

      This function display PETSc Mat info




