next up previous contents
Next: sum() Up: C3tensor() and free_C3tensor() Previous: C3tensor() and free_C3tensor()

Debugging

Place your C3tensor routines at the indicated location in the program ``pvector.C'' from Appendix C. You now should be able to compile and run the program for various box dimensions. At this stage, the main program allocates space for 3 pvectors (v1, v2, v3), fills them in with random numbers, computes the magnitude of each ( tex2html_wrap_inline503 v^v), and finally tests the mathematical identity that tex2html_wrap_inline505 .



Tomas Arias
Mon Apr 8 17:11:28 EDT 2002