Quote Originally Posted by Lina_inverse
by using a struct, how do i store the inputs into the array?
I think it would be easier to convert your print_matrix function as an example:
Code:
void print_matrix(const matrix_type *matrix) {
    /* Print the matrix in row major order */
    int i;
    for (i = 0; i < matrix->rows; i++) {
        int j;
        for (j = 0; j < matrix->cols; j++) {
            printf("%f ", matrix->entries[i][j]);
        }
        printf("\n");
    }
}
Quote Originally Posted by Lina_inverse
how do print out the numbers in the format of : ie. positive .2 is a 2.00e-01
Read up on the format specifiers that can be used with printf.