Closed benthestatistician closed 9 years ago
This is my bad. When I wrote the C code, I just assumed that I would be getting handed integers.
I have liberally added as.integer around and updated a tiny section of roxygen docu.
The changes are in the issue93 branch from master and tests clean.
Looks good to me. Mark, could you do a quick review and then pass-back to Josh B for changes, merging back into master and closing the issue, as appropriate?
Looks good. Merged into master.
Per the definition of the
InfinitySparseMatrix
class, row and col are numerics. However, the C function subsetInfSparseMatrixseems to expect integers here. This causes
subset.ISM` to fail, as in this example:Here
subset.ISM
fails because of the problem. It can also create the problem, by spitting out ISMs w/ non-integer rows and cols, even when the ISM that went into it had integer rows and cols.At a minimum,
makeISM
andsubset.ISM
should be outfitted to return objects with integer rows and cols slots. I'd also suggest that theISM
class definition should make the integer requirement explicit. Assigning to Mark for comment, in case he's aware of likely side effects that I'm unaware of.