Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am supposed to perform a matrix calculation using pointers in c++, the function works fine with square matrices, however in some cases it gives
I am supposed to perform a matrix calculation using pointers in c++, the function works fine with square matrices, however in some cases it gives me wrong result, for example for a multiplication between two matrices with sizes 3*2 and 2*5, what am I doing wrong? this is my function:
float* temp = new float [row1 * col2] ; for (int i = 0; iStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started