1 2 #include "sys.h" 3 #include "options.h" 4 #include "sysio.h" 5 #include "mat.h" 6 7 /*@C 8 MatCreateInitialMatrix - Reads from command line to determine 9 what type of matrix to create. 10 11 Input Parameters: 12 . m,n - matrix dimensions 13 14 Output Parameter: 15 . V - location to stash resulting matrix. 16 @*/ 17 int MatCreateInitialMatrix(int m,int n,Mat *V) 18 { 19 if (OptionsHasName(0,0,"-dense")) { 20 fprintf(stdout,"Using BLAS+LAPACK sequential dense matrices\n"); 21 return MatCreateSequentialDense(m,n,V); 22 } 23 fprintf(stdout,"Using standard sequential AIJ matrices\n"); 24 return MatCreateSequentialAIJ(m,n,10,0,V); 25 } 26 27