Hi. I am a college student who is doing research over the summer and one of my tasks is to convert a Wave Propagation Simulation code from MatLab into C. Needless to say, I have only very basic experience with C and I need a lot of help.
First off, I want to know if it is possible to write C code that will take the Kronecker Product of two matrices. I've only come across code that performs normal matrix multiplication thus far. If I can get assistance on that, it would be great.
Also, I'm having trouble with multidimensional arrays, which I obviously need.
I have 6 different cases (A-F), each that creates a different matrix of a different length/size than the others. I want to know how I am supposed to initialize my array before my switch statement so that I can store the values I want in it for each case. For example, in case A, the matrix needs to be a 2x1 matrix, but if case B were chosen, the matrix would need to be a 2x9 matrix.
I was also wondering about passing arrays to functions. I read a little bit about pointers, but I am not completely understanding how they work.
I know this is a lot of information/questions, but I hope someone will be able to assist me.