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 F. 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_inline562 v^v), and finally tests the mathematical identity that tex2html_wrap_inline564 .



Tomas Arias
Sun Apr 15 19:43:40 EDT 2001