Skip to content

add high level interface #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2019
Merged

add high level interface #21

merged 1 commit into from
Jun 21, 2019

Conversation

ChrisRackauckas
Copy link
Member

Adds a high level interface. See workflow from sparsity pattern:

colors = matrix_colors(sparsity_pattern)
DiffEqDiffTools.finite_difference_jacobian!(_J, f, x, color = colors)

matrix_colors is an interface that calls the underlying coloring algorithms using a dispatch form so we can just keep on adding new ones. In addition, this function can be overloaded so that specializations return an analytical solution to the colors, bypassing the graph algorithm (@huanglangwen this is what we will use to add dispatches).

@ChrisRackauckas ChrisRackauckas merged commit f1ed128 into master Jun 21, 2019
@ChrisRackauckas ChrisRackauckas deleted the high_level branch June 21, 2019 13:38
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.

1 participant