#300 closed defect (fixed)
psMatrixLUSolve does not allow NULL output
| Reported by: | Paul Price | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | math | Version: | 0.4.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Passing outVector = NULL to psMatrixLUSolve is not supported: the function
generates an error:
2005:02:09 03:28:16Z|mithrandir |E|psMatrixLUSolve (psMatrix.c:250)
Unallowable operation: psVector outVector or its data is NULL.
and returns NULL. The expected behaviour is for the function to allocate the
vector itself (though I admit this isn't explicit in the SDRS, it was intended).
Workaround is to allocate the vector before calling the function.
Change History (5)
comment:1 by , 21 years ago
| Owner: | changed from to |
|---|
comment:2 by , 21 years ago
| Owner: | changed from to |
|---|
comment:3 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:4 by , 21 years ago
| Keywords: | VERIFIED added |
|---|
comment:5 by , 21 years ago
| Keywords: | VERIFIED removed |
|---|
Note:
See TracTickets
for help on using tickets.

Fixed in CVS head. Also went through psMatrix, changing behaviour of errors so
that NULL is returned upon error (and any 'out' parameter is freed, so that
that reference is not lost).