Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :

Commit 076e85f7 authored by Ludovic Courtès's avatar Ludovic Courtès

Add a 'data' method to 'vec', for compatibility with Eigen.

parent 52d57824
......@@ -51,7 +51,15 @@ class vec : public std::vector<double>
assign(dim, 0.0) ;
//! \brief Return a pointer to the underlying memory region.
const double *data() const
// std::vector<T>::at returns a reference, and since the std::vector
// storage is guaranteed to be contiguous, we can do this.
return &at(0);
//! \brief get a subpart of the vector
vec subvector(int start, int n) const
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment