From 023a8eaae9ad5eb5b2e73cc3fed4784a4e5f9f94 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Mon, 22 Apr 2024 09:37:39 +0200 Subject: [PATCH] Reorganize files (#202) --- .../src/DifferentiationInterface.jl | 40 +++++++++---------- .../src/{ => first_order}/derivative.jl | 0 .../src/{ => first_order}/gradient.jl | 0 .../src/{ => first_order}/jacobian.jl | 0 .../src/{ => first_order}/pullback.jl | 0 .../src/{ => first_order}/pushforward.jl | 0 .../src/{ => second_order}/hessian.jl | 0 .../src/{ => second_order}/hvp.jl | 0 .../{ => second_order}/second_derivative.jl | 0 .../src/{ => second_order}/second_order.jl | 0 .../src/{ => sparse}/coloring.jl | 0 .../src/{ => sparse}/sparse.jl | 0 .../src/{utils.jl => utils/basis.jl} | 0 .../src/{ => utils}/check.jl | 0 .../src/{ => utils}/chunk.jl | 0 .../src/{ => utils}/printing.jl | 0 .../src/{ => utils}/traits.jl | 0 17 files changed, 20 insertions(+), 20 deletions(-) rename DifferentiationInterface/src/{ => first_order}/derivative.jl (100%) rename DifferentiationInterface/src/{ => first_order}/gradient.jl (100%) rename DifferentiationInterface/src/{ => first_order}/jacobian.jl (100%) rename DifferentiationInterface/src/{ => first_order}/pullback.jl (100%) rename DifferentiationInterface/src/{ => first_order}/pushforward.jl (100%) rename DifferentiationInterface/src/{ => second_order}/hessian.jl (100%) rename DifferentiationInterface/src/{ => second_order}/hvp.jl (100%) rename DifferentiationInterface/src/{ => second_order}/second_derivative.jl (100%) rename DifferentiationInterface/src/{ => second_order}/second_order.jl (100%) rename DifferentiationInterface/src/{ => sparse}/coloring.jl (100%) rename DifferentiationInterface/src/{ => sparse}/sparse.jl (100%) rename DifferentiationInterface/src/{utils.jl => utils/basis.jl} (100%) rename DifferentiationInterface/src/{ => utils}/check.jl (100%) rename DifferentiationInterface/src/{ => utils}/chunk.jl (100%) rename DifferentiationInterface/src/{ => utils}/printing.jl (100%) rename DifferentiationInterface/src/{ => utils}/traits.jl (100%) diff --git a/DifferentiationInterface/src/DifferentiationInterface.jl b/DifferentiationInterface/src/DifferentiationInterface.jl index 86948737f..5f88f4058 100644 --- a/DifferentiationInterface/src/DifferentiationInterface.jl +++ b/DifferentiationInterface/src/DifferentiationInterface.jl @@ -34,26 +34,26 @@ using LinearAlgebra: Symmetric, dot abstract type Extras end -include("second_order.jl") -include("traits.jl") -include("utils.jl") -include("printing.jl") - -include("pushforward.jl") -include("pullback.jl") - -include("derivative.jl") -include("gradient.jl") -include("jacobian.jl") - -include("second_derivative.jl") -include("hvp.jl") -include("hessian.jl") - -include("check.jl") -include("coloring.jl") -include("sparse.jl") -include("chunk.jl") +include("second_order/second_order.jl") + +include("utils/traits.jl") +include("utils/basis.jl") +include("utils/printing.jl") +include("utils/chunk.jl") +include("utils/check.jl") + +include("first_order/pushforward.jl") +include("first_order/pullback.jl") +include("first_order/derivative.jl") +include("first_order/gradient.jl") +include("first_order/jacobian.jl") + +include("second_order/second_derivative.jl") +include("second_order/hvp.jl") +include("second_order/hessian.jl") + +include("sparse/coloring.jl") +include("sparse/sparse.jl") export SecondOrder diff --git a/DifferentiationInterface/src/derivative.jl b/DifferentiationInterface/src/first_order/derivative.jl similarity index 100% rename from DifferentiationInterface/src/derivative.jl rename to DifferentiationInterface/src/first_order/derivative.jl diff --git a/DifferentiationInterface/src/gradient.jl b/DifferentiationInterface/src/first_order/gradient.jl similarity index 100% rename from DifferentiationInterface/src/gradient.jl rename to DifferentiationInterface/src/first_order/gradient.jl diff --git a/DifferentiationInterface/src/jacobian.jl b/DifferentiationInterface/src/first_order/jacobian.jl similarity index 100% rename from DifferentiationInterface/src/jacobian.jl rename to DifferentiationInterface/src/first_order/jacobian.jl diff --git a/DifferentiationInterface/src/pullback.jl b/DifferentiationInterface/src/first_order/pullback.jl similarity index 100% rename from DifferentiationInterface/src/pullback.jl rename to DifferentiationInterface/src/first_order/pullback.jl diff --git a/DifferentiationInterface/src/pushforward.jl b/DifferentiationInterface/src/first_order/pushforward.jl similarity index 100% rename from DifferentiationInterface/src/pushforward.jl rename to DifferentiationInterface/src/first_order/pushforward.jl diff --git a/DifferentiationInterface/src/hessian.jl b/DifferentiationInterface/src/second_order/hessian.jl similarity index 100% rename from DifferentiationInterface/src/hessian.jl rename to DifferentiationInterface/src/second_order/hessian.jl diff --git a/DifferentiationInterface/src/hvp.jl b/DifferentiationInterface/src/second_order/hvp.jl similarity index 100% rename from DifferentiationInterface/src/hvp.jl rename to DifferentiationInterface/src/second_order/hvp.jl diff --git a/DifferentiationInterface/src/second_derivative.jl b/DifferentiationInterface/src/second_order/second_derivative.jl similarity index 100% rename from DifferentiationInterface/src/second_derivative.jl rename to DifferentiationInterface/src/second_order/second_derivative.jl diff --git a/DifferentiationInterface/src/second_order.jl b/DifferentiationInterface/src/second_order/second_order.jl similarity index 100% rename from DifferentiationInterface/src/second_order.jl rename to DifferentiationInterface/src/second_order/second_order.jl diff --git a/DifferentiationInterface/src/coloring.jl b/DifferentiationInterface/src/sparse/coloring.jl similarity index 100% rename from DifferentiationInterface/src/coloring.jl rename to DifferentiationInterface/src/sparse/coloring.jl diff --git a/DifferentiationInterface/src/sparse.jl b/DifferentiationInterface/src/sparse/sparse.jl similarity index 100% rename from DifferentiationInterface/src/sparse.jl rename to DifferentiationInterface/src/sparse/sparse.jl diff --git a/DifferentiationInterface/src/utils.jl b/DifferentiationInterface/src/utils/basis.jl similarity index 100% rename from DifferentiationInterface/src/utils.jl rename to DifferentiationInterface/src/utils/basis.jl diff --git a/DifferentiationInterface/src/check.jl b/DifferentiationInterface/src/utils/check.jl similarity index 100% rename from DifferentiationInterface/src/check.jl rename to DifferentiationInterface/src/utils/check.jl diff --git a/DifferentiationInterface/src/chunk.jl b/DifferentiationInterface/src/utils/chunk.jl similarity index 100% rename from DifferentiationInterface/src/chunk.jl rename to DifferentiationInterface/src/utils/chunk.jl diff --git a/DifferentiationInterface/src/printing.jl b/DifferentiationInterface/src/utils/printing.jl similarity index 100% rename from DifferentiationInterface/src/printing.jl rename to DifferentiationInterface/src/utils/printing.jl diff --git a/DifferentiationInterface/src/traits.jl b/DifferentiationInterface/src/utils/traits.jl similarity index 100% rename from DifferentiationInterface/src/traits.jl rename to DifferentiationInterface/src/utils/traits.jl