Subversion Repositories gelsvn

Rev

Rev 83 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83 Rev 96
Line 14... Line 14...
14
{
14
{
15
		// Matrix row and column dimensions
15
		// Matrix row and column dimensions
16
		int N=4,M=4;
16
		int N=4,M=4;
17
 
17
 
18
		// Fill the matrix with random values.
18
		// Fill the matrix with random values.
19
		srand(time(0));
19
		srand(0);
20
		CMatrix mat(N,M,0);
20
		CMatrix mat(N,M,0);
21
		for(int i=0;i<N;++i)
21
		for(int i=0;i<N;++i)
22
				for(int j=0;j<M;++j)
22
				for(int j=0;j<M;++j)
23
						mat.set(i,j,rand()/double(RAND_MAX)-0.5);
23
						mat.set(i,j,rand()/double(RAND_MAX)-0.5);
24
 
24