3 ms·
"is a good generic type-stable function for any number which has zero and + defined. That's quite unique: I can put floating point numbers in here, symbolic exp
by _Codemonkeyism 9y ago
"is a good generic type-stable function for any number which has zero and + defined. That's quite unique: I can put floating point numbers in here, symbolic expressions from SymEngine.jl, ArbFloats from the user-defined ArbFloats.jl fast arbitrary precision library, etc."
Is it really unique? Isn't that just a Monoid (e.g. in Haskell, Scala, ...) or am I wrong?
- StefanKarpinski 9y agoI think that unique is an overstatement there, but in the context it's a comparison to other numerical computing systems, where this kind of support for generic code is less common.
- ChrisRackauckas 9y agoYes,i it was an overstatement. But, while I do see it can be done with these Monoids, I haven't come across these kinds of numerical linear algebra libraries that allow generic code in other languages (here's an example of what I find in Haskell that requires double: https://hackage.haskell.org/package/hmatrix-0.14.0.1/docs/Numeric-LinearAlgebra-Algorithms.html https://hackage.haskell.org/package/hmatrix-0.14.0.1/docs/Nu...)