How do I convert a R to a C?

83 Views Asked by At

How do I convert a Numeric.LinearAlgebra.Static.R to a Numeric.LinearAlgebra.Static.C (with all imaginary parts being zero?).

Sounds like a straight forward problem, but from what I see all map-like functions have the same input as the output field. Eg:

dvmap :: (...) => (field -> field) -> vec n -> vec n
zipWithVector :: (...) => (field -> field -> field) -> vec n -> vec n -> vec n

This is making it impossible to convert from R to C.

I guess I am just missing something here?

0

There are 0 best solutions below