#include "petscmat.h" PetscErrorCode MatAssemblyEnd(Mat mat,MatAssemblyType type)Collective on Mat
mat | - the matrix | |
type | - type of assembly, either MAT_FLUSH_ASSEMBLY or MAT_FINAL_ASSEMBLY |
-mat_view ::ascii_info | - Prints info on matrix at conclusion of MatEndAssembly() | |
-mat_view ::ascii_info_detail | - Prints more detailed info | |
-mat_view | - Prints matrix in ASCII format | |
-mat_view ::ascii_matlab | - Prints matrix in Matlab format | |
-mat_view draw | - PetscDraws nonzero structure of matrix, using MatView() and PetscDrawOpenX(). | |
-display <name> | - Sets display name (default is host) | |
-draw_pause <sec> | - Sets number of seconds to pause after display | |
-mat_view socket | - Sends matrix to socket, can be accessed from Matlab (See Users-Manual: Chapter 12 Using MATLAB with PETSc ) | |
-viewer_socket_machine <machine> | - Machine to use for socket | |
-viewer_socket_port <port> | - Port number to use for socket | |
-mat_view binary:filename[:append] | - Save matrix to file in binary format |
Space for preallocated nonzeros that is not filled by a call to MatSetValues() or a related routine are compressed out by assembly. If you intend to use that extra space on a subsequent assembly, be sure to insert explicit zeros before MAT_FINAL_ASSEMBLY so the space is not compressed out.