MatCreateSeqDense#
Creates a MATSEQDENSE that is stored in column major order (the usual Fortran format).
Synopsis#
#include "petscmat.h"
PetscErrorCode MatCreateSeqDense(MPI_Comm comm, PetscInt m, PetscInt n, PetscScalar data[], Mat *A)
Collective
Input Parameters#
comm - MPI communicator, set to
PETSC_COMM_SELFm - number of rows
n - number of columns
data - optional location of matrix data in column major order. Use
NULLfor PETSc to control all matrix memory allocation.
Output Parameter#
A - the matrix
Note#
The data input variable is intended primarily for Fortran programmers
who wish to allocate their own matrix memory space. Most users should
set data = NULL.
Developer Note#
Many of the matrix operations for this variant use the BLAS and LAPACK routines.
See Also#
Matrices, Mat, MATSEQDENSE, MatCreate(), MatCreateDense(), MatSetValues()
Level#
intermediate
Location#
Examples#
src/mat/tests/ex129.c
src/mat/tests/ex164.c
src/mat/tests/ex186.c
src/mat/tests/ex202.c
src/mat/tests/ex212f.F90
src/mat/tests/ex257.c
src/mat/tests/ex36f.F90
src/mat/tests/ex43.c
src/mat/tests/ex48.c
src/mat/tests/ex63f.F90
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages