Tackles #62 but uses ifelse so that the fxn is still vectorized.
Note, there are 1176 PASSING & 9 FAILING tests on main(and the failures are unrelated to this issue). This PR adds an additional test, and so there are 1177 PASSING and still the 9 FAILING. I'll open a new issue re: addressing the test failures.
Tackles #62 but uses
ifelse
so that the fxn is still vectorized.Note, there are 1176 PASSING & 9 FAILING tests on
main
(and the failures are unrelated to this issue). This PR adds an additional test, and so there are 1177 PASSING and still the 9 FAILING. I'll open a new issue re: addressing the test failures.