Coder Social home page Coder Social logo

tadeu / ndarray Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ndarray/ndarray

0.0 0.0 0.0 1.46 MB

NumPy-compatible multidimensional arrays in C++

License: BSD 2-Clause "Simplified" License

CMake 7.84% Python 6.10% C++ 85.19% C 0.36% M4 0.50%

ndarray's Introduction

ndarray: NumPy-friendly multidimensional arrays in C++

Build Status

ndarray is a template library that provides multidimensional array objects in C++, with an interface and features designed to mimic the Python 'numpy' package as much as possible.

More information can be found in the documentation at ndarray.github.io/ndarray.

Building from Git

ndarray includes the Boost.NumPy library using git's "submodules" feature. When you clone the ndarray repository with git, you'll get an empty Boost.NumPy directory. Even if you don't plan to use Boost.NumPy (which is required only if you want to build the Boost.Python bindings for ndarray), it is necessary to checkout the Boost.NumPy source (as parts of the build system is shared). So, immediately after cloning ndarray, you'll need to run:

git submodule update --init --recursive

From there, you'll be able to build ndarray and (optionally) Boost.NumPy together just by running "scons" from the root of the ndarray clone.

A partial cmake build has also recently been added, and we expect it to eventually replace SCons as the recommended approach, but it does not yet support building against Boost.NumPy to provide bindings for Boost.Python.

To build with cmake, do:

mkdir build
cd build
cmake ..
make
make test

Inclusion and testing of optional dependencies is controlled by NDARRAY_* cmake options. Dependency resolution can be controlled by the PYBIND11_DIR, EIGEN_DIR, and FFTW_DIR environment variables. For example, to build with an alternate Eigen3 install location and disable FFTW testing replace cmake .. with EIGEN_DIR=/opt/local cmake -DNDARRY_FFTW=OFF ...

Building from Compressed Source

GitHub's automatically generated tarballs and zip files don't include the Boost.NumPy submodule or the git metadata needed to run "git submodule", so these features can't be used to download ndarray.

When we post release downloads, however, we'll include the Boost.NumPy source so they can be built directly.

ndarray's People

Contributors

talljimbo avatar nbecker avatar asford avatar paulprice avatar robertluptonthegood avatar r-owen avatar

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.