Closed benruijl closed 3 years ago
Hi benruijl,
It's possible to make Mat
generic using num_traits::Float
, but its implementation will take a little time, I think. Not to make it generic but to use just f128
, modifying FP
, FP_EPSILON
and FP_MINPOS
in matgen.rs
to those of f128
maybe works.
As for dual numbers, you need to re-write an optimization problem by using dual numbers' element-wise real number vectors and matrices. It's because the base algorithm I used is based on $R^n$.
At version https://github.com/convexbrain/Totsu/releases/tag/rust_conic_v0.6.0, num::Float is employed overall.
I'd like to use Totsu over any
num_traits::Float
type, likef128
floats or perhaps even dual numbers. Is this possible?