MatAssemblyEnd

Completes assembling the matrix. This routine should be called after MatAssemblyBegin().

Synopsis

int MatAssemblyEnd(Mat mat,MatAssemblyType type)
Collective on Mat

Input Parameters

mat - the matrix
type - type of assembly, either MAT_FLUSH_ASSEMBLY or MAT_FINAL_ASSEMBLY

Options Database Keys

-mat_view_info - Prints info on matrix at conclusion of MatEndAssembly()
-mat_view_info_detailed - Prints more detailed info
-mat_view - Prints matrix in ASCII format
-mat_view_matlab - Prints matrix in Matlab format
-mat_view_draw - Draws nonzero structure of matrix, using MatView() and DrawOpenX().
-display <name> - Sets display name (default is host)
-draw_pause <sec> - Sets number of seconds to pause after display

Notes

MatSetValues() generally caches the values. The matrix is ready touse only after MatAssemblyBegin() and MatAssemblyEnd() have been called. Use MAT_FLUSH_ASSEMBLY when switching between ADD_VALUES and INSERT_VALUESin MatSetValues(); use MAT_FINAL_ASSEMBLY for the final assembly beforeusing the matrix.

Keywords

matrix, assembly, assemble, end

See Also

MatAssemblyBegin(), MatSetValues(), DrawOpenX(), MatView()

Location: src/mat/interface/matrix.c
Matrix Index
Table of Contents