These are chat archives for symengine/symengine
CVecBasicas a parameter
CVecBasicand then pass it along?
CVecBasicfunctions. I wasn't aware of the design decision
SYMENGINE_ASSERTit disables, say, bounds checking in release build
but I would like to ensure (since this is Haskell's philosophy as well) that it doesn't crash, but instead throws the exception. Is there anyway to ensure this?
I guess the question is, is it possible to force asserts to raise exceptions even when the library is build in Release mode? I don't think this is/should be possible, but it would be nice to know
arr[-1]which is transformed into
arr[size-1]before sending it to C
cmake -DWITH_SYMENGINE_ASSERT=yesshould do it
arr[-1]throw a haskell exception.
arr[size-1], use that