// Host multiplication function
// Compute C = A * B
// hA is the height of A
// wA is the width of A
// wB is the width of B
void Mul(const float* A, const float* B, int hA, int wA, int wB, float* C)
float Matrix1[N][N]; // N is defined as a constant integer value
Mul(Matrix1); // call of subroutine Mul with Matrix1...
// in c the Arrays are always call by reference therefore Matrix1 should be a Pointer to the Array, isn't it?
// I also tried &Matrix1 -> did not work either!
The constant pointer A contains the starting address of allocated memory which holds the matrix.
You must Log In to send a PM.
Please Log In | Register to add a comment.
Not a member? Register Now