A quick question that bugs me (both from a mathematical perspective and implementation-wise). How do you multiply two one-dimensional arrays?
If we have:
int[] a = {1,2,3};
int[] b = {4,5,6};
And we wanna put the result into a variable c, how do you do the math and the implementation? Should c also be one-dimensional or two-dimensional?
Thank you in advance!
EDIT: To everyone asking what I want. I'm trying to solve a math problem that literally tells me:
a = {1,2,3};
b = {4,5,6};
c = a * b; //what is c?
I found nothing on the internet on how to do it mathematically and I am equally puzzled on how to do it in a programming language.