next up previous contents
Next: C3tensor() and free_C3tensor() Up: Infrastructure Previous: Working with user defined

``pvector'' class

In expressions like ``phi=I(Linv((-4*pi)*O(J(rho))));'' we think of phi and rho as vectors of the values of the potential tex2html_wrap_inline556 and charge density tex2html_wrap_inline558 at a set of sample points tex2html_wrap_inline560 . For our Fourier representation the data in these ``vectors'' are actually stored on a three-dimensional mesh of points. We shall call the class which represents these physics vectors the ``pvector'' class.

Appendix F contains most of the specification of the pvector class, along with a main program to test it. This section will teach you the basics of making such a class by having you complete its specification.





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