Project

carray

0.0
Repository is gone
A long-lived project that still receives updates
Ruby/CArray adds multi-dimensional numerical arrays to Ruby. Elements are held in a single flat memory block, so whole-array work -- element-wise arithmetic, reductions along any axis, sorting, searching -- runs in C. Slicing, transposing, reshaping, and selecting by a boolean condition all return views that share storage with the original array and can be chained freely; nothing is copied until you ask for a copy. Any array, view included, can carry a mask marking individual elements as undefined, and arrays are exchanged with other numerical libraries without copying through Ruby's MemoryView protocol.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 1.0