Skip to content

Conversation

@ChrisRackauckas
Copy link
Member

Summary

This PR exports two useful utility functions that were previously internal:

  • has_constant_lags(prob/integrator): Returns true if the DDE problem contains constant delays
  • has_dependent_lags(prob/integrator): Returns true if the DDE problem contains dependent delays

Motivation

These functions are already well-documented and used internally throughout the codebase. Making them available to users allows them to easily inspect their DDEProblem objects to understand what types of delays they contain, which can be helpful for:

  • Debugging delay configurations
  • Understanding problem structure
  • Making informed algorithm choices
  • Educational purposes

Implementation

The change is minimal - just adding the two function names to the export list in src/DelayDiffEq.jl. The functions themselves are already defined in src/utils.jl with comprehensive docstrings.

Testing

Both functions work correctly with DDEProblem objects:

  • has_constant_lags returns true for problems with constant_lags, false otherwise
  • has_dependent_lags returns true for problems with dependent_lags, false otherwise

Breaking Changes

This is a non-breaking change that only adds new exports. No existing functionality is modified.

🤖 Generated with Claude Code

These utility functions allow users to easily check whether a DDEProblem
contains constant delays, dependent delays, or both. They were previously
internal functions but are useful for users to inspect their problems.

The functions work with both DDEProblem objects and DDEIntegrator objects:
- has_constant_lags(prob/integrator): returns true if problem has constant delays
- has_dependent_lags(prob/integrator): returns true if problem has dependent delays

This is a non-breaking change that adds helpful functionality for users
working with delay differential equations.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@ChrisRackauckas ChrisRackauckas deleted the export-utility-functions branch July 24, 2025 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants