haskell-numerics / hmatrix

Linear algebra and numerical computation
381 stars 104 forks source link

Simplified RealOf, SingleOf and DoubleOf for Complex #257

Open amigalemming opened 6 years ago

amigalemming commented 6 years ago

What about:

type instance RealOf (Complex a) = a

type instance SingleOf (Complex a) = Complex Float

type instance DoubleOf (Complex a) = Complex Double

? These definitions are short-cuts. They do not examine 'a' anymore.

idontgetoutmuch commented 6 years ago

You'll have to help me here. Is this related to https://github.com/albertoruiz/hmatrix/pull/256 or is this an entirely coincidental suggestion? If it is not related, could you send a PR with a rationale? Many thanks.

amigalemming commented 6 years ago

On Fri, 30 Mar 2018, idontgetoutmuch wrote:

You'll have to help me here. Is this related to #256 or is this an entirely coincidental suggestion? If it is not related, could you send a PR with a rationale? Many thanks.

Related, but the merits are not as clear as in the PR.