In my c++ mpi project i created function:
RandomDataInitialization(pMatrix, pVector, Size);
and I am trying to form the values for matrix A and vector b in function RandomDataInitialization. So i want to ask maybe someone knows the easiest and most effective way to do this ?
In general.
The way c++ standard random functions work is as follows:
For example, to randomise an array or vector (a likely storage mechanism for your matrix):