CyRK¶
Subpackages¶
- CyRK.array
- CyRK.cy
- Submodules
- CyRK.cy.common module
CyrkErrorCodesCyrkErrorCodes.ARGUMENT_ERRORCyrkErrorCodes.ARGUMENT_NOT_SETCyrkErrorCodes.ATTRIBUTE_ERRORCyrkErrorCodes.BAD_CONFIG_DATACyrkErrorCodes.BAD_INITIAL_STEP_SIZECyrkErrorCodes.BOUNDS_ERRORCyrkErrorCodes.CONVERGEDCyrkErrorCodes.CYSOLVER_INITIALIZATION_ERRORCyrkErrorCodes.DENSE_BUILD_FAILEDCyrkErrorCodes.DENSE_OUTPUT_NOT_SAVEDCyrkErrorCodes.ERROR_IMPORTING_PYTHON_MODULECyrkErrorCodes.EVENT_SETUP_FAILEDCyrkErrorCodes.EVENT_TERMINATEDCyrkErrorCodes.GENERAL_ERRORCyrkErrorCodes.INCOMPATIBLE_INPUTCyrkErrorCodes.INITIALIZINGCyrkErrorCodes.INTEGRATION_NOT_SUCCESSFULCyrkErrorCodes.MAX_ITERATIONS_HITCyrkErrorCodes.MAX_STEPS_SYSARCH_EXCEEDEDCyrkErrorCodes.MAX_STEPS_USER_EXCEEDEDCyrkErrorCodes.MEMORY_ALLOCATION_ERRORCyrkErrorCodes.NO_ERRORCyrkErrorCodes.NUMBER_OF_EQUATIONS_IS_ZEROCyrkErrorCodes.OPTIMIZE_CONVERGENCE_ERRORCyrkErrorCodes.OPTIMIZE_SIGN_ERRORCyrkErrorCodes.OTHER_ERRORCyrkErrorCodes.PROPERTY_NOT_SETCyrkErrorCodes.SETUP_NOT_CALLEDCyrkErrorCodes.STEP_SIZE_ERROR_ACCEPTANCECyrkErrorCodes.STEP_SIZE_ERROR_SPACINGCyrkErrorCodes.SUCCESSFUL_INTEGRATIONCyrkErrorCodes.UNINITIALIZED_CLASSCyrkErrorCodes.UNSET_ERROR_CODECyrkErrorCodes.UNSUPPORTED_UNKNOWN_MODELCyrkErrorCodes.VECTOR_SIZE_EXCEEDS_LIMITS
- CyRK.cy.cysolver_api module
ODEMethodWrapCySolverResultWrapCySolverResult.call()WrapCySolverResult.call_vectorize()WrapCySolverResult.error_codeWrapCySolverResult.event_terminate_indexWrapCySolverResult.event_terminatedWrapCySolverResult.finalize()WrapCySolverResult.integration_methodWrapCySolverResult.messageWrapCySolverResult.methodWrapCySolverResult.num_dyWrapCySolverResult.num_eventsWrapCySolverResult.num_yWrapCySolverResult.print_diagnostics()WrapCySolverResult.sizeWrapCySolverResult.solve()WrapCySolverResult.statusWrapCySolverResult.status_messageWrapCySolverResult.steps_takenWrapCySolverResult.successWrapCySolverResult.tWrapCySolverResult.t_eventsWrapCySolverResult.yWrapCySolverResult.y_events
- CyRK.cy.cysolver_test module
- CyRK.cy.events module
- CyRK.cy.events_test module
- CyRK.cy.helpers module
- CyRK.cy.prange_test module
- CyRK.cy.pyhelpers module
- CyRK.cy.pysolver module
- CyRK.cy.pysolver_cyhook module
- CyRK.nb
- Submodules
- CyRK.nb.dop_coefficients module
- CyRK.nb.nb_storage module
- CyRK.nb.nbrk module
- CyRK.nb.numba_c_api module
get_args_ptr_func_ptr()get_args_size_func_ptr()get_call_call_func_ptr()get_call_call_vectorize_func_ptr()get_capture_dense_func_ptr()get_capture_extra_func_ptr()get_direction_func_ptr()get_dy_now_ptr_func_ptr()get_free_func_ptr()get_message_buffer_func_ptr()get_method_func_ptr()get_num_dy_func_ptr()get_num_interpolates_func_ptr()get_num_y_func_ptr()get_size_func_ptr()get_solve_func_ptr()get_status_func_ptr()get_status_message_buffer_func_ptr()get_steps_taken_func_ptr()get_success_func_ptr()get_t_func_ptr()get_t_now_func_ptr()get_y_func_ptr()get_y_now_ptr_func_ptr()
- CyRK.nb.numba_solver module
- CyRK.optimize
Submodules¶
CyRK.helper module¶
Helper function to convert conventional solve_ivp or numba diffeq’s into a format that cyrk can accept.
- CyRK.helper.cy2nb(diffeq: callable, use_njit: bool = True, cache_njit: bool = False) callable[source]¶
Convert cyrk differential equation functions to the numba/scipy format.
- Parameters:
diffeq (callable) – Differential equation function.
use_njit (bool = True) – If True, the final function will be njited.
cache_njit (bool = False) – If True, then the njit-complied function will be cached.
- Returns:
diffeq_nbrk – numba/scipy-safe differential equation function.
- Return type:
callable
- CyRK.helper.nb2cy(diffeq: callable, use_njit: bool = True, cache_njit: bool = False) callable[source]¶
Convert numba/scipy differential equation functions to the cyrk format.
- Parameters:
diffeq (callable) – Differential equation function.
use_njit (bool = True) – If True, the final function will be njited.
cache_njit (bool = False) – If True, then the njit-complied function will be cached.
- Returns:
diffeq_cyrk – cyrk-safe differential equation function.
- Return type:
callable