Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyNumVec
- {
- private:
- const NumericVector& x;
- public:
- MyNumVec(const NumericVector& y) : x(y) {}
- double operator[](int i) const { // here
- return x[i];
- }
- operator NumericVector() const { return x; }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement