proteus
proteus copied to clipboard
superluWrapper DataType
The numpy array column and row index need to create a superluWrapper have to have dtype='int32'.
This is not the default type for a numpy array, and inputing an incorrect dtype will not cause the constructor to fail but simply generate the wrong matrix. I've been stung by this several times now so I'm sure it can be handled better. At a minimum there should be an exception kills the program warning the user.