On success, S3L_lu_invert returns S3L_SUCCESS.
S3L_lu_invert performs generic checking of the validity of the arrays it accepts as arguments. If an array argument contains an invalid or corrupted value, the function terminates and returns an error code indicating which value was invalid. See Appendix A of this manual for a detailed list of these error codes.
The following conditions will cause the function to terminate and return the associated error code:
S3L_ERR_ARG_NULL - Invalid array; must be the same value returned by S3L_lu_factor.
S3L_ERR_ARG_SETUP - Invalid setup_id.
S3L_ERR_FACTOR_SING - a contains singular factors; its inverse could not be computed.