MatCreateSubMatrixFree

Creates a reduced matrix by masking a full matrix.

Synopsis

#include "mat.h"  
int MatCreateSubMatrixFree(Mat mat,IS RowMask, IS ColMask, Mat *J)
Collective on matrix

Input Parameters

mat - matrix of arbitrary type
RowMask - the rows that will be zero
ColMask - the columns that will be zero

Output Parameters

J -New matrix

Notes

The user provides the input data and is responsible for destroying this data after matrix J has been destroyed.

See Also

MatCreate()

Level:developer
Location:src/petsctao/matrix/submatfree.c
TAO Solver Index
Table of Contents