Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ArrayDifferentialOperators for Vector calculus #942

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
10 changes: 5 additions & 5 deletions src/diff.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
abstract type AbstractOperator <: Function end
abstract type Operator <: AbstractOperator end
abstract type Operator <: Function end

"""
$(TYPEDEF)
Expand Down Expand Up @@ -791,12 +790,13 @@ end
#######################################################################################################################
# Vector Calculus
#######################################################################################################################
abstract type ArrayOperator end

struct ArrayDifferentialOperator <: ArrayOperator
"""The variables to differentiate with resp≈ect to."""
xtalax marked this conversation as resolved.
Show resolved Hide resolved
struct ArrayDifferentialOperator
"""The variables to differentiate with respect to."""
vars
"""The differentials, can be other fucntions if composite"""
differentials
"""name"""
name
ArrayDifferentialOperator(vars, differentials, name) = new(vars, differentials, name)
end
Expand Down
Loading