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_inline570 , where V is the volume of the cell and tex2html_wrap_inline574 is the identity matrix, and that Linv divides all components by tex2html_wrap_inline576 , except for tex2html_wrap_inline578 , 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
Sun Apr 15 19:43:40 EDT 2001