We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2875284 commit d577f19Copy full SHA for d577f19
1 file changed
examples/chaotic_system.cpp
@@ -61,8 +61,8 @@ void lorenz_with_lyap( const state_type &x , state_type &dxdt , double t )
61
62
for( size_t l=0 ; l<num_of_lyap ; ++l )
63
{
64
- const double *pert = x.begin() + 3 + l * 3;
65
- double *dpert = dxdt.begin() + 3 + l * 3;
+ const double *pert = x.data() + 3 + l * 3;
+ double *dpert = dxdt.data() + 3 + l * 3;
66
dpert[0] = - sigma * pert[0] + 10.0 * pert[1];
67
dpert[1] = ( R - x[2] ) * pert[0] - pert[1] - x[0] * pert[2];
68
dpert[2] = x[1] * pert[0] + x[0] * pert[1] - b * pert[2];
0 commit comments