|
double | get (const Vec *x, size_t i) const |
| Returns the ith element of x; i.e., x[i]. More...
|
|
void | set (Vec *x, size_t i, double v) const |
| Sets the ith element of x; i.e., x[i] = v. More...
|
|
void | set (Vec *x, size_t i, size_t j, double v, double w) const |
| Sets the ith element of x; i.e., x[i] = v. More...
|
|
void | set (Vec *x, const Vec &v) const |
| Sets the all elements of x; i.e., x = v. More...
|
|
size_t | size (const Vec *x) const |
| Returns the size of x; i.e., x.size(). More...
|
|
template<class Vec>
class kjb::Vector_adapter< Vec >
Default adapter for the hessian function.
This class makes any model type that behaves as a vector usable with the hessian function. A model must implement operator[] for both const and non const, and the size() member function.
If your model does not behave this way, you must write your own adapter which provides the same functionality.