Git Product home page Git Product logo

Comments (6)

jagot avatar jagot commented on June 18, 2024

πŸ‘, but how does that scale to multiple dimensions? I.e. how do you distinguish between partial derivatives, along e.g.x only, and the gradient operator?

from continuumarrays.jl.

dlfivefifty avatar dlfivefifty commented on June 18, 2024

Good question. I suppose we could have:

D = Derivative()
D2 = D^2 # stored lazily as `applied(^,D,2)`
Dx = D βŠ— I # stored lazily as `applied(βŠ—,D, I)`
Dy = I βŠ— D  # stored lazily as `applied(βŠ—,I,D)`
βˆ‡ = [Dx; Dy] # stored lazily as `applied(vcat,Dx,Dy)`

Alternatively, we could try to do things "properly" with differential forms...

from continuumarrays.jl.

jagot avatar jagot commented on June 18, 2024

I guess the βŠ— approach works for curvilinear coordinates (polar/spherical coordinates, etc), but if we ever want to do differential geometry, i.e. with a spatially varying metric, we need differential forms (?)

from continuumarrays.jl.

dlfivefifty avatar dlfivefifty commented on June 18, 2024

It's interesting to think what differentiable forms would look like in quasi-array language: I'm not aware of finite-dimensional analogues of differential forms. Though we'll still need gradients and partial derivatives anyways so maybe best not to overthink it: just have Gradient and Laplacian types?

from continuumarrays.jl.

jagot avatar jagot commented on June 18, 2024

Yes, I agree that Gradient and Laplacian will be enough for multiple dimensions, for now. I guess that PartialDerivative will still need to be attached to an axis though?

from continuumarrays.jl.

dlfivefifty avatar dlfivefifty commented on June 18, 2024

Yes, since partial derivatives are inherently coordinate dependent they probably don’t need their own type, and the construction above is fine

from continuumarrays.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.