dstructs/matrix

Assignment of `NaN`

Planeshifter opened this issue · 1 comments

When using the non-raw implementation of the matrix module, it is not possible right now to assign the value NaN to a float32 or float64 matrix, even though the underlying typed arrays could naturally hold this value. This has been a problem for me in a couple of modules, as it conflicts with our standard of failing silently when a computation is not possible for the given input types. Your thoughts?

Yes, you are right. This is a bug, I believe, not an enhancement. If you want to create a pull request, that would be great.