PETSc version 3.15.5
Fix/Edit manual page

# 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 MATKAIJ            "kaij"
    #define MATSEQKAIJ         "seqkaij"
    #define MATMPIKAIJ         "mpikaij"
    #define MATIS              "is"
    #define MATAIJ             "aij"
    #define MATSEQAIJ          "seqaij"
    #define MATMPIAIJ          "mpiaij"
    #define MATAIJCRL          "aijcrl"
    #define MATSEQAIJCRL       "seqaijcrl"
    #define MATMPIAIJCRL       "mpiaijcrl"
    #define MATAIJCUSPARSE     "aijcusparse"
    #define MATSEQAIJCUSPARSE  "seqaijcusparse"
    #define MATMPIAIJCUSPARSE  "mpiaijcusparse"
    #define MATAIJKOKKOS       "aijkokkos"
    #define MATSEQAIJKOKKOS    "seqaijkokkos"
    #define MATMPIAIJKOKKOS    "mpiaijkokkos"
    #define MATAIJVIENNACL     "aijviennacl"
    #define MATSEQAIJVIENNACL  "seqaijviennacl"
    #define MATMPIAIJVIENNACL  "mpiaijviennacl"
    #define MATAIJPERM         "aijperm"
    #define MATSEQAIJPERM      "seqaijperm"
    #define MATMPIAIJPERM      "mpiaijperm"
    #define MATAIJSELL         "aijsell"
    #define MATSEQAIJSELL      "seqaijsell"
    #define MATMPIAIJSELL      "mpiaijsell"
    #define MATAIJMKL          "aijmkl"
    #define MATSEQAIJMKL       "seqaijmkl"
    #define MATMPIAIJMKL       "mpiaijmkl"
    #define MATBAIJMKL         "baijmkl"
    #define MATSEQBAIJMKL      "seqbaijmkl"
    #define MATMPIBAIJMKL      "mpibaijmkl"
    #define MATSHELL           "shell"
    #define MATDENSE           "dense"
    #define MATDENSECUDA       "densecuda"
    #define MATSEQDENSE        "seqdense"
    #define MATSEQDENSECUDA    "seqdensecuda"
    #define MATMPIDENSE        "mpidense"
    #define MATMPIDENSECUDA    "mpidensecuda"
    #define MATELEMENTAL       "elemental"
    #define MATSCALAPACK       "scalapack"
    #define MATBAIJ            "baij"
    #define MATSEQBAIJ         "seqbaij"
    #define MATMPIBAIJ         "mpibaij"
    #define MATMPIADJ          "mpiadj"
    #define MATSBAIJ           "sbaij"
    #define MATSEQSBAIJ        "seqsbaij"
    #define MATMPISBAIJ        "mpisbaij"
    #define MATMFFD            "mffd"
    #define MATNORMAL          "normal"
    #define MATNORMALHERMITIAN "normalh"
    #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 MATHYPRE           "hypre"
    #define MATHYPRESTRUCT     "hyprestruct"
    #define MATHYPRESSTRUCT    "hypresstruct"
    #define MATSUBMATRIX       "submatrix"
    #define MATLOCALREF        "localref"
    #define MATNEST            "nest"
    #define MATPREALLOCATOR    "preallocator"
    #define MATSELL            "sell"
    #define MATSEQSELL         "seqsell"
    #define MATMPISELL         "mpisell"
    #define MATDUMMY           "dummy"
    #define MATLMVM            "lmvm"
    #define MATLMVMDFP         "lmvmdfp"
    #define MATLMVMBFGS        "lmvmbfgs"
    #define MATLMVMSR1         "lmvmsr1"
    #define MATLMVMBROYDEN     "lmvmbroyden"
    #define MATLMVMBADBROYDEN  "lmvmbadbroyden"
    #define MATLMVMSYMBROYDEN  "lmvmsymbroyden"
    #define MATLMVMSYMBADBROYDEN "lmvmsymbadbroyden"
    #define MATLMVMDIAGBROYDEN   "lmvmdiagbroyden"
    #define MATCONSTANTDIAGONAL  "constantdiagonal"
    #define MATHARA              "hara"

### See Also

MatSetType(), Mat, MatSolverType, MatRegister()

### Level

beginner

### Location

src/mat/../../include/petscmat.h

### Examples

src/mat/tutorials/ex8.c.html
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages