Commit 384c8def authored by Mark Fishcler's avatar Mark Fishcler
Browse files

Eliminate VC++ warnings about use of loop variables.

parent f958d737
......@@ -15,10 +15,12 @@
int test_inversion (int N) {
int i;
int j;
HepMatrix M(N,N,0);
HepSymMatrix S(N,0);
for(int i=1;i<=N;++i) {
for(int j=1;j<=N;++j) {
for(i=1;i<=N;++i) {
for(j=1;j<=N;++j) {
if(i<=j) {
S (i,j) = 10*i+j;
M (i,j) = 10*i+j;
......@@ -52,8 +54,6 @@ int test_inversion (int N) {
MS = S;
MSS = SS;
SI = MSS*MS;
int i;
int j;
for(i=1;i<=N;++i) {
for(j=1;j<=N;++j) {
if(i!=j) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment