tao-2.1-p0 2012-07-24

MatCreateSubMatrixFree

Creates a reduced matrix by masking a full matrix.

Synopsis

#include "tao_util.h" 
#include "submatfree.h" 
PetscErrorCode MatCreateSubMatrixFree(Mat mat,IS Rows, IS Cols, Mat *J)
Collective on matrix

Input Parameters

mat - matrix of arbitrary type
Rows - the rows that will be in the submatrix
Cols - the columns that will be in the submatrix

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/matrix/submatfree.c
TAO Solver Index
Table of Contents