Amoiensis / Matrix_hub

A lib of Matrix operation for C language. (矩阵运算库--C语言)
Apache License 2.0
234 stars 53 forks source link

[help]帮助文档M_full.txt的小小错误 #15

Open sjhsbhqf opened 10 months ago

sjhsbhqf commented 10 months ago
    //  Mat_2   
    MATRIX_TYPE _mat_2[5][3] = { 1,2,3,4,5,6,7,8,7,10,11,12,11,14,15 };     
    row = sizeof(_mat_2) / sizeof(_mat_2[0]);
    column = sizeof(_mat_2[0]) / sizeof(_mat_2[0][0]);
    Matrix*  mat_2 = Matrix_gen(row,column,_mat_2);
    //  Full
    M_print(mat_2);
    Matrix* mat_full = M_full(mat_2,1,1,1,1,0);
    M_print(mat_2);

应该改成

    //  Mat_2   
    MATRIX_TYPE _mat_2[5][3] = { 1,2,3,4,5,6,7,8,7,10,11,12,11,14,15 };     
    row = sizeof(_mat_2) / sizeof(_mat_2[0]);
    column = sizeof(_mat_2[0]) / sizeof(_mat_2[0][0]);
    Matrix*  mat_2 = Matrix_gen(row,column,_mat_2);
    //  Full
    M_print(mat_2);
    Matrix* mat_full = M_full(mat_2,1,1,1,1,0);
    M_print(mat_full );