MatSetValuesRow#

Inserts a row of nonzero values into a matrix

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatSetValuesRow(Mat mat, PetscInt row, const PetscScalar v[])

Not Collective

Input Parameters#

  • mat - the matrix

  • row - the row to set

  • v - a one dimensional array of values

Notes#

Currently only supported for MATAIJ.

All the nonzeros in row must be provided

The matrix must have previously had its column indices set, likely by having been assembled.

row must belong to this process

See Also#

Matrices, Mat, MatSetValues(), MatSetOption(), MatAssemblyBegin(), MatAssemblyEnd(), MatSetValuesBlocked(), MatSetValuesLocal(), InsertMode, INSERT_VALUES, ADD_VALUES, MATAIJ

Level#

advanced

Location#

src/mat/interface/matrix.c

Implementations#

MatSetValuesRow_MPIAIJ() in src/mat/impls/aij/mpi/mpiaij.c
MatSetValuesRow_SeqAIJ() in src/mat/impls/aij/seq/aij.c


Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages