Displaying 1 result from an estimated 1 matches for "asmatrixcsrlistw".
2004 Nov 18
1
Method dispatch S3/S4 through optimize()
...rvations:
1) In a simpler case:
> library(spdep)
Loading required package: tripack
Loading required package: maptools
Loading required package: foreign
Loading required package: SparseM
[1] "SparseM library loaded"
> example(similar.listw)
...
smlr.l> log(det(asMatrixCsrIrW(asMatrixCsrListw(similar.listw(COL.W)), 0.5)))
[1] -1.627660
just works, and the appropriate det() and chol() are found; det()
dispatches on class "matrix.csr" and finds the right chol() for that
class - this is the same code context as found in the function passed to
optimize();
2) When the R sourc...