Up to [cvs.NetBSD.org] / pkgsrc / math / R-SparseM
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
(math/R-SparseM) Updated 1.81 to 1.84.2
(inst/ChangeLog, chronological order)
The version 1.82
1. Modernized the cholesky.f to remove arithmetic ifs, suggested by BDR.
2. Repaired some syntax errors in lsq.Rd.
3. Commented out S3Method lines at the end of NAMESPACE file, at suggestion
of Ivan Krylov, see mail of May 27, 2024.
4. This version was accepted by Uwe for CRAN, despite generating an error
with balanceTest() in the RItools package.
5. After some chaos involving namespace issues that were due to extraneous
conditions, the package passed R CMD check after adding a setGeneric(image)
command in SparseM.R. (This allowed me to restore the vignette in its Rnw
form.
6. This left things in the status quo ante with the problem in RItools, which
I'm hoping Jake Bowers and his collaborators can help debug.
7. Meanwhile there is a broken 1.82 on CRAN that I've asked Uwe to remove.
8. The problem with the RItools example turned out to be that chol was being
applied to a singular matrix. I've added a warning in the documentation that
is no pre-checking for PD matrices.
9. I also found that determinant wasn't acknowledged to be generic, so this
has been repaired, however there is still a problem with accessing the
documentation of this.
The version 1.84
(much by Martin Maechler who also adds himself to the Authors 'ctb')
1. chol(<matrix.csr) gets new argument `warn.only = FALSE` in order to
still return in case of errors (as this has happened in older
versions, at least coincidentally). Further new arguments for
previously hardwired "tuning" constants are
'tiny = 1e-30',
'Large = 1e128',
'cacheKb = 1024L',
'level = 8L'.
Note that `cacheKb` was hardwired to 64, clearly too small a
default for today's hardware.
Further, the chol() method is well documented ( ../man/SparseM.solve.Rd ).
An example has been added where _decreasing_ `tiny` was beneficial.
2. determinant(<matrix.csr>) allows to pass optional arguments for chol().
3. det() now works, automagically calling _our_ determinant().
4. Fix backsolve() and forwardsolve() methods documentation, adding an
`drop=TRUE` argument in one case.
4b. These tweaks have also eliminated the unpleasant message when SparseM is attached:
The following object is masked from ‘package:base’: \cr backsolve
5. A nice simple show() method now (auto-)prints our sparse matrices with
structural zeros shown as " . "
6. norm(<matrix.csr>, "I") now gives an error (instead of invisible(NULL)).
7. demo(LeastSquares) and demo(Solve) work now.
The version 1.84-1
- src/SparseM.h : use 'int_least32_t' instead of 'int' for Fortran 'logical', in two cases (fixing 'LTO').
- src/csr.f (etc): drop first *unused* argument 'ra' from nzero().
- src/cholesky.f: replace computed goto's in code by select case(.) case() ...
(math/R-SparseM) Updated 1.78 to 1.81 (from inst/ChangeLog) The version 1.79 1. Removed a "f_" from the .Fortran call in chol2csr following bug report by Alex Ballantynea (Melbourne U)
(math/R-SparseM) Updated 1.77 to 1.78 (make test fails for now) The version 1.78 1. Changed check for symmetry to use all.equal() in response to an error reported by Brian Ripley.
Update all R packages to canonical form. The canonical form [1] of an R package Makefile includes the following: - The first stanza includes R_PKGNAME, R_PKGVER, PKGREVISION (as needed), and CATEGORIES. - HOMEPAGE is not present but defined in math/R/Makefile.extension to refer to the CRAN web page describing the package. Other relevant web pages are often linked from there via the URL field. This updates all current R packages to this form, which will make regular updates _much_ easier, especially using pkgtools/R2pkg. [1] http://mail-index.netbsd.org/tech-pkg/2019/08/02/msg021711.html
R-SparseM: update to canonical form of an R package.
Remove MASTER_SITES= from individual R package Makefiles. Each R package should include ../../math/R/Makefile.extension, which also defines MASTER_SITES. Consequently, it is redundant for the individual packages to do the same. Package-specific definitions also prevent redefining MASTER_SITES in a single common place.
Update to 1.77
Upstream changes:
The version 1.71
1. Fixed the REAL*8 and INTEGER*4 occurences in accordance with Kurt's email.
The version 1.73
1. changed occurences of unix.time to system.time in accordance with Kurt's
directive.
The version 1.74
1. One more unix -> system
The version 1.75
1. package -> PACKAGE [per Kurt's email of 3/2/17]
The version 1.76
1. Used package_native_routine_registration_skeleton to remove
PACKAGE = SparseM [per Kurt's email of 3/2/17]
The version 1.77
1. Changed setMethod for diag (matrix.csr) in accordance with MM's suggestion
2. removed setGeneric for image also suggested by MM.
Some basic linear algebra functionality for sparse matrices is provided: including Cholesky decomposition and backsolving as well as standard R subsetting and Kronecker products.