WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/config.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ Base.eltype(::Type{DerivativeConfig{T,D}}) where {T,D} = eltype(D)
# GradientConfig #
##################

struct GradientConfig{T,V,N,D} <: AbstractConfig{N}
seeds::NTuple{N,Partials{N,V}}
duals::D
mutable struct GradientConfig{T,V,N,D} <: AbstractConfig{N}
const seeds::NTuple{N,Partials{N,V}}
const duals::D
end

"""
Expand Down Expand Up @@ -130,9 +130,9 @@ Base.eltype(::Type{GradientConfig{T,V,N,D}}) where {T,V,N,D} = Dual{T,V,N}
# JacobianConfig #
##################

struct JacobianConfig{T,V,N,D} <: AbstractConfig{N}
seeds::NTuple{N,Partials{N,V}}
duals::D
mutable struct JacobianConfig{T,V,N,D} <: AbstractConfig{N}
const seeds::NTuple{N,Partials{N,V}}
const duals::D
end

"""
Expand Down Expand Up @@ -195,9 +195,9 @@ Base.eltype(::Type{JacobianConfig{T,V,N,D}}) where {T,V,N,D} = Dual{T,V,N}
# HessianConfig #
#################

struct HessianConfig{T,V,N,DG,DJ} <: AbstractConfig{N}
jacobian_config::JacobianConfig{T,V,N,DJ}
gradient_config::GradientConfig{T,Dual{T,V,N},N,DG}
mutable struct HessianConfig{T,V,N,DG,DJ} <: AbstractConfig{N}
const jacobian_config::JacobianConfig{T,V,N,DJ}
const gradient_config::GradientConfig{T,Dual{T,V,N},N,DG}
end

"""
Expand Down
Loading