Git Product home page Git Product logo

blochsim.jl's People

Contributors

dependabot[bot] avatar jefffessler avatar juliatagbot avatar stevenwhitaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

blochsim.jl's Issues

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

rotatetheta

The rotatetheta function seems to give different results from the formula on Brian Hargreaves site. I may be too ignorant to know what the difference is, but I can't figure it out.

Iteration of magnetization vector would be convenient

We call it a "magnetization vector" but spin.M currently is not very Vector like.
The following methods help. Perhaps making it a subtype of AbstractVector would help even more...

Base.length(::Magnetization) = 3
Base.ndims(::Magnetization) = 1
Base.getindex(M::Magnetization, i) = i == 1 ? M.x : i == 2 ? M.y : i == 3 ? M.z : throw("bad index $i")
Base.iterate(M::Magnetization, i = 1) = i > 3 ? nothing : (M[i], i + 1)
Base.:*(a::Number, M::Magnetization) = Magnetization(M.x * a, M.y * a, M.z * a)

`SpinMC` duplicating

It is OK that SpinMC expects τ but stores r internally, but this makes it hard to make a copy of one of those and change something other than r.

There could be an inner constructor that takes r directly, and an outer convenience constructor that lets the user use τ.

Or there should be a method that recreates the original τ from spin.r, to use to construct a new SpinMC.

Tuple for Position / Gradient

Julia is especially optimized for tuples (I've read), so I wonder if it would be more efficient for Position and Gradient to be aliases for NTuple{3,T} instead of custom structs. Did you ever try that?

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.