diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index 43768fae..c261cb88 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.6.7","generation_timestamp":"2024-06-10T19:31:48","documenter_version":"1.4.1"}} \ No newline at end of file +{"documenter":{"julia_version":"1.6.7","generation_timestamp":"2024-06-14T15:19:54","documenter_version":"1.4.1"}} \ No newline at end of file diff --git a/dev/ad/index.html b/dev/ad/index.html index d7587b02..22bbdd5c 100644 --- a/dev/ad/index.html +++ b/dev/ad/index.html @@ -85,14 +85,14 @@ @assert ForwardDiff.partials(f_df, 1) ≈ D * v # the Jacobian of `f(u) = D * u` is `D`
You can of course also use this with nonlinear functions, e.g.,
f(u, D) = u .* (D * (u.^2))
f_df = f(u_v, D)
8-element StructArray(::Vector{Float64}, ::Vector{ForwardDiff.Partials{1, Float64}}) with eltype ForwardDiff.Dual{Nothing, Float64, 1}:
- Dual{Nothing}(0.6650868699388505,1.7220143831332893)
- Dual{Nothing}(12.115982270742396,-22.67684512357635)
- Dual{Nothing}(15.453463033253659,22.590202976422688)
- Dual{Nothing}(-25.70172828056758,2.582974492409163)
- Dual{Nothing}(-0.7991798798007577,-9.865358330502753)
- Dual{Nothing}(0.1793509494139822,-1.4969080395696006)
- Dual{Nothing}(0.008898740388859672,0.08391375449061213)
- Dual{Nothing}(-1.0526189910737827,-0.6620714057873776)
The Jacobian of this function is
using LinearAlgebra
+ Dual{Nothing}(-1.0803574671683276,5.352332694973359)
+ Dual{Nothing}(0.9834603055010078,-0.52978595264932)
+ Dual{Nothing}(-0.9147808707906251,1.658525901851851)
+ Dual{Nothing}(0.3968332383135114,-11.836379590271717)
+ Dual{Nothing}(-2.3521922204436465,25.76026066601995)
+ Dual{Nothing}(-5.931592247894148,21.39488977054527)
+ Dual{Nothing}(1.0805319966370046,12.93213364958514)
+ Dual{Nothing}(0.9483238461186805,-0.008488662503189026)
The Jacobian of this function is
using LinearAlgebra
J = Diagonal(D * u.^2) + 2 .* u .* Matrix(D) * Diagonal(u)
@@ -116,4 +116,4 @@
Status `~/work/SummationByPartsOperators.jl/SummationByPartsOperators.jl/docs/Manifest.toml`
[f6369f11] ForwardDiff v0.10.36
[09ab397b] StructArrays v0.6.18
- [9f78cca6] SummationByPartsOperators v0.5.61 `~/work/SummationByPartsOperators.jl/SummationByPartsOperators.jl`
Settings
This document was generated with Documenter.jl version 1.4.1 on Monday 10 June 2024. Using Julia version 1.6.7.