In support of the working textbook Algorithms for Validation and to address issue #38, this PR allows a user to specify the weight type to allow for autodiff packages to work properly.
The default behavior is to use the existing vectors of Float64 (i.e., no compromise of efficiency). Yet, the user can specify the weight type as an input to the RectangleGrid and SimplexGrid constructors.
In support of the working textbook Algorithms for Validation and to address issue #38, this PR allows a user to specify the weight type to allow for autodiff packages to work properly.
The default behavior is to use the existing vectors of
Float64
(i.e., no compromise of efficiency). Yet, the user can specify the weight type as an input to theRectangleGrid
andSimplexGrid
constructors.Here are some benchmarks:
With the
grid
with weight typeReal
orNumber
, the following now works:FYI, with the
Float64
type you get the following ForwardDiff error trying to cast aForwardDiff.Dual
type (which is<: Real
) to aFloat64
: