MatSeqAIJSetValuesLocalFast#
An optimized version of MatSetValuesLocal() for MATSEQAIJ matrices, valid under several restrictive assumptions.
Synopsis#
#include "petscmat.h"
PetscErrorCode MatSeqAIJSetValuesLocalFast(Mat A, PetscInt m, const PetscInt im[], PetscInt n, const PetscInt in[], const PetscScalar v[], InsertMode is)
Not Collective
Input Parameters#
A - the
MATSEQAIJmatrixm - the number of rows being set (must be 1)
im - array of length
mgiving the local row indexn - the number of columns being set
in - array of length
ngiving the local column indicesv - array of length
nof values to addis - the insert mode (must be
ADD_VALUES)
Notes#
This routine requires that a single row of values is set with each call, that no row or column index is negative or larger than the number of rows or columns, that values are always added (not inserted), and that no new nonzero locations are introduced.
The global column indices are not assumed to be sorted.
See Also#
Level#
developer
Location#
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages