Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 0.39 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. return a std::array
  2. // Function f declaration
  3. std::array<double, 4> f(double t, const std::array<double, 4> & x);
  4.  
  5. // Some code snippet that uses f
  6. std::array<double, 4> x = {0.0, 1.0, 2.0, 3.0};
  7. double t = 0.0;
  8. std::array<double, 4> dxdt = f(t, x);
  9.        
  10. std::array<double, 4> f(double t, const std::array<double, 4> & x);
  11.        
  12. std::array<double, 4>& f(double t, const std::array<double, 4> & x);