Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ndarray/ndarray
NumPy-compatible multidimensional arrays in C++
https://github.com/ndarray/ndarray
Last synced: 3 months ago
JSON representation
NumPy-compatible multidimensional arrays in C++
- Host: GitHub
- URL: https://github.com/ndarray/ndarray
- Owner: ndarray
- License: bsd-2-clause
- Created: 2012-02-19T18:55:43.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T03:05:24.000Z (over 1 year ago)
- Last Synced: 2024-03-26T08:20:45.151Z (8 months ago)
- Language: C++
- Homepage:
- Size: 3.91 MB
- Stars: 158
- Watchers: 20
- Forks: 34
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
ndarray: NumPy-friendly multidimensional arrays in C++
======================================================
![Build Status](https://github.com/ndarray/ndarray/workflows/build_and_test/badge.svg)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](https://ndarray.github.io/ndarray/).Installation
------------ndarray can be built and tested with CMake:
mkdir build
cd build
cmake ..
make
make testInclusion 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 ..`.ndarray's build system does not produce the correct suffixes for pybind11
outputs under pybind11 2.1.x (due to a bug in pybind11 itself). To avoid this
problem, please upgrade to pybind11 2.2.x, or try the (now reverted) patch from
ndarray commit f46c0f0ff876ceab5aaa3286e5f6e86902e72feb.Version 1.4.2 of ndarray is the last version to support SWIG.
Version 1.5.3 of ndarray is the last verison to support Boost.Python.