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_inline509 , where V is the volume of the cell and tex2html_wrap_inline513 is the identity matrix, and that Linv divides all components by tex2html_wrap_inline515 , except for tex2html_wrap_inline517 , 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
Fri Apr 14 12:12:49 EDT 2000