06-24-2014 03:22 PM
Do you want a matrix multiplication or an element-by-element multiplication? Big difference.
If you want element-by-element, don't use the special matrix datatype. Use plain 2D arrays.
Your FOR loop can be removed without any change in functionality.
06-24-2014 03:26 PM
Got it. Thanks.
06-24-2014 03:33 PM - edited 06-24-2014 03:34 PM
Also the code in you case structure could be replaced with this equivalent. (Assuming your code is correct)
(To make the matrix diagram constant a plain 2D array, simply right-click..disconnect typedef.)