3 /* This file has a few "typical" uses of C++ references. */
11 %rename(cprint) print;
15 Vector(double x, double y, double z);
20 /* This helper function calls an overloaded operator */
22 Vector addv(Vector &a, Vector &b) {
27 /* Wrapper around an array of vectors class */
31 VectorArray(int maxsize);
35 /* This wrapper provides an alternative to the [] operator */
37 Vector &get(int index) {
38 return (*$self)[index];
40 void set(int index, Vector &a) {