Replies: 4 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
|
@PierreMartinon @ocots @joseph-gergaud check this on sparse AD (thanks @amontoison) |
Beta Was this translation helpful? Give feedback.
-
|
@PierreMartinon @jbcaillau, using SparseMatrixColorings
## Coloring for Jacobians
S = ... # SparseMatrixCSC
problem = ColoringProblem(; structure=:nonsymmetric, partition=:column)
order = NaturalOrder()
algo = GreedyColoringAlgorithm(order; decompression=:direct)
result = coloring(S, problem, algo)
num_colors = ncolors(result)
## Coloring for Hessians
S = ... # SparseMatrixCSC
problem = ColoringProblem(; structure=:symmetric, partition=:column)
order = NaturalOrder()
algo = GreedyColoringAlgorithm(order; decompression=:substitution, postprocessing=true)
result = coloring(S, problem, algo)
num_colors = ncolors(result)
## Available ordering
order = NaturalOrder()
order = LargestFirst()
order = SmallestLast() # <-- very good in practice
order = IncidenceDegree()
order = DynamicLargestFirst()
order = RandomOrder() # <-- not recommended |
Beta Was this translation helpful? Give feedback.
-
|
@amontoison Thanks! Just a message: we are organizing the next JuliaCon Local, in Paris at the beginning of October. The call of proposals is opened until May 15th. Do not hesitate to spread the word. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
AD tuto
Beta Was this translation helpful? Give feedback.
All reactions