MatLoadRegister

Allows one to register a routine that reads matrices from a binary file for a particular matrix type.

Synopsis

#include "petscmat.h"  
int MatLoadRegister(char *sname,char *path,char *name,int (*function)(PetscViewer,MatType,Mat*))
Not Collective

Input Parameters

type - the type of matrix (defined in include/petscmat.h), for example, MATSEQAIJ.
loader - the function that reads the matrix from the binary file.

See Also

MatLoadRegisterAll(), MatLoad()

Level:developer
Location:
src/mat/utils/matio.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages