Question

Given an (i,j) element in a matrix what is the symmetrical correspondent in the matrix. I am trying to create a function that generates a symmetrical matrix in c. Thanks a lot.

Also would it be wise to create a matrix "by hand" using the rand() functionality or read from file, if I am dealing with large matrixes?

Was it helpful?

Solution

Given an (i,j) element in a matrix what is the symmetrical correspondent in the matrix

In a symmetric matrix A, A(i, j) == A(j, i).

Also would it be wise to create a matrix "by hand" using the rand() functionality or read from file, if I am dealing with large matrixes?

This is impossible to answer without some context. However, if you want a random matrix and don't need to preserve it across runs, there's no reason to save it in a file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top