Example #1
0
void STPConnection::evolve()
{
	// dynamics of x
	auryn_vector_float_set_all( state_temp, 1);
	auryn_vector_float_saxpy(-1,state_x,state_temp);
	auryn_vector_float_saxpy(dt/tau_d,state_temp,state_x);

	// dynamics of u
	auryn_vector_float_set_all( state_temp, Ujump);
	auryn_vector_float_saxpy(-1,state_u,state_temp);
	auryn_vector_float_saxpy(dt/tau_f,state_temp,state_u);

	// double x = auryn_vector_float_get( state_x, 0 );
	// double u = auryn_vector_float_get( state_u, 0 );
	// cout << setprecision(5) << x << " " << u << " " << x*u << endl;
}
Example #2
0
void auryn_vector_float_set_zero ( auryn_vector_float * v ) {
	auryn_vector_float_set_all(v, 0.0);
}