petsc-3.7.7 2017-09-25
Report Typos and Errors


Set the column indices for all the rows in the matrix.


#include "petscmat.h" 
PetscErrorCode  MatSeqAIJSetColumnIndices(Mat mat,PetscInt *indices)

Input Parameters

mat - the SeqAIJ matrix
indices - the column indices


This can be called if you have precomputed the nonzero structure of the matrix and want to provide it to the matrix object to improve the performance of the MatSetValues() operation.

You MUST have set the correct numbers of nonzeros per row in the call to MatCreateSeqAIJ(), and the columns indices MUST be sorted.

MUST be called before any calls to MatSetValues();

The indices should start with zero, not one.

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