Question: Is it a good practice to declare an empty matrix before computation of its elements?

Hello everyone,

 

In my code I know what size of matrices I can expect and so i declare a matrix before compmputing it's elements in two loops. Is that a good practice?

 

Thanks,

Samy

Please Wait...