next up previous contents
Next: Physics Up: ``pvector'' class Previous: J()

O() and Linv()

friend pvector O(const pvector& in1)
friend pvector Linv(const pvector& in1)

Return value:

Input:

Uncomment the function L() in pvector.C and use it as a guide to construct functions of the above prototypes, recalling that tex2html_wrap_inline511 , where V is the volume of the cell and tex2html_wrap_inline515 is the identity matrix, and that Linv divides all components by tex2html_wrap_inline517 , except for tex2html_wrap_inline519 , which it multiplies by zero. Note that the code provided for L() already takes proper account of aliasing, as discussed in lecture. To debug, uncomment the tests for O and L, and run the program.



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