MatCreateSeqDense

Creates a sequential dense matrix that is stored in column major order (the usual Fortran 77 manner). Many of the matrix operations use the BLAS and LAPACK routines.

Synopsis

int MatCreateSeqDense(MPI_Comm comm,int m,int n,Scalar *data,Mat *A)
Collective on MPI_Comm

Input Parameters

comm - MPI communicator, set to PETSC_COMM_SELF
m - number of rows
n - number of columns
data - optional location of matrix data. Set data=PETSC_NULL for PETSc to control all matrix memory allocation.

Output Parameter

A -the matrix

Notes

The data input variable is intended primarily for Fortran programmerswho wish to allocate their own matrix memory space. Most users shouldset data=PETSC_NULL.

Keywords

dense, matrix, LAPACK, BLAS

See Also

MatCreate(), MatCreateMPIDense(), MatSetValues()

Location: src/mat/impls/dense/seq/dense.c
Matrix Index
Table of Contents