(self, state)
return state_derivative
Compute the state time-derivative.

        Parameters
        ----------
        state: ndarray or Tensor
            States.

        Returns
        -------
        state_derivative: Tensor
            The state derivative according to the dynamics.
Compute the state time-derivative.
Compute the state time - derivative .
def ode(self, state):
        """Compute the state time-derivative.

        Parameters
        ----------
        state: ndarray or Tensor
            States.

        Returns
        -------
        state_derivative: Tensor
            The state derivative according to the dynamics.

        """
        x, y = tf.split(state, 2, axis=1)
        x_dot = - y
        y_dot = x + self.damping * (x ** 2 - 1) * y
        state_derivative = tf.concat((x_dot, y_dot), axis=1)
        return state_derivative
def ode ( self , state ) : x , y = tf . split ( state , 2 , axis = 1 ) x_dot = - y y_dot = x + self . damping * ( x ** 2 - 1 ) * y state_derivative = tf . concat ( ( x_dot , y_dot ) , axis = 1 ) return state_derivative