petsc-3.4.2 2013-07-02

# MatType

String with the name of a PETSc matrix type

### Synopsis

    typedef const char* MatType;
    #define MATSAME            "same"
    #define MATMAIJ            "maij"
    #define MATSEQMAIJ         "seqmaij"
    #define MATMPIMAIJ         "mpimaij"
    #define MATIS              "is"
    #define MATAIJ             "aij"
    #define MATSEQAIJ          "seqaij"
    #define MATSEQAIJPTHREAD   "seqaijpthread"
    #define MATAIJPTHREAD      "aijpthread"
    #define MATMPIAIJ          "mpiaij"
    #define MATAIJCRL          "aijcrl"
    #define MATSEQAIJCRL       "seqaijcrl"
    #define MATMPIAIJCRL       "mpiaijcrl"
    #define MATAIJCUSP         "aijcusp"
    #define MATSEQAIJCUSP      "seqaijcusp"
    #define MATMPIAIJCUSP      "mpiaijcusp"
    #define MATAIJCUSPARSE     "aijcusparse"
    #define MATSEQAIJCUSPARSE  "seqaijcusparse"
    #define MATMPIAIJCUSPARSE  "mpiaijcusparse"
    #define MATAIJPERM         "aijperm"
    #define MATSEQAIJPERM      "seqaijperm"
    #define MATMPIAIJPERM      "mpiaijperm"
    #define MATSHELL           "shell"
    #define MATDENSE           "dense"
    #define MATSEQDENSE        "seqdense"
    #define MATMPIDENSE        "mpidense"
    #define MATELEMENTAL       "elemental"
    #define MATBAIJ            "baij"
    #define MATSEQBAIJ         "seqbaij"
    #define MATMPIBAIJ         "mpibaij"
    #define MATMPIADJ          "mpiadj"
    #define MATSBAIJ           "sbaij"
    #define MATSEQSBAIJ        "seqsbaij"
    #define MATMPISBAIJ        "mpisbaij"
    #define MATSEQBSTRM        "seqbstrm"
    #define MATMPIBSTRM        "mpibstrm"
    #define MATBSTRM           "bstrm"
    #define MATSEQSBSTRM       "seqsbstrm"
    #define MATMPISBSTRM       "mpisbstrm"
    #define MATSBSTRM          "sbstrm"
    #define MATDAAD            "daad"
    #define MATMFFD            "mffd"
    #define MATNORMAL          "normal"
    #define MATLRC             "lrc"
    #define MATSCATTER         "scatter"
    #define MATBLOCKMAT        "blockmat"
    #define MATCOMPOSITE       "composite"
    #define MATFFT             "fft"
    #define MATFFTW            "fftw"
    #define MATSEQCUFFT        "seqcufft"
    #define MATTRANSPOSEMAT    "transpose"
    #define MATSCHURCOMPLEMENT "schurcomplement"
    #define MATPYTHON          "python"
    #define MATHYPRESTRUCT     "hyprestruct"
    #define MATHYPRESSTRUCT    "hypresstruct"
    #define MATSUBMATRIX       "submatrix"
    #define MATLOCALREF        "localref"
    #define MATNEST            "nest"

### See Also

MatSetType(), Mat, MatSolverPackage, MatRegister()

Level:beginner
Location:src/mat/../../include/petscmat.h
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/mat/examples/tutorials/ex8.c.html
src/snes/examples/tutorials/ex22.c.html