Giter Site home page Giter Site logo

hilbertspacefillingcurve.jl's Introduction

HilbertSpaceFillingCurve

Build Status PkgEval Coverage Status

Bindings for Doug Moore's Fast Hilbert Curve Generation. Windows is not supported.

screenshot

Usage

Convert the linear index d into ndims-dimensional coordinates p :

p = hilbert(d::T, ndims, nbits = 32) where T <: Integer

Convert the ndims-dimensional coordinates p into the linear index d :

d = hilbert(p::Vector{T}, ndims, nbits = 32) where T <: Integer

All coordinates are positive integers (zero included). The number of bits nbits determines the precision of the curve, and the algorithm work under the constrain:

  • ndims * nbits <= 64

License

License from the original code:

/* LICENSE
 *
 * This software is copyrighted by Rice University.  It may be freely copied,
 * modified, and redistributed, provided that the copyright notice is 
 * preserved on all copies.
 * 
 * There is no warranty or other guarantee of fitness for this software,
 * it is provided solely "as is".  Bug reports or fixes may be sent
 * to the author, who may or may not act on them as he desires.
 *
 * You may include this software in a program or other software product,
 * but must display the notice:
 *
 * Hilbert Curve implementation copyright 1998, Rice University
 *
 * in any place where the end-user would see your own copyright.
 * 
 * If you modify this software, you should include a notice giving the
 * name of the person performing the modification, the date of modification,
 * and the reason for such modification.
 */* 

hilbertspacefillingcurve.jl's People

Contributors

jonathanbieler avatar juliatagbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hiendn

hilbertspacefillingcurve.jl's Issues

Libdl not in dependencies

Received this warning this morning from julia-1.4.

[ Info: Precompiling HilbertSpaceFillingCurve [515b7ef8-bac0-55e1-a220-237e90591ccc]
┌ Warning: Package HilbertSpaceFillingCurve does not have Libdl in its dependencies:
│ - If you have HilbertSpaceFillingCurve checked out for development and have
│   added Libdl as a dependency but haven't updated your primary
│   environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with HilbertSpaceFillingCurve
└ Loading Libdl into HilbertSpaceFillingCurve from project dependency, future warnings for HilbertSpaceFillingCurve are suppressed.

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.