2: static char help[] = "Tests MatConvert() from SeqDense to SeqAIJ \n\n"; 4: #include <petscmat.h> 6: int main(int argc,char **args) 7: { 8: Mat A,C; 9: PetscInt n = 10; 11: PetscInitialize(&argc,&args,(char*)0,help); 12: MatCreateSeqDense(PETSC_COMM_WORLD,n,n,NULL,&A); 13: MatConvert(A,MATSEQDENSE,MAT_INITIAL_MATRIX,&C); 14: MatView(C,NULL); 15: MatDestroy(&A); 16: MatDestroy(&C); 17: PetscFinalize(); 18: return 0; 19: } 21: /*TEST 23: test: 25: TEST*/