• What is your GameDev Story?

Archived

This topic is now archived and is closed to further replies.

Matrix multiplication

This topic is 5436 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Hullo, I have calculated the inverse of a matrix using nag fortran routines. I have also asked the user to input a 2x1 matrix. What i''m having trouble with is to multiply these 2 matrices. The inverse matrix is a 2x2 matrix but it could be any dimensional. The code of what i''ve done so far is: /*LU Factorisation */ f07adf_(&n, &n, (double *)jac,&lda, ipiv, &info); /*calculating inverse*/ f07ajf_(&n,(double *)jac,&lda, ipiv, work,&lwork, &info); /*Printing out the Inverse matrix*/ printf("Inverse Matrix: \n"); for(i=0;i[j]); } printf("\n"); } /*Input the Functional Equations evaluated at X0,y0*/ printf("Please enter the values of the Functional Equations evaluated at X0, Y0.\n"); printf("These were calculated in the beginning of this system.\n"); for(i=0;i

Share on other sites
Use the [ source] tags to prevent your code from being jubalyed.
quote:
Original post by ripz
So what I am having difficulty with is to multiply the jac[j] matrix with f[i].
Do you have tentative code to do that? If you know how to do matrix multiplication on paper, the code shouldn''t be very hard to build.

• What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 15
• 10
• 9
• 35
• 16
• Forum Statistics

• Total Topics
634125
• Total Posts
3015678
×