Joseph Redmon
2013-12-06 4bdf96bd6aafbec6bc3f0eab8739d6652878fd24
src/matrix.c
@@ -13,6 +13,17 @@
    free(m.vals);
}
void matrix_add_matrix(matrix from, matrix to)
{
    assert(from.rows == to.rows && from.cols == to.cols);
    int i,j;
    for(i = 0; i < from.rows; ++i){
        for(j = 0; j < from.cols; ++j){
            to.vals[i][j] += from.vals[i][j];
        }
    }
}
matrix make_matrix(int rows, int cols)
{
    matrix m;