linear
linear  nuha  

8    
198  2  
    
6.1  0.0  
3 months ago  almost 4 years ago  
Haskell  Haskell  
BSD 3clause "New" or "Revised" License  BSD 3clause "New" or "Revised" License 
Stars  the number of stars that a project has on GitHub. Growth  month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
linear

GHC.Num: Why no multiplication commutativity?
Linear.Quaternion.Quaterion from the linear package has a Num instance, and quaternion multiplication is noncommutative.

Is there an existing typeclass for differences?
That's pretty much exactly the abstraction used in the 'linear' package's Affine class, in which we find points separated by vectors.

What are the current challenges in Numerical Programming for Haskell?
Linear algebra: hmatrix again with its own array type (and linear but this is restricted to low dimensions)

Advanced programming exercises/apps recommendations to code
This is very niche, but something I've wanted to do for a while is to generate some cool physics example on the surface of a sphere with https://hackage.haskell.org/package/hamilton, and display it with https://reanimate.github.io/ (using https://hackage.haskell.org/package/linear for the projection)

How to create my Functor / Eq / Num combination on Coords?
Do check out the linear package. It has some complicated parts, but the types work out very nicely. Your Coords type is called V3 in that package, it has a huge list of instances for all kinds of different type classes.
 Advent of Code 2021 day 06

Probabilistic modelling in Idris: engineering as research
I've come to love the linear approach, where instead of working with Naperian (Representable) functors, you work with Distributive functors.

Monthly Hask Anything (June 2021)
See also the linear library, it contains types like data V3 a = V3 a a a with all of the useful instances.
nuha
We haven't tracked posts mentioning nuha yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
nimber  Finite nimber arithmetic
what4  Symbolic formula representation and solver interaction library
movingaverages
numhask  A haskell numeric prelude, providing a clean structure for numbers and operations that combine them.
linearaccelerate  Instances to mix linear with accelerate
grid  Tools for working with regular grids/graphs/lattices.
reservoir  Reservoir Sampling Algorithms in Haskell
monoidsubclasses  Subclasses of Monoid with a solid theoretical foundation and practical purposes
effectzoo  Comparing Haskell effect systems for ergonomics and speed
sbvPlugin  Formally prove properties of Haskell programs using SBV/SMT.
magma  magma algebraic library
dimensional  Dimensional library variant built on Data Kinds, Closed Type Families, TypeNats (GHC 7.8+).