bjornbm / dimensional

Dimensional library variant built on Data Kinds, Closed Type Families, TypeNats (GHC 7.8+).
BSD 3-Clause "New" or "Revised" License
102 stars 15 forks source link

Interoperability with linear algebra package? #209

Open guibou opened 4 years ago

guibou commented 4 years ago

I'm trying to do physical simulation and need to represents position, velocity, acceleration and light quantities in a 3D space. The linear package is really fine for this kind of work, but unfortunately it does not compose well with dimensional.

Is there any recommended package / way of doing "simple" 3D space manipulation with dimensional?

bjornbm commented 4 years ago

I'm sorry but we don't really have a good story for this (yet?). That is the short answer.

I have a rudimentary linear algebra library at bjornbm/dimensional-homo (not on Hackage) which I use for my simple needs. You are welcome to take a look and see if it might be adequate for what you want to do. Note that the "backend" linear algebra library is the very simple numeric-quest as it was easy to use and adequate for a proof-of-concept. If performance is important one would want to replace it with another backend.