arrayfire alternatives and similar packages
Based on the "Math" category.
Alternatively, view arrayfire alternatives based on common mentions on social networks and blogs.
-
vector
An efficient implementation of Int-indexed arrays (both mutable and immutable), with a powerful loop optimisation framework . -
statistics
A fast, high quality library for computing with statistics in Haskell. -
HerbiePlugin
GHC plugin that improves Haskell code's numerical stability -
hgeometry
HGeometry is a library for computing with geometric objects in Haskell. It defines basic geometric types and primitives, and it implements some geometric data structures and algorithms. The main two focusses are: (1) Strong type safety, and (2) implementations of geometric algorithms and data structures that have good asymptotic running time guarantees. -
dimensional
Dimensional library variant built on Data Kinds, Closed Type Families, TypeNats (GHC 7.8+). -
computational-algebra
General-Purpose Computer Algebra System as an EDSL in Haskell -
matrix
A Haskell native implementation of matrices and their operations. -
mwc-random
A very fast Haskell library for generating high quality pseudo-random numbers. -
numhask
A haskell numeric prelude, providing a clean structure for numbers and operations that combine them. -
cf
"Exact" real arithmetic for Haskell using continued fractions (Not formally proven correct) -
poly
Fast polynomial arithmetic in Haskell (dense and sparse, univariate and multivariate, usual and Laurent) -
optimization
Some numerical optimization methods implemented in Haskell -
rampart
:european_castle: Determine how intervals relate to each other. -
safe-decimal
Safe and very efficient arithmetic operations on fixed decimal point numbers -
equational-reasoning
Agda-style equational reasoning in Haskell -
sbvPlugin
Formally prove properties of Haskell programs using SBV/SMT. -
monoid-subclasses
Subclasses of Monoid with a solid theoretical foundation and practical purposes -
polynomial
Haskell library for manipulating and evaluating polynomials -
eigen
Haskel binding for Eigen library. Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms. -
vector-th-unbox
Deriver for unboxed vectors using Template Haskell -
modular-arithmetic
A useful type for working with integers modulo some constant.
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of arrayfire or a related project?
README
ArrayFire
is a general-purpose library that simplifies the process of developing software that targets parallel and massively-parallel architectures including CPUs, GPUs, and other hardware acceleration devices.
arrayfire-haskell
is a Haskell binding to ArrayFire.
Table of Contents
Installation
Install ArrayFire
via the download page.
ArrayFire
can also be fetched from nixpkgs master
.
Haskell Installation
arrayfire
can be installed w/ cabal
, stack
or nix
.
cabal install arrayfire
stack install arrayfire
Also note, if you plan on using ArrayFire's visualization features, you must install fontconfig
and glfw
on OSX or Linux.
Documentation
Hacking
To hack on this library locally, complete the installation step above. We recommend installing the nix package manager to facilitate development.
After the above tools are installed, clone the source from Github.
git clone [email protected]:arrayfire/arrayfire-haskell.git
cd arrayfire-haskell
To build and run all tests in response to file changes
nix-shell --run test-runner
To perform interactive development w/ ghcid
nix-shell --run ghcid
To interactively evaluate code in the repl
nix-shell --run repl
To produce the haddocks and open them in a browser
nix-shell --run docs
Example
{-# LANGUAGE TypeApplications, ScopedTypeVariables #-}
module Main where
import qualified ArrayFire as A
import Control.Exception (catch)
main :: IO ()
main = print newArray `catch` (\(e :: A.AFException) -> print e)
where
newArray = A.matrix @Double (2,2) [ [1..], [1..] ] * A.matrix @Double (2,2) [ [2..], [2..] ]
{-|
ArrayFire Array
[2 2 1 1]
2.0000 6.0000
2.0000 6.0000
-}