Posts by fvx662 • 1 point
3 posts
-
0
votes0
answers188
viewsQ: struct that stores the number of rows and columns of the matrix and of a vector
I used a struct to store the number of rows (m) and columns (n) of the matrix and another to store the number of columns of the vector (n). I make the product of two matrices in function prod() and…
-
0
votes1
answer114
viewsA: matrix product using struct
I think the mistake is here: C.p_data[iA.n+j] = C.p_data[iA.n+j]+(A.p_data[i*A.m+k]B.p_data[kB.n+j]); but I don’t know how to change the indexes to correctly store the calculated value, if someone…
-
0
votes1
answer114
viewsQ: matrix product using struct
I used struct to store number of rows and columns of the matrix. I make the product of two matrices and the product of a matrix with a vector, but the output is always 0. I do not know how to change…