mathflow alternatives and similar packages
Based on the "Math" category.
Alternatively, view mathflow alternatives based on common mentions on social networks and blogs.

vector
An efficient implementation of Intindexed arrays (both mutable and immutable), with a powerful loop optimisation framework . 
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+). 
numhask
A haskell numeric prelude, providing a clean structure for numbers and operations that combine them. 
poly
Fast polynomial arithmetic in Haskell (dense and sparse, univariate and multivariate, usual and Laurent) 
eigen
Haskel binding for Eigen library. Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
InfluxDB  Power RealTime Data Analytics at Scale
* 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 mathflow or a related project?
README
mathflow(Dependently typed tensorflow modeler)
This package provides a model of tensoroperations. The model is independent from tensorflowbinding of python and haskell, though this package generates pythoncode. tensor's dimensions and constraints are described by dependent types. The tensoroperations are based on tensorflowapi. Currently the model can be translated into pythoncode. To write this package, I refer to this neural network document and singletons.
Install
Install tensorflow of python and this package.
> sudo apt install python3 python3pip
> pip3 install U pip
> pip3 install tensorflow
> git clone [email protected]:junjihashimoto/mathflow.git
> cd mathflow
> stack install
Usage
About model
Model has a type of Tensor (dimensions:[Nat]) valuetype outputtype
.
dimensions
are tensordimensions.valuetype
is a value type like Integer or Float of tensorflowdatatypes.outputtype
is a type of code which this package generates. PyStringtype is used for generating pythoncode.
This package makes tensorflowgraph from the mode. The model's endpoint is always a tensortype.
At first write graph by using arithmetic operators like (+,,,/), % (which is matrix multiply) and tensorflowfunctions. Mathflow.{TF,TF.NN,TF.Train} packages define Tensorflowfunctions.
A example is below.
testMatMul :: Tensor '[2,1] Int PyString
testMatMul =
let n1 = (Tensor "tf.constant([[2],[3]])") :: Tensor '[2,1] Int PyString
n2 = (Tensor "tf.constant([[2,0],[0,1]])") :: Tensor '[2,2] Int PyString
y = (n2 %* n1) :: Tensor '[2,1] Int PyString
in y
Create model and run it
Write tensorflowmodel.
testMatMul :: Tensor '[2,1] Int PyString
testMatMul =
let n1 = (Tensor "tf.constant([[2],[3]])") :: Tensor '[2,1] Int PyString
n2 = (Tensor "tf.constant([[2,0],[0,1]])") :: Tensor '[2,2] Int PyString
y = n2 %* n1 :: Tensor '[2,1] Int PyString
in y
Run the model. This run
function generates pythoncode and excecute the code by python.
main = do
(retcode,stdout,stderr) < run testMatMul
print stdout