Here and in other places need
```
const std::vector<double>&
```
for all non-trivial types. No need to make a copy