|
| 1 | +""" |
| 2 | +calculate_tgrad(sys::AbstractSystem) |
| 3 | +
|
| 4 | +Calculate the time gradient of a system. |
| 5 | +
|
| 6 | +Returns a vector of [`Expression`](@ref) instances. The result from the first |
| 7 | +call will be cached in the system object. |
| 8 | +""" |
| 9 | +function calculate_tgrad end |
| 10 | + |
| 11 | +""" |
| 12 | +calculate_grad(sys::AbstractSystem) |
| 13 | +
|
| 14 | +Calculate the gradient of a scalar system. |
| 15 | +
|
| 16 | +Returns a vector of [`Expression`](@ref) instances. The result from the first |
| 17 | +call will be cached in the system object. |
| 18 | +""" |
| 19 | +function calculate_grad end |
| 20 | + |
| 21 | +""" |
| 22 | +calculate_jacobian(sys::AbstractSystem) |
| 23 | +
|
| 24 | +Calculate the jacobian matrix of a system. |
| 25 | +
|
| 26 | +Returns a matrix of [`Expression`](@ref) instances. The result from the first |
| 27 | +call will be cached in the system object. |
| 28 | +""" |
| 29 | +function calculate_jacobian end |
| 30 | + |
| 31 | +""" |
| 32 | +calculate_factorized_W(sys::AbstractSystem) |
| 33 | +
|
| 34 | +Calculate the factorized W-matrix of a system. |
| 35 | +
|
| 36 | +Returns a matrix of [`Expression`](@ref) instances. The result from the first |
| 37 | +call will be cached in the system object. |
| 38 | +""" |
| 39 | +function calculate_factorized_W end |
| 40 | + |
| 41 | +""" |
| 42 | +calculate_hessian(sys::AbstractSystem) |
| 43 | +
|
| 44 | +Calculate the hessian matrix of a scalar system. |
| 45 | +
|
| 46 | +Returns a matrix of [`Expression`](@ref) instances. The result from the first |
| 47 | +call will be cached in the system object. |
| 48 | +""" |
| 49 | +function calculate_hessian end |
| 50 | + |
| 51 | +""" |
| 52 | +generate_tgrad(sys::AbstractSystem, dvs = states(sys), ps = parameters(sys), expression = Val{true}; kwargs...) |
| 53 | +
|
| 54 | +Generates a function for the time gradient of a system. Extra arguments control |
| 55 | +the arguments to the internal [`build_function`](@ref) call. |
| 56 | +""" |
| 57 | +function generate_tgrad end |
| 58 | + |
| 59 | +""" |
| 60 | +generate_grad(sys::AbstractSystem, dvs = states(sys), ps = parameters(sys), expression = Val{true}; kwargs...) |
| 61 | +
|
| 62 | +Generates a function for the gradient of a system. Extra arguments control |
| 63 | +the arguments to the internal [`build_function`](@ref) call. |
| 64 | +""" |
| 65 | +function generate_grad end |
| 66 | + |
| 67 | +""" |
| 68 | +generate_jacobian(sys::AbstractSystem, dvs = states(sys), ps = parameters(sys), expression = Val{true}; sparse = false, kwargs...) |
| 69 | +
|
| 70 | +Generates a function for the jacobian matrix matrix of a system. Extra arguments control |
| 71 | +the arguments to the internal [`build_function`](@ref) call. |
| 72 | +""" |
| 73 | +function generate_jacobian end |
| 74 | + |
| 75 | +""" |
| 76 | +generate_factorized_W(sys::AbstractSystem, dvs = states(sys), ps = parameters(sys), expression = Val{true}; sparse = false, kwargs...) |
| 77 | +
|
| 78 | +Generates a function for the factorized W-matrix matrix of a system. Extra arguments control |
| 79 | +the arguments to the internal [`build_function`](@ref) call. |
| 80 | +""" |
| 81 | +function generate_factorized_W end |
| 82 | + |
| 83 | +""" |
| 84 | +generate_hessian(sys::AbstractSystem, dvs = states(sys), ps = parameters(sys), expression = Val{true}; sparse = false, kwargs...) |
| 85 | +
|
| 86 | +Generates a function for the hessian matrix matrix of a system. Extra arguments control |
| 87 | +the arguments to the internal [`build_function`](@ref) call. |
| 88 | +""" |
| 89 | +function generate_hessian end |
| 90 | + |
| 91 | +""" |
| 92 | +generate_function(sys::AbstractSystem, dvs = states(sys), ps = parameters(sys), expression = Val{true}; kwargs...) |
| 93 | +
|
| 94 | +Generate a function to evaluate the system's equations. |
| 95 | +""" |
| 96 | +function generate_function end |
| 97 | + |
1 | 98 | function Base.getproperty(sys::AbstractSystem, name::Symbol) |
2 | 99 | if name ∈ fieldnames(typeof(sys)) |
3 | 100 | return getfield(sys,name) |
|
0 commit comments