Rev 4133 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
2007-02-05 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Date, Version): 0.9975-10 with new date.* R/Ops.R (Arith): make sure Csparse o Csparse also works for e.g. ntCMatrix* tests/simple.R: test the above and some of these coercions:* R/nsparseMatrix.R: coercing "Csparse" to "lsparseMatrix";be careful to avoid infinite recursion, using new coercions in* R/ngCMatrix.R and nsC... and ntC...* R/lsparseMatrix.R: ditto* R/SparseM-conv.R: more conversion, notably for triplet matrices.* src/dgCMatrix.c (R_to_C_Matrix): port Doug's fix and* R/Rsparse.R: reactivate .Call()s* tests/Class+Meth.R: a bit more on actual classes2007-02-04 Douglas Bates <bates@stat.wisc.edu>* src/dgCMatrix.c (compressed_to_TMatrix): fix memory bug using strdup()2007-02-03 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Version): 0.9975-10 to upload* tests/Class+Meth.R (tstMatrixClass): require coercions tospecific classes less unconditionally.* R/Auxiliaries.R: get rid of as_Tsparse() and as_Rsparse()* R/Tsparse.R (triu): etc, use as(*, "TsparseMatrix") instead of as_Tsparse()* R/Rsparse.R (.R.2.T): R-level workaround using compressed_to_TMatrix.* R/Rsparse.R (.R.2.C): R-level workaround since C-levelR_to_CMatrix segfaults on one platform.Eliminate most coercion method to *specific* classes, and replacewith virtual classes coercions.2007-02-01 Martin Maechler <maechler@stat.math.ethz.ch>* src/init.c: export the CHM...._validate() placeholders, sincethey *are* called.* tests/Class+Meth.R (classCanCoerce): and starting to testall as(<from>, <to>)2007-01-30 Martin Maechler <maechler@stat.math.ethz.ch>* R/Tsparse.R ([): more care when subsetting triangular Tsparse* tests/indexing.R: tested now* tests/indexing.Rout.save: updated* src/Csparse.c (Csparse_to_dense): use Rkind = -1 for PATTERN to* src/chm_common.c (chm_dense_to_SEXP): return "ngeMatrix" whenappropriate.* NAMESPACE: export a trivial* R/Matrix.R: drop() Matrix-method* R/AllClass.R: moved all prototypes to virtual super classes.* R/Rsparse.R: many more coercions to have less exceptions in* tests/Class+Meth.R:* R/Ops.R (Compare): tweak for case with NA* tests/simpl.R: hence another 'FIXME' eliminated2007-01-29 Martin Maechler <maechler@stat.math.ethz.ch>* R/diagMatrix.R (solve): the obvious methods for diagonalMatrixobjects.* tests/Class+Meth.R (tstMatrixClass): now testing diag(), nnzero(),and more of "!", "&", "|", all, any; coercions* R/Rsparse.R: many coercions (which enable quite a few othermethods), thanks to enhancements in* src/dgCMatrix.c (R_to_CMatrix): new, and* src/dgCMatrix.c (compressed_to_TMatrix): now for (d,l,n) ,symmetric & triangular and ..RMatrix objects.* src/TMatrix_as.c (Matrix_T_as_DENSE,Matrix_T_as_GENERAL):renamed file from src/dsTMatrix.c;now dealing with symmetric and triangular Tsparse coercions, bothto dense and general.2007-01-27 Martin Maechler <maechler@stat.math.ethz.ch>* src/dsTMatrix.c: has now "l" and "n" methods besides the "d" ones.* R/Ops.R (Arith): <dgCMatrix> o <numeric> now remains sparsewhere sensible when the <numeric> is of length > 1.2007-01-26 Martin Maechler <maechler@stat.math.ethz.ch>* R/Matrix.R ([<-): for M[] <- value: fix length2007-01-25 Martin Maechler <maechler@stat.math.ethz.ch>* R/Auxiliaries.R (n2l_Matrix): new, to be used in* R/ndenseMatrix.R: new coercions n* -> l*2007-01-22 Martin Maechler <maechler@stat.math.ethz.ch>* R/triangularMatrix.R: new file; simple triu() and tril() methods.* R/Ops.R ("Logic"): and other "Ops", many updates2007-01-18 Martin Maechler <maechler@stat.math.ethz.ch>* src/Mutils.h (SET_DimNames): new utility* R/Auxiliaries.R (nnzero): improved and now exported via* NAMESPACE: + nnzero(); length() == prod(dim(.)) method for all "Matrix" objects2007-01-17 Martin Maechler <maechler@stat.math.ethz.ch>* R/diagMatrix.R (!): fix typo.2007-01-16 Martin Maechler <maechler@stat.math.ethz.ch>* R/Auxiliaries.R (as_Csparse): and quite a few others:allow to pass class definition --> speedup* R/sparseMatrix.R: apply the above* R/Csparse.R: coercion Csparse* to dense* now preserves shape properties.* src/Mutils.h (mMatrix_as_geMatrix): new, based on* src/Mutils.c (dup_mMatrix_as_geMatrix): new; generalization ofold dup_mMatrix_as_dgeMatrix), eliminating a long-standing "FIXME".* src/dense.c (dense_to_Csparse): use new mMatrix_as_geMatrix()* R/denseMatrix.R (.dense2C): based on dense_to_Csparse: name it,and use it for "sparse*" as well, since it's faster than theas_Csparse(.) way.2007-01-15 Martin Maechler <maechler@stat.math.ethz.ch>* R/Ops.R ("Logic"): more methods, notably an <lgC> o <lgC> one.2007-01-12 Martin Maechler <maechler@stat.math.ethz.ch>* R/Tsparse.R (.TM.repl.i.2col): new internal function to be usedas method for M[ ij ] <- v* R/Csparse.R:: go via Tsparse for "M[ij] <- v"* R/Ops.R: "Compare" for (C|R)sparse: need pointer slot for allFALSE answer* R/Csparse.R (replCmat): fix the "all non-zero" case with reordering* tests/indexing.R: test it, and some of the above2007-01-05 Martin Maechler <maechler@stat.math.ethz.ch>* R/Auxiliaries.R (is_duplicatedT): new utility2007-01-05 Douglas Bates <bates@stat.wisc.edu>* src/init.c (R_init_Matrix): export cholmod_scale2006-12-30 Martin Maechler <maechler@stat.math.ethz.ch>* R/zzz.R (tmp): for R >= 2.5.0, extend formals of ourbase::as.matrix to (x, ...)2006-12-28 Martin Maechler <maechler@stat.math.ethz.ch>* R/Ops.R ("Arith" etc): move almost all "Ops" methods to new Rfile; start using "Logic", hence* DESCRIPTION (Depends): R >= 2.4.1 (since we want "Logic")* NAMESPACE: import and export "Logic"2006-12-27 Martin Maechler <maechler@stat.math.ethz.ch>* src/zpotfr.f and dependencies: use LAPACK 3.1 versiononly needed previously to R version 2.5.0.2006-12-26 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Date, Version): 0.9975-8, ready for release* R/Tsparse.R (replTmat): fix subassignment of triangular* R/Csparse.R (replCmat): ditto* tests/indexing.R: more tests, incl the above fix2006-12-23 Martin Maechler <maechler@stat.math.ethz.ch>* R/Auxiliaries.R (drop0): extend for non CSparse* R/Auxiliaries.R (diagU2N): should work for all sparseMatrix* src/Csparse.c (Csparse_to_Tsparse, Csparse_general_to_symmetric):use uplo correctly (!); other places: use uplo_P() macro* R/Csparse.R (replCmat): call diagU2N() when needed* R/Tsparse.R (replTmat): ditto* src/dtCMatrix.c (tCMatrix_validate): new* src/dtTMatrix.c (tTMatrix_validate): new, used in* R/AllClass.R: for validity of dtC, dsC, and dtT, dsT.* R/diagMatrix.R (replDiag): to use in [<-2006-12-22 Martin Maechler <maechler@stat.math.ethz.ch>* R/Auxiliaries.R (as_Csparse2, as_geSimpl): new functions;also more general diagU2N().2006-12-21 Martin Maechler <maechler@stat.math.ethz.ch>* R/bind2.R: new file for all cbind2(), rbind() methods moved herefrom R/<foo>Matrix.R files. Better diagonal & improved sparse methods.2006-12-20 Martin Maechler <maechler@stat.math.ethz.ch>* tests/bind.R: a few more cases* R/Auxiliaries.R (.M.kind): also work for atomic vectors* R/denseMatrix.R (cbind2/rbind2): moved here (and generalized) from* R/ddenseMatrix.R (cbind2/rbind2)* R/Tsparse.R (replTmat): final(?!) fix for "[<-" ..* tests/indexing.R* tests/indexing.Rout.save: updated2006-12-18 Martin Maechler <maechler@stat.math.ethz.ch>* R/Tsparse.R (replTmat): fixed a remaining "[<-" bug in* tests/indexing.R2006-12-15 Martin Maechler <maechler@stat.math.ethz.ch>* R/sparseMatrix.R (prSpMatrix): "." alignment much improved:align with proper position of "0", i.e., right for integers.argument 'align' by default is "fancy".2006-12-14 Martin Maechler <maechler@stat.math.ethz.ch>* R/sparseMatrix.R: delegate "Compare" to "Csparse.."* R/Csparse.R: and fix "Compare" for more cases.* tests/Class+Meth.R: test some of these (m == m, m != m)2006-12-13 Martin Maechler <maechler@stat.math.ethz.ch>* R/lsparseMatrix.R: all() and any() methods* R/ldenseMatrix.R: ditto* NAMESPACE, R/Matrix.R: ditto* man/all-methods.Rd: document them minimally* tests/simple.R: add a few examples for these2006-12-11 Martin Maechler <maechler@stat.math.ethz.ch>* R/Tsparse.R ([): fix long standing typo in symmetric case* man/dsCMatrix-class.Rd: add example exhibiting the above case2006-12-10 Douglas Bates <bates@stat.wisc.edu>* src/CHMfactor.c (CHMfactor_to_sparse): change LDL factorizationto LL before converting to a sparse matrix. (The LDL form can beconverted to a sparse matrix but it is implicitly a unittriangular matrix and a diagonal matrix overwritten on the diagonal.)2006-12-09 Douglas Bates <bates@stat.wisc.edu>* src/chm_common.c (chm_factor_to_SEXP): allocate and fill the Dim slot.2006-12-08 Douglas Bates <bates@stat.wisc.edu>* DESCRIPTION (Version): updated -> release 0.9975-7* src/{init.c,chm_common.c}, inst/include/*: export cholmod_analyze_p2006-11-30 Martin Maechler <maechler@stat.math.ethz.ch>* R/diagMatrix.R (%*%): write a direct [diag o Csparse] method2006-11-29 Douglas Bates <bates@stat.wisc.edu>* src/dgeMatrix.c (dgeMatrix_solve): Check error code from dgetri.* tests/dg_Matrix.R: Add Barry Rowlingson's test of a matrix thatis exactly singular.2006-11-07 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Date): updated -> release 0.9975-62006-11-06 Martin Maechler <maechler@stat.math.ethz.ch>* R/Csparse.R (replCmat): symmetric indexing of symmetric matrixnow returns symmetric.* R/zzz.R ("diag<-"): replace "diag<-" in base for R <= 2.4.x* R/Matrix.R (.M.sub.i.2col): new, for M[ cbind(i,j) ] indexing.* R/Matrix.R (.M.repl.i.2col): new, for M[ cbind(i,j) ] <- value* R/Auxiliaries.R (.type.kind): added2006-11-04 Martin Maechler <maechler@stat.math.ethz.ch>* src/cs.[ch]: updated to CSparse Version 2.0.3 by simplyrunning src/CSparse_install.sh* R/denseMatrix.R: "[": keep symmetric on symmetric indexing.2006-11-03 Martin Maechler <maechler@stat.math.ethz.ch>* src/dsCMatrix.c (dsCMatrix_Csparse_solve): new* R/dsCMatrix.R (solve): "fully-sparse" using the above.* R/AllClass.R: "pMatrix" now also inherits from "generalMatrix"* tests/Class+Meth.R (tstMatrixClass): now assurethe (important in method programming) property :###>> Every "Matrix" is either###>> "general*", "symmetric*", "triangular*" or "diagonal*"(where "*" stands for "Matrix")* R/Auxiliaries.R (diagU2N): now .Call()s Csparse_diagU2N for <Csparse>* R/dMatrix.R (Compare(<dMatrix>,<dMatrix>): update and* tests/validObj.R: checks for "comparison"* R/sparseMatrix.R ([): improved indexing for sparse;trying to keep <symmetric>[ n, n] symmmetric* tests/indexing.R: indexing for logical sparse now ok2006-11-02 Martin Maechler <maechler@stat.math.ethz.ch>* src/Tsparse.c: use xTsparse_validate() , and hence remove* src/{ltC,lsC,lgT}Matrix.[ch]: removed2006-11-02 Martin Maechler <maechler@stat.math.ethz.ch>* R/AllClass.R (Matrix-class): check length of dimnames in validity.* tests/simple.R: validObject() checking the above.* src/dgCMatrix.c (xCMatrix_validate): new, small and simple,replacing both dgCMatrix_validate and lgCM*.* src/Csparse.c (Csparse_dense_prod, etc): do not lose dimnames;fix dimnames setting in other places.* src/chm_common.c (chm_dense_to_SEXP): now can pass dimnames2006-11-01 Martin Maechler <maechler@stat.math.ethz.ch>* R/Csparse.R,src/Csparse.c, etc: tcrossprod(<CsparseM>,<CsparseM>)* R/sparseMatrix.R (isSymmetric): drop 'factors' slot forsymmetry test, via* R/Auxiliaries.R (.as.dgC.0.factors):2006-11-01 Douglas Bates <bates@r-project.org>* R/Csparse.R,src/Csparse.c,tests/matprod.R,man/CsparseMatrix-class.Rd: crossprod(<CsparseMatrix>,<CsparseMatrix>) added2006-10-30 Martin Maechler <maechler@stat.math.ethz.ch>* tests/matprod.R: add a variation of Harri's example* R/dsparseMatrix.R: fix crossprod(<dsparse>, <dge>) to *not*recursive infinitely.* R/dgCMatrix.R: + solve(<sparse>, <sparse>)* tests/indexing.R: add test for the "<" bug fixed 10-27 in R/dMatrix.R2006-10-28 Martin Maechler <maechler@stat.math.ethz.ch>* tests/Class+Meth.R (tstMatrixClass): more: use non-trivialmatrix if possible; test m+m == 2*m; now test dgRMatrix.* R/dgRMatrix.R (.to.dgR): a few more coercions, in order tosatisfy the above test.2006-10-27 Martin Maechler <maechler@stat.math.ethz.ch>* R/Matrix.R (Ops): <Matrix> o <matrix> method added* R/dgCMatrix.R: solve(a, b="missing") based on* src/dgCMatrix.c (dgCMatrix_matrix_solve): extend to work withRHS = NULL.* R/diagMatrix.R (diagdiagprod): extend %*% etc to ldiMatrix;add more (needed) [t]crossprod() methods.* man/ddiMatrix-class.Rd: more info, notably on 'diag'* R/Auxiliaries.R (as_CspClass): cleanup(drop0): internal utility for "Csparse_drop(*, 0)"(.bail.out.2): encourage active feedback2006-10-26 Martin Maechler <maechler@stat.math.ethz.ch>* R/dMatrix.R(Compare): new(), then slots [no validity check]* src/Csparse.c (Csparse_validate): fixed (and more efficient innon-valid or 'sorted' case).* R/dsparseMatrix.R: add "chol" method.* R/ddenseMatrix.R: ditto* R/diagMatrix.R (Ops): group methods for <diagonal> o <sparse>* NAMESPACE (Ops)* R/diagMatrix.R (diag2T): simple utility used "higher level"coercion; deprecating direct lower level coercions.* R/*.R (seq): use seq_len() and seq_along() where possible.2006-10-23 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Version): 0.9975-5 ready for release2006-10-20 Douglas Bates <bates@stat.wisc.edu>* src/init.c (R_init_Matrix): export more cholmod CCallable functions.2006-10-20 Martin Maechler <maechler@stat.math.ethz.ch>* R/AllClass.R (corMatrix): add 'validity' check;comment out unused "LDL" class definition* NAMESPACE: mention, but do not export "LDL" class* R/corMatrix.R: new (simple), needed for R-devel with* tests/Class+Meth.R (tstMatrixClass): 1 exception for corMatrixcoerce and t() exceptions for all 5 'Mat.MatFact' classes.2006-10-19 Douglas Bates <bates@stat.wisc.edu>* src/chm_common.h: Add R_cholmod_start to initialize cholmod touse Rprintf and R's error handling.2006-10-17 Martin Maechler <maechler@stat.math.ethz.ch>* R/diagMatrix.R (%*%): rep(*, each = .) in Matrix %*% diagonal.* tests/matprod.R: add tests for the bug fixed.2006-10-11 Douglas Bates <bates@stat.wisc.edu>* src/HBMM.[ch]: remove HarwellBoeing format for writing.* src/SOURCES_C.mkf (SOURCES_C): no longer compile iohb.c2006-10-06 Douglas Bates <bates@stat.wisc.edu>* R/d[gs]CMatrix.R: deprecate the writeHB function. Use writeMM instead.2006-10-06 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Version): 0.9975-3* R/diagMatrix.R (bdiag): new function constructing block diagonal(sparse) matrices.* man/bdiag.Rd: docu + examples* R/Csparse.R (replCmat): calling new Csparse_drop() now.* src/Csparse.c (Csparse_general_to_symmetric, Csparse_drop): new functions* R/lsCMatrix.R: three more coercions to lsC (thanks to the above)* R/diagMatrix.R (Diagonal): '[<-' method for diag.matrices suchthat result is sparse or diagonal (and not dense).* man/Subassign-methods.Rd: fix examples* R/Matrix.R (Matrix): Matrix(0, *) or Matrix(*, sparse=TRUE)should always return a sparse (and not sometimes a diagonal) matrix.2006-10-05 Martin Maechler <maechler@stat.math.ethz.ch>* R/Matrix.R ([<-): also for value "Matrix" or "matrix"2006-10-04 Douglas Bates <bates@stat.wisc.edu>* DESCRIPTION (Version): 0.9975-2* inst/include/Matrix_stubs.c (M_cholmod_sparse_to_triplet): export more symbols2006-10-02 Douglas Bates <bates@R-project.org>* tests/dg_Matrix.R: Simplify test taking into account new code.2006-09-29 Martin Maechler <maechler@stat.math.ethz.ch>* R/Csparse.R (replCmat): improve for missing i / j in non-simple cases* R/lsTMatrix.R: new files w/ missing methods* R/nsTMatrix.R: " 'for completeness'* tests/Class+Meth.R: a bit less 'not.ok.classes'* R/Tsparse.R (t): generalized "t" method from "dgT*" to "Tsparse*"2006-09-28 Douglas Bates <bates@R-project.org>* src/dppMatrix.h: Ensure definition of dspMatrix_validate isincluded.* src/init.c, inst/include/{Matrix.h,Matrix_stubs.h,cholmod.h}:Export C-callable functions used in Zt_create in lme4.2006-09-28 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Version): 0.9975-1* tests/simple.R: less checks fail; using NA, found that ourkronecker() is not base-compatible with NA's.* R/dMatrix.R: "Compare" method now implemented for all cases* R/Auxiliaries.R (indTri): == which([lower/upper].tri( * )) new utility* man/dtpMatrix-class.Rd: mention length of 'x' slot* src/dtpMatrix.c (dtpMatrix_validate): fix check* src/dspMatrix.c (dspMatrix_validate): ditto* R/dtTMatrix.R (gt2tT): fix ("l" -> "n")including coercion to [nl]tTMatrix.* R/diagMatrix.R (show): print a header line as for other classes.2006-09-27 Martin Maechler <maechler@stat.math.ethz.ch>* src/Makefile.win (SUBDIRS): fix typo2006-09-19 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Date): ready to release 0.9975-0 to CRAN2006-09-18 Douglas Bates <bates@stat.wisc.edu>* R/[CT]sparse.R (crossprod and tcrossprod): Handle the cases for xsymmetric and y missing in R code using %*% (cholmod_aat doesn'taccept a symmetric matrix).* tests/group-methods.R: Uncomment test of crossprod applied tolsCMatrix objects.2006-09-18 Martin Maechler <maechler@stat.math.ethz.ch>* R/AllClass.R (symmetricMatrix): add validity method (availablein C for a long time). Many "n..Matrix": drop (wrong) validity arg.* src/lgCMatrix.c (lgCMatrix_validate): check 'x' slot (!)* tests/indexing.Rout.save:* tests/indexing.R: additions, mainly for 'lsparse'* R/diagMatrix.R (Diagonal) & coercion to lgTMatrix: fixes for NAcase.* R/Auxiliaries.R (nz.NA): new utility now used in nnzero()2006-09-16 Martin Maechler <maechler@stat.math.ethz.ch>* R/sparseMatrix.R (prSpMatrix): print logical NAs "visibly"as 'N' (1-letter - Ok?)* tests/group-methods.R: add test for logical + NAs* R/dMatrix.R ("Compare"): fix to work with NA's* R/AllClass.R: "Cholesky" etc now inherit from MatrixFactorization.* src/lgCMatrix.c (ncsc_to_matrix): renamed from lcsc_to_matrix()which is implemented.2006-09-15 Martin Maechler <maechler@stat.math.ethz.ch>* src/chm_common.c: coerce logical <-> double instead oftypecasting; needed for "l" matrix handling in cholmod.* tests/other-pkgs.R (graph): small extension in "graph" checks.* R/sparseMatrix.R (graphNEL -> Tsparse): method for weight case.(Tsp2grNEL): other fixes needed2006-09-11 Martin Maechler <maechler@stat.math.ethz.ch>* R/AllClass.R ("nMatrix"): and subclasses for "nonzero pattern"Matrices, since "lMatrix", also "lsparseM" can have NA* R/ndenseMatrix.R, etc: new source files* man/nsparseMatrix-classes.Rd, etc: new help files* tests/: adaptions* src/chm_common.c (chm_dense_to_SEXP): and others:new 'Rkind' argument: "l*" and "d*" both use CHOLMOD_REAL* src/Csparse.c, etc: ditto2006-09-11 Douglas Bates <bates@R-project.org>* src/Mutils.[ch],init.c inst/include/*.h: Move thealloc_d**Matrix functions to the lme4 package.2006-09-09 Douglas Bates <bates@R-project.org>* src/dsCMatrix.c (dsCMatrix_Cholesky): igoring LDL = FALSE nowfixed2006-09-09 Martin Maechler <maechler@stat.math.ethz.ch>* R/lMatrix.R: new* R/sparseMatrix.R (Tsp2grNEL): do not yet use graph::foo()* R/dgeMatrix.R: do not define tcrossprod() methods for "matrix"* man/tcrossprod.Rd: ditto2006-09-08 Douglas Bates <bates@stat.wisc.edu>* inst/include/Matrix_stubs.c,Matrix.h: Add declarations and stubsfor exported functions* src/Makefile, src/CHOLMOD/Lib/Makefile, src/Metis,CAMD,CCOLAMD:Remove partitioning algorithms for sparse matrix reordering. Thecopyright on the Metis code was problematic and the methods wererarely used.* src/triplet_to_col.[ch],MMHB.[ch]: Remove triplet_to_col. Suchoperations are now done entirely in CHOLMOD code.2006-09-06 Douglas Bates <bates@R-project.org>* src/Mutils.h: Remove functions that are no longer used.2006-09-04 Douglas Bates <bates@R-project.org>* src/dtCMatrix.c (dtCMatrix_validate): rename functions.* src/DEPS.mkf: update2006-09-02 Martin Maechler <maechler@stat.math.ethz.ch>* created branches/Matrix-for-R-2.3.x; on trunk: do* DESCRIPTION (Version): 0.9975-0(Depends): R (>= 2.4.0)2006-09-01 Douglas Bates <bates@R-project.org>* R/sparseMatrix.R: Added direct method to CsparseMatrix from graphNEL2006-09-01 Martin Maechler <maechler@stat.math.ethz.ch>* R/sparseMatrix.R: add coercion from "ANY" to "sparseMatrix"* R/denseMatrix.R: add coercion from "ANY" to "denseMatrix"* R/Matrix.R ([): use nargs() to disambiguate M[i] and M[i,]2006-08-31 Martin Maechler <maechler@stat.math.ethz.ch>* R/sparseMatrix.R (Arith): moved Arith group method one-level upfrom "dsparse" to "sparse" and now go via "Csparse" instead of "dgC"* R/dsparseMatrix.R: ditto* R/Csparse.R: ditto2006-08-31 Martin Maechler <maechler@stat.math.ethz.ch>* R/dMatrix.R (Compare): improve availability of "<", etc* R/Auxiliaries.R (asTuniq): new; also make use of R 2.4.x print(*,max)2006-08-30 Martin Maechler <maechler@stat.math.ethz.ch>* R/dgCMatrix.R: aargh: "Arith(<dgC>, numeric)" was wrong becauseof a 0-index which was used as 1-index (..hmm)* R/sparseMatrix.R (prSpMatrix): fix printing an all-0 sparse Matrix* R/Auxiliaries.R (all0, is0): for 0-testing in presence of NA's* R/Auxiliaries.R (isTriMat): use all0() for 0-testing.(.is.diagonal): ditto* R/lgTMatrix.R: as("matrix", "lgTMatrix"): warn about NA's* R/Matrix.R (Matrix): also work for NA data2006-08-28 Martin Maechler <maechler@stat.math.ethz.ch>* R/Matrix.R (Matrix): + 'forceCheck' argument; dimnames settingin all cases.2006-08-27 Douglas Bates <bates@R-project.org>* src/dense.[ch],init.c, R/ddenseMatrix.R, man/band.Rd(ddense_band): Added triu, tril and band for ddenseMatrix objects.2006-08-25 Martin Maechler <maechler@stat.math.ethz.ch>* src/Mutils.c (dup_mMatrix_as_dgeMatrix): added all subclasses ofsubclasses of "ddenseMatrix"* src/init.c et al: outcomment dtrM*_as_dge* and dsyM*_as_dge*_* R/ddenseMatrix.R et al: setAs("ddenseMatrix", "dgeMatrix", ..)instead of half dozen specialized ones.2006-08-25 Douglas Bates <bates@R-project.org>* R/lmer.R (qqmath method): Bug fix provided by Emmanuel Tillard<tillard@cirad.fr> - ordering standard errors to match effects.2006-08-24 Douglas Bates <bates@R-project.org>* src/lsCMatrix.c (lsCMatrix_trans): Remove lsCMatrix_chol basedon R_ldl.* R/lCholCMatrix.R,src/[dl]CholCMatrix.[ch],R_ldl.[ch],Metis_utils.[ch]: removed* src/dsCMatrix.c (dsCMatrix_to_dgTMatrix): use CHOLMOD* many files in ./R and ./src: Use more general version ofdup_mMatrix_as_dgeMatrix to simplify method definitions.* src/Mutils.c (dup_mMatrix_as_dgeMatrix): Add ddiMatrix,dtpMatrix, dspMatrix and dppMatrix conversions.2006-08-23 Douglas Bates <bates@R-project.org>* R/AllClass.R,lCholCMatrix.R,src/SOURCES_C.mkf,init.c,NAMESPACE:Remove classes lCholCMatrix and dCholCMatrix based on R_ldl code.* src/dgeMatrix.c: Ensure 'factors' slot exists in result ofdgeMatrix_crossprod (may need to do this in other places).* R/AllGeneric.R,dsCMatrix.R, src/dscMatrix.[ch]: Add Choleskygeneric and method for dsCMatrix. Use CHOLMOD for chol().2006-08-22 Douglas Bates <bates@R-project.org>* src/Mutils.c (dup_mMatrix_as_dgeMatrix): updated for generaltypes of classed Matrices, matrices or numeric or logical vectors.* src/init.c: register dup_mMatrix_as_dgeMatrix for coercions.* src/chm_common.c,Mutils.h (as_cholmod_factor): Move check_classto Mutils.h (as an inline) and change name to Matrix_check_class;fixes in as_cholmod_factor and chm_factor_to_SEXP.* src/dsCMatrix.[ch]: Use CHOLMOD for dsCMatrix_chol anddsCMatrix_matrix_solve. Comment out vestigial functions.* src/Csparse.c: use diag_P and uplo_P macros.2006-08-21 Douglas Bates <bates@R-project.org>* src/lmer.c (internal_mer_RZXinv): Fix memory leak caught byvalgrind.* tests/matprod.R: Add tests to verify that 'solve' and '%*%' areinverses.* src/sparseQR.c (sparseQR_validate): add new validation test, fix-Wall warnings.* src/dppMatrix.c,dtrMatrix.c,dgCMatrix.c,dgeMatrix.c,dspMatrix.c:Use dup_mMatrix_as_dgeMatrix.2006-08-20 Douglas Bates <bates@R-project.org>* src/sparseQR.c: Fix thinko in sparseQR_resid_fitted.* tests/sparseQR.R: Added* man/sparseQR-class.Rd: Document methods for qr.* generics* R/sparseQR.R: Return correct # of coefs; fix cut-and-paste errors2006-08-19 Douglas Bates <bates@R-project.org>* NAMESPACE, R/sparseQR.R, src/init.c,sparseQR.[ch],SOURCES_C.mkf:Added methods for sparseQR for qr.qy, qr.qty, qr.coef, qr.residand qr.fitted.* src/Mutils.[ch]: Added dup_mMatrix_as_dgeMatrix utility* src/dgCMatrix.c: Check for ordering before storing q in dgCMatrix_QR2006-08-18 Martin Maechler <maechler@stat.math.ethz.ch>* R/AllGeneric.R: add "qr" and "chol" generics; via 'trick' sincethe base version has no "..." argument.* R/sparseMatrix.R (prSpMatrix): fix the triangular unit diagonal case.* R/Matrix.R: define and* NAMESPACE: export as.numeric() and as.logical() methods.Let's hope these do not badly slow down something...Finally export the zapsmall() method.2006-08-17 Douglas Bates <bates@R-project.org>* src/dgCMatrix.[ch] (dgCMatrix_matrix_solve), src/init.c,R/dgCMatrix.R: solve methods for dgCMatrix and dense RHS.* src/dtCMatrix.c :Remove code that is no longer used* R/dtCMatrix.R: Use C code for diagU2N in CsparseMatrix classes2006-08-14 Douglas Bates <bates@R-project.org>* src/Csparse.[ch],init.c (Csparse_to_logical): Added utilitiesCsparse_to_logical and Csparse_symmetric_to_general.* R/dgCMatrix.R,dsCMatrix.R,Csparse.R : Consolidate generalcoercion methods between CsparseMatrix and TsparseMatrix.2006-08-14 Douglas Bates <bates@R-project.org>* R/dtCMatrix.R,dgCMatrix.R,Csparse.R src/init.c,dgCMatrix.[ch],Csparse.[ch],chm_common.c,dense.c : Use CHOLMOD code and methodsfor CsparseMatrix, TsparseMatrix, denseMatrix or matrix whenpossible.2006-08-12 Douglas Bates <bates@R-project.org>* src/chm_common.[ch],Csparse.[ch],Tsparse.[ch],CHMfactor.c,dtTMatrix.c,dgTMatrix.c,dgCMatrix.c,dsCMatrix.c,dtTMatrix.c, R/dsTMatrix.R,Tsparse.R,Csparse.R,dgTMatrix.R,dsCMatrix.R,lsCMatrix.R:generalize conversions between TsparseMatrix, CsparseMatrix,denseMatrix and matrix. Preserve triangularity property andpropagate Dimnames in the easy cases.2006-08-10 Douglas Bates <bates@R-project.org>* src/lmer.c: adjust checks in glmer_init for S4SXP* tests/validObj.R: check of all(eq) should be all(eq@x) - workedbefore S4SXP but for the wrong reasons.2006-08-08 Douglas Bates <bates@R-project.org>* src/Csparse.c (Csparse_crossprod): tcrossprod result has stype = -1.Later modified to return the upper triangle only.* R/dgTMatrix.R: Remove vestigial crossprod and tcrossprod methods.2006-08-07 Douglas Bates <bates@R-project.org>* src/Csparse.c (Csparse_crossprod): Set stype on result to avoidR-level conversion to a sparse symmetric class.* R/Tsparse.R,R/Csparse.R (crossprod and tcrossprod methods):Remove conversion to sparse symmetric classes (now done in C code).2006-08-07 Martin Maechler <maechler@stat.math.ethz.ch>* R/dgCMatrix.R: disable old crossprod and tcrossprod methods* man/band.Rd: adapt the \dontshow{} unit test.2006-08-07 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Version): 0.995-14 for CRAN* tests/other-pkgs.R: oops: library(Matrix) outside *if* !* R/sparseMatrix.R (Tsp2grNEL): fixed Tsparse -> graph coercion* tests/other-pkgs.R: more checks, sparseMatrix -> graph* R/Auxiliaries.R (as_Tsparse, as_Rsparse): new* R/Tsparse.R (tril, triu, band): methods* R/dgRMatrix.R (tril, ...): ditto* man/band.Rd: ditto2006-08-04 Martin Maechler <maechler@stat.math.ethz.ch>* R/Matrix.R (head, tail): directly use utils:::head.matrixto be up-to-date automatically.2006-08-03 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Version): 0.995-13 to be released to CRAN* DESCRIPTION (Lazydata): no, instead of 'yes' because it fails for:* data/CAex.R, inst/external/CAex_slots.rda: replacing data/CAex.rda* data/KNex.R, inst/external/KNex_slots.rda: replacing data/KNex.rdasuch that the S4 objects are always created by the current versionof R and 'Matrix' class definitions.2006-08-01 Douglas Bates <bates@R-project.org>* R/lmer.R (LMEoptimize method), tests/lmer.R,inst/external/test3comp.rda: Added warnings for convergence onboundary and test cases.* src/lmer.c (mer_postVar): Modified to return the variances thatare marginal to the fixed effects, not conditional on them (whichis what the bVar slot contents represent).2006-07-31 Douglas Bates <bates@R-project.org>* NAMESPACE, src/lmer.c, R/lmer.R (hatTrace): Add the hatTracefunction which calls the C function mer_hat_trace2.* man/ranef.Rd: Include description of "postVar" argument andproducing a caterpillar plot.2006-07-31 Martin Maechler <maechler@stat.math.ethz.ch>* NAMESPACE: change "correlation" to "corMatrix"* R/AllClass.R: to avoid clash with S3 class in 'nlme'.* R/dpoMatrix.R: ditto* R/lmer.R: ditto2006-07-28 Douglas Bates <bates@R-project.org>* src/lmer.c (internal_mer_RZXinv): Split the calculation of theRZXinv slot's contents into a separate internal function that canbe used in mer_hat_trace.2006-07-22 Martin Maechler <maechler@stat.math.ethz.ch>* R/Matrix.R: Coercions "Matrix" -> (sparse|dense)Matrixvia new smart* R/Auxiliaries.R (as_Csparse, as_dense, .M.shapse): newutility functions.2006-07-21 Martin Maechler <maechler@stat.math.ethz.ch>* R/Csparse.R (tril, triu, band): do return *triangular* classedmatrices when appropriate; band() even symmetric ones.(replCmat): extend to potentially all "CsparseMatrix"* R/Tsparse.R (replTmat): extend to all "TsparseMatrix"; henceallow subassignment for special sparse matrices.* R/Auxiliaries.R (as_geClass): factor out the .M.kind() functionality* src/lmer.c (mer_MCMCsamp, glmer_MCMCsamp): new 'verbose'argument; in glmer_*(): print only if(verbose).speed-optimize a few places by moving REAL(.) out of loops.* src/lmer.h, src/init.h, R/lmer.R: related to above.2006-07-20 Martin Maechler <maechler@stat.math.ethz.ch>* R/Matrix.R("["): disable ("Matrix", i = "logical", j = "missing"),since that wrongly triggers also for M[ logi , ]* R/denseMatrix.R: "[" methods now also work e.g. when indexinga symmetric matrix that results in a non-symmetric one.* R/Auxiliaries.R (as_geClass): new function used in "[" above.* R/dMatrix.R: make round(M) work as round(M, 0)* R/dgTMatrix.R (image): coordinate system and axis now use1-based indices, not 0-based ones.* R/Tsparse.R (.ind.prep for "["): get rid of max(<empty>) warning.* tests/indexing.R: test it.* NAMESPACE: export isSymmetric(); has been a generic in "base" for a while;* man/isSymmetric-methods.Rd: and document it.* R/SparseM-conv.R: added coercion methods for some 'SparseM' matrices.* man/SparseM-conv.Rd: docu them* tests/other-pkgs.R: renamed from tests/graph.R and add examplefor 'SparseM' conversions2006-07-17 Douglas Bates <Douglas.Bates@R-project.org>* R/Matrix.R (head): added head() and tail() methods.2006-07-17 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Version): 0.995-12 released to CRAN2006-07-15 Martin Maechler <maechler@stat.math.ethz.ch>* tests/simple.R: add check for correct dsT -> dgT coercion;add check for correct printing of symmetric sparse matrices.* R/Auxiliaries.R (non0ind): return *all* non-0 entry indices alsofor sparse symmetric matrices.* src/dsTMatrix.c (dsTMatrix_as_dgTMatrix): do not copy thediagonal twice.2006-07-11 Douglas Bates <Douglas.Bates@R-project.org>* src/dsTMatrix.c (dsTMatrix_as_dgTMatrix): Fix a case of INTEGERbeing applied to the x slot (detected by Brian Ripley).2006-07-10 Martin Maechler <maechler@stat.math.ethz.ch>* src/dgCMatrix.c (dgCMatrix_validate): 'p' slot must have correct length.* R/Auxiliaries.R (isTriC): fix buglet (we were 1-based!)2006-07-08 Martin Maechler <maechler@stat.math.ethz.ch>* src/lgCMatrix.c (lgCMatrix_diag): new function* R/lgCMatrix.R (diag): for new method* R/AllClass.R (TsparseMatrix): do use Tsparse_validate==> construction of illegal "*gTMatrix" via new() shouldnow be much less easy:* tests/Class+Meth.R: assertError() for some illegal "dgT*"* R/Matrix.R (Matrix): Matrix(0, nrow,ncol) now "goes sparse"directly.* man/Matrix.Rd: documents it.2006-07-06 Douglas Bates <bates@R-project.org>* src/pedigree.c (pedigree_inbreeding): Correction ininitialization. This function is not currently being used and isnot fully tested.* NAMESPACE, R/{AllClass.R,lmer.R}, src/{init.c,lmer.c}:Introduced the glmer class. Added code for mcmcmsamp on glmerobjects. Modified validity check on pedigree objects to accountfor nonparallel patterns of missingness of parents.* man/{lmer-class.Rd,mcmcsamp.Rd}: Update documentation for glmerclass.2006-07-01 Martin Maechler <maechler@stat.math.ethz.ch>* R/pMatrix.R: coercion pMatrix -> Tsparse2006-06-12 Douglas Bates <bates@R-project.org>* DESCRIPTION (Version): 0.995-11 released to CRAN* R/lmer.R (mcmcsamp method): Corrected arrangments of names onthe output from mcmcsamp.2006-06-10 Douglas Bates <bates@R-project.org>* R/lmer.R (simulestimate): added C code for calculating the traceof the hat matrix.2006-06-09 Martin Maechler <maechler@stat.math.ethz.ch>* R/diagMatrix.R (setAs): define coercion methods to sparse matrixclasses.* R/sparseMatrix.R etc: multiplication of diagonal and sparse2006-06-08 Martin Maechler <maechler@stat.math.ethz.ch>* R/dgTMatrix.R (colSums): etc. All four ofcolSums(), rowSums(), colMeans(), rowMeans() now should work forall "Matrices".2006-06-01 Douglas Bates <bates@stat.wisc.edu>* R/lmer.R (panel.ci): Add a reference line at zero and abackground grid to the qqmath plot of ranef.lmer.2006-05-30 Douglas Bates <bates@stat.wisc.edu>* R/lmer.R (expandSlash): Functions (non-exported) to allow nestedgrouping factors to be specified in the formula as (1|foo/bar).2006-05-27 Douglas Bates <bates@stat.wisc.edu>* R/lmer.R (findbars and others): Change check of is.numeric to!is.language to resolve the bug reported by Jacob Wegelin.* src/pedigree.c (pedigree_inbreeding): Initial implementation ofcode to evaluate inbreeding coefficients without calculating T,based on code in Sargolzaei and Iwaisaki's paper.2006-05-27 Douglas Bates <bates@stat.wisc.edu>* R/{lmer.R,AllGeneric.R}, src/{init.c,lmer.[ch]}: Added localgeneric and mer methods for isNested and denomDF. This denomDF wasan attempt to emulate that in lme but I don't think that makessense. Use the trace of the hat matrix instead.2006-05-17 Martin Maechler <maechler@stat.math.ethz.ch>* R/sparseMatrix.R: Matrix <-> graph methods: can no longer usethe C code depending on a slot structure that's no longer valid.* src/dgTMatrix.c: ditto (also: src/init.c src/dgTMatrix.h)2006-05-17 Douglas Bates <bates@stat.wisc.edu>* R/{AllGeneric.R,Csparse.R},man/band.Rd,NAMESPACE: changed nameof lowerTriMatrix generic and methods to tril (also upper to triu)and added a general band extractor.2006-05-16 Douglas Bates <bates@stat.wisc.edu>* R/pedigree.R (pedigree): Replace sire and dam values outside theallowable range with NAs. Added a corresponding check in thevalidity check for the pedigree class.* R/[CT]sparse.R ([t]crossprod): The result of single-argumentcrossprod methods now inherits from symmetricMatrix.2006-05-15 Douglas Bates <bates@stat.wisc.edu>* R/AllGeneric.R (lowerTriMatrix): Added (but did not export)generics lowerTriMatrix and upperTriMatrix along with methods forthe Csparse virtual class. Also added a C function Csparse_bandthat implements these methods by calling cholmod_band.2006-05-15 Martin Maechler <maechler@stat.math.ethz.ch>* R/Tsparse.R ("["): column or row subsetting; @Dimnames[k] goterased when it was NULL. This led to invalid subselections!2006-04-25 Douglas Bates <bates@stat.wisc.edu>* R/dtCMatrix.R: avoid coercion of dtCMatrix object to dgCMatrixin method for "t" so as not to lose the unit diagonal property.2006-04-19 Douglas Bates <bates@stat.wisc.edu>* R/lmer.R, R/AllGeneric.R, NAMESPACE: Remove the postVar genericand methods. This is now an option to the ranef method for themer class.* src/cs_utils.c: Ensure that the nz component is -1 for acompressed column-oriented matrix. Minor formatting cleanup.* man/lmer-class.Rd: Document the qqmath method for ranef.lmerobjects.2006-04-19 Martin Maechler <maechler@stat.math.ethz.ch>* R/Auxiliaries.R (diagU2N): new for the solve() methods in* R/dtCMatrix.R: where dgC -> dgT coercion now preserves diag = "U".2006-04-15 Douglas Bates <bates@stat.wisc.edu>* src/cs.[ch],src/cs_utils.[ch] : Added Tim Davis' CSparse libraryin cs.[ch] and utilities to interface to that code in cs_utils.[ch].* R/dtCMatrix.R, src/dtCMatrix.[ch] : CSparse-based solve methodsfor the dtCMatrix class.2006-04-12 Douglas Bates <bates@stat.wisc.edu>* R/pedigree.R, R/AllClass.R, NAMESPACE: added a pedigree classand methods for it.2006-04-12 Martin Maechler <maechler@stat.math.ethz.ch>* R/dgCMatrix.R: add storage.mode(.) <- "double" for "matrix"arguments, such that M %*% 1:6 now works* Tests/matprod.R: test the above2006-04-03 Douglas Bates <bates@stat.wisc.edu>* R/lmer.R (qqmath,ranef.lmer-method): added a qqmath method forthe ranef.lmer class.* R/AllClass.R, NAMESPACE, R/lmer.R: Added a postVar generic andmethods to extract the posterior variances from the bVar slot.2006-03-30 Martin Maechler <maechler@stat.math.ethz.ch>* R/dtCMatrix.R: allow coercion from dgC* to triangular (dtC*)* R/dsCMatrix.R: and symmetric (dsC*) 'Csparse' matrices.* R/Tsparse.R: Tsparse* -> Csparse* coercion now works and is tested in* tests/simple: (extended)* R/sparseMatrix.R (isTriangular): now using much improved* R/Auxiliaries.R (isTriC): new triangularity check for *CMatrix2006-03-23 Douglas Bates <bates@stat.wisc.edu>* src/dsyMatrix.c (dsyMatrix_as_dspMatrix): Propagate DimNames(problem report from Franklin Parlamis). This should be donegenerally.2006-03-21 Douglas Bates <bates@stat.wisc.edu>* R/AllClass.R,lmer.R: Change the name of the lmer.ranef class toranef.lmer (like summary.lmer). Add the coef.lmer class andupdate the plot methods.2006-03-20 Douglas Bates <bates@stat.wisc.edu>* R/lmer.R (resid and ranef methods): Added methods for the"residuals" and "resid" generic but only for linear mixed modelfits. Changed the ranef method to return a list of data frames sothat the plot methods now work.2006-03-16 Douglas Bates <bates@bates2>* src/dpoMatrix.c (dpoMatrix_chol): Require n > 0 in call todpotrf - otherwise the BLAS on Mac OS X complains and quits.* DESCRIPTION (Date): New release2006-03-15 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Version): 0.995-6 -- to be released to CRAN* data/KNex.rda: replacing 'mm' and 'y' by KNex <- list(mm=mm, y=y)* man/KNex.Rd: and other help files* tests/*.R: several ones needed adaption* inst/doc/Comparisons.Rnw: ditto2006-03-11 Martin Maechler <maechler@stat.math.ethz.ch>* R/dgCMatrix.R (replCmat): "[<-" methods for dgCMatrix* tests/indexing.R: tests for new [<- methods for sparse matrices.2006-03-10 Martin Maechler <maechler@stat.math.ethz.ch>* R/dgTMatrix.R (replTmat): "[<-" methods for dgTMatrix* R/Tsparse.R (.ind.prep): fix out-of-range indexing2006-03-08 Martin Maechler <maechler@stat.math.ethz.ch>* R/dMatrix.R: enable things like M [ M < 10 ]* R/dgeMatrix.R: implement it2006-03-06 Martin Maechler <maechler@stat.math.ethz.ch>* R/AllClass.R: define "summary.mer" and "*.lmer"* R/lmer.R (summary): summary(<mer>) computes & returns the above;* R/lmer.R (show): now works with summary()2006-03-04 Martin Maechler <maechler@stat.math.ethz.ch>* R/dgCMatrix.R: finally direct "Arith" dgC o dgC* R/Auxiliaries.R (WhichintersectInd): and other utilities tosupport the above2006-02-07 Douglas Bates <bates@stat.wisc.edu>* R/lmer.R (lmer): fix initial values of offset and weights for glm.fit.Use glmFit$prior.weights for weights in a glmm.Allow an option usePQL = FALSE to skip the PQL steps for theLaplace method (and, in time, the AGQ method).* src/lmer.c (mer_factor): Move downdating and factoring of XtXinto a separate function internal_mer_Xfactor to be able to callit from internal_bhat.2006-01-23 Martin Maechler <maechler@stat.math.ethz.ch>* tests/Class+Meth.R (tstMatrixClass): function for much bettertesting; now again of all actual classes.* src/Mutils.c (MAKE_TRIANGULAR_BODY, MAKE_SYMMETRIC_BODY):use macros and define make_d_matrix_* and make_i_matrix_*where _i_ is for the ldense routines:* src/ldense.c (ltrMatrix_as_lgeMatrix): provide functions* src/ldense.c (lsyMatrix_as_lgeMatrix):* R/ldenseMatrix.R: use the above in setAs(*,"lgeMatrix")2006-01-16 Martin Maechler <maechler@stat.math.ethz.ch>* R/Matrix.R (Matrix): has become much "smarter" now auto-producingmany different kinds of matrices.* R/*.R: quite a few new methods were needed for R CMD check withnew Matrix(). Very good for users playing around.2006-01-15 Martin Maechler <maechler@stat.math.ethz.ch>* src/dgeMatrix.c (dMatrix_validate): new* src/Mutils.c (dense_nonpacked_validate): new* src/dtrMatrix.c (dtrMatrix_validate): improved/fixed2006-01-14 Douglas Bates <bates@stat.wisc.edu>* R/AllClass.R (compMatrix), (generalMatrix): new virtual classes2006-01-07 Douglas Bates <bates@stat.wisc.edu>* DESCRIPTION (Version): 0.99-6 released to CRAN* src/dgBCMatrix.c (cscb_trcbsm): Fix due to Peter Dalgaard forsegfault in cases with multiple non-nested grouping factors.2006-01-03 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Version): 0.99-4 to be released to CRAN(Depends): also on 'utils'* R/AllClass.R (diagonalMatrix): new class with "ddi*" and "ldi*"* R/diagMatrix.R (Diagonal): constructor and methods fordiagonal matrices* R/ltTMatrix.R: new "minimal methods"2005-12-12 Martin Maechler <maechler@stat.math.ethz.ch>* R/AllGeneric.R (tcrossprod): 2-argument version; here, and forall methods (and help files).2005-12-09 Martin Maechler <maechler@stat.math.ethz.ch>* R/Auxiliaries.R (dimNamesCheck): fixed thinko -> bugfor case (dimn. op no_dimn.)2005-11-14 Douglas Bates <bates@stat.wisc.edu>* DESCRIPTION (Version): 0.99-2 released to CRAN2005-10-21 Douglas Bates <bates@stat.wisc.edu>* R/lmer.R (simulate method): Fixed a drop=FALSE problem reportedby Julian Faraway.2005-10-06 Martin Maechler <maechler@stat.math.ethz.ch>* R/Auxiliaries.R (try_as): new utility* R/sparseMatrix.R: use try_as() in coercion to original class2005-09-30 Martin Maechler <maechler@stat.math.ethz.ch>* src/dgCMatrix.c (double_to_csc): and dgeMatrix_to_csc()2005-09-29 Martin Maechler <maechler@stat.math.ethz.ch>* R/Auxiliaries.R (dimNamesCheck): added* R/Matrix.R (as.array), (as.vector): new2005-09-28 Martin Maechler <maechler@stat.math.ethz.ch>* R/Matrix.R (Matrix): get logical argument 'sparse' with a smartdefault.* R/AllClass.R: move 'factors' slot toplevel "Matrix";"pMatrix" now contains "sparseMatrix"2005-09-26 Martin Maechler <maechler@stat.math.ethz.ch>* tests/Class+Meth.R: new tests; t(t(m)) == m* src/dtCMatrix.c (tsc_transpose): add forgotten "diag" slot* src/dsTMatrix.c (dsTMatrix_as_dsCMatrix): bad typo (segfault!)* src/dtTMatrix.c (dtTMatrix_as_dtCMatrix): new* R/dspMatrix.R: typo in "t" method2005-09-18 Douglas Bates <bates@wisc.edu>* R/AllClass.R (TsparseMatrix), CsparseM* and RsparseM** R/Tsparse.R: instead of R/gTMatrix.R* R/Csparse.R: new* src/Tsparse.c (Tsparse_to_Csparse): new; -> cholmod_()* src/Tsparse.c: new; many trivial methods calling cholmod_()* src/Csparse.c (Csparse_to_Tsparse), transpose, (mat|cross)prod:via cholmod2005-09-16 Martin Maechler <maechler@stat.math.ethz.ch>* R/Auxiliaries.R (non0ind): new function using new C code* src/dgCMatrix.c (compressed_non_0_ij): new utility2005-09-15 Douglas Bates <bates@localhost.localdomain>* src/chm_common.h: header file required by all C sources thatcall CHOLMOD functions. It defines a cholmod_common structurecalled 'c' whose address is passed as the last argument to(virtually) every CHOLMOD function.* src/Pattern.c: Simple example of the use of CHOLMOD.* src/init.c: initialize and finalize the cholmod_common structure.* src/Makefile: Added source packages CHOLMOD UMFPACK AMD COLAMDLDL and CCOLAMD from the U. of Florida sparse matrix library.2005-09-08 Martin Maechler <maechler@stat.math.ethz.ch>* inst/test-tools.R: new file collecting the utility functions usedin ./tests/*.R* R/ddenseMatrix.R (cbind2): new methods for "numeric" and "matrix"* R/Matrix.R (cbind2): methods for NULL and missing2005-08-31 Martin Maechler <maechler@stat.math.ethz.ch>* R/AllClass.R: new "index" class for "[" and "[<-":First cut at "symmetricMatrix" and "triangularMatrix"* R/gTMatrix.R (.ind.prep): new function;Logical and character indexing now work too.* R/Matrix.R: cheap "[<-" methods for denseMatrix now work* tests/indexing.R: new, including *.Rout.save* tests/dgTMatrix.R: new2005-08-29 Douglas Bates <bates@wisc.edu>* src/dgTMatrix.c (graphNEL_as_dgTMatrix): Corrected the positionindicator pos not being updated. Also enforced upper triangularfor symmetric case. Need to coerce edges component of elements ofedge list - grr! (Why don't they define their classes cleanly?)2005-08-26 Martin Maechler <maechler@stat.math.ethz.ch>* R/Matrix.R: added first "[<-" methods; not yet functional* R/denseMatrix.R: ditto* man/Subassign-methods.Rd: new help file for these2005-08-25 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Version): 0.98-6* R/denseMatrix.R: new file for "[" fallback methods for all densematrices.2005-08-19 Martin Maechler <maechler@stat.math.ethz.ch>* src/lgCMatrix.c (lcsc_to_matrix): new; need foras( <logical>, "matrix")* R/pMatrix.R: coercion to "lgTMatrix"* R/gTMatrix.R: new virtual class to define "[" methods for.* man/gTMatrix-class.Rd:* General slight re-organization of where "[" methods are defined.more to come.2005-08-18 Douglas Bates <bates@wisc.edu>* DESCRIPTION (Version): 0.98-5 released to CRAN* src/dgTMatrix.c (graphNEL_as_dgTMatrix): add first graphNEL methods* .....2005-08-18 Douglas Bates <bates@localhost.localdomain>* R/lmer.R: Corrected naming scheme in mcmcsamp to work with lmeror glmer objects.2005-08-17 Martin Maechler <maechler@stat.math.ethz.ch>* DESCRIPTION (Version): 0.98-4 : upload to CRAN2005-08-16 Douglas Bates <bates@localhost.localdomain>* R/HBMM.R: finish re-writing R-only code.2005-08-15 Douglas Bates <bates@localhost.localdomain>* man/externalFormats.Rd: move documentation for writeHB andwriteMM here.* src/mmio.c: replace inclusion of <malloc.h> by <stdlib.h>(suggested by Paul Roecker).* tests/validObj.R (assertError): Comment out test that is failingafter recent changes in r-devel.2005-08-11 Martin Maechler <maechler@stat.math.ethz.ch>* R/AllClass.R: intermediate virtual class "denseMatrix"* man/denseMatrix-class.Rd* NAMESPACE: export it, and also export* man/unused-classes.Rd: "iMatrix", "zMatrix" and "ldenseMatrix"2005-08-10 Douglas Bates <bates@wisc.edu>* DESCRIPTION (Version): 0.98-3 to CRAN* src/dtrMatrix.c (dtrMatrix_validate): fixed up validation andmatrix_solve code (which was really, really wrong).2005-08-07 Douglas Bates <bates@wisc.edu>* DESCRIPTION (Version): 0.98-2* R/HBMM.R (readHB), (readMM): read Matrix Market formats* R/lmer.R (abbrvNms): new* R/lmer.R (mcmcsamp): allow transformed parameters* src/HBMM.c (Matrix_writeMatrixMarket): Added read/write routinesfor the Harwell-Boeing and the MatrixMarket formats.2005-08-04 Martin Maechler <maechler@stat.math.ethz.ch>* man/dtrMatrix-class.Rd: add examples* man/dtpMatrix-class.Rd: ditto; plus note about PROBLEM* TODO: note the dtpMatrix (docu) bug* R/zzz.R (.onLoad): assignInNamespace("as.matrix", *, "base")in order to ensure that new as.matrix() is used by old functions,e.g., svd(), qr(), eigen(), dist(),..;apply(), also matplot() or pairs().2005-08-03 Martin Maechler <maechler@stat.math.ethz.ch>* R/lmer.R: add 'fixme' comments and move the linear vs glm check;add comments about 'control' / lmerControl() arguments2005-07-27 Douglas Bates <bates@wisc.edu>* man/sleepstudy.Rd: Added the sleep data set.* DESCRIPTION (Version): 0.98-1 released to CRAN2005-07-12 Douglas Bates <bates@wisc.edu>* man/sleepstudy.Rd: Added the sleep data set.* R/lmer.R (glmmMCMC): Added PACKAGE = "Matrix" in a couple of.Call calls that were producing spurious output.2005-07-05 Douglas Bates <bates@wisc.edu>* R/lmer.R (lmer): stored updated variance component estimates inmer object for the generalized model. (Bug reported by RenaudLancelot).2005-07-03 Douglas Bates <bates@wisc.edu>* src/lmer.c (glmer_devAGQ): Added AGQ for single grouping factor,unidimensional case.2005-06-08 Douglas Bates <bates@wisc.edu>* DESCRIPTION (Version): 0.96-1* moved lmer-class' R and C code moved from lme4 to here2005-06-04 Douglas Bates <bates@wisc.edu>* R/dgCMatrix.R: Call to csc_matrix_mm used undefined arguments(reported by Guissepe Ragusa <gragusa@ucsd.edu>)2005-06-02 Douglas Bates <bates@wisc.edu>* src/Makefile.win: Forgot to update this when Makefile changed.2005-05-11 Douglas Bates <bates@wisc.edu>* src/dgCMatrix.c (csc_transpose): Simplified function fixing abug reported by Kurt Hornik and Michael Hahsler.2005-05-10 Douglas Bates <bates@wisc.edu>* src/lgCMatrix.c (Matrix_lgClgCmm): Implementation of methods forlogical sparse matrices. These will also be used in the symbolicanalysis for lmer objects.* src/dsCMatrix.c (dsCMatrix_matrix_solve): Copied the dimensionsof b to the result. Fixes bug reported by Jean.Coursol@math.u-psud.fr2005-05-06 Douglas Bates <bates@wisc.edu>* src/dgeMatrix.c (dgeMatrix_colsums): Added an implementation ofcolMeans, colSums, rowMeans and rowSums.2005-04-18 Douglas Bates <bates@wisc.edu>* src/lgCMatrix.[ch]: code for _validate method and stub formultiplication operation.* src/dgeMatrix.c (dgeMatrix_matrix_solve): Passing wrong argumentto dgetrs.* src/init.c: Fix cut-and-paste error in definition ofdgeMatrix_matrix_solve* src/{many files}: Tighten code by using ALLOC_SLOT.2005-04-15 Douglas Bates <bates@wisc.edu>* R/AllClass.R: Add lgTMatrix and lgCMatrix classes* DESCRIPTION: Eliminate import of stats.2005-04-06 Douglas Bates <bates@wisc.edu>* R/AllClass.R : add logical sparse matrix classes2005-04-01 Martin Maechler <maechler@stat.math.ethz.ch>* R/dgTMatrix.R: add "[" method for triplet matrices* R/sparseMatrix.R: and other sparse ones; --> add show() for sparse2005-03-31 Douglas Bates <bates@wisc.edu>* DESCRIPTION (Version): release 0.95-5 to CRAN* R/dMatrix.R: add %*%, crossprod and solve "fallback" methods* R/sparseMatrix.R: %*%, crossprod()* R/dgeMatrix.R: more "fallback" methods for numeric/dense matrices* man/*.Rd: move method definitions to 'Matrix' and 'dMatrix'* src/lmer.c (lmer_fitted): fix thinko2005-03-26 Martin Maechler <maechler@stat.math.ethz.ch>* R/AllClass.R: add two virtual sparse classes ``on top''2005-03-24 Martin Maechler <maechler@stat.math.ethz.ch>* R/AllClass.R (setClass): use "VIRTUAL" for the virtual classes;correspondingly fix examples and tests/ since new()doesn't work for virtual classes.2005-03-17 Martin Maechler <maechler@stat.math.ethz.ch>* R/Matrix.R (as.matrix): method and one for unname()* tests/dpoMatrix.R: tests should now be less platform dependent;also run for R 2.1.0; using as.matrix()2005-03-15 Douglas Bates <bates@wisc.edu>* R/pMatrix.R: "pMatrix" class added* ....2005-03-14 Douglas Bates <bates@wisc.edu>* R/dtpMatrix.R: Add unpack method and an example.* src/dsyMatrix.c (dsyMatrix_trf): Add BunchKaufman factorizationof general symmetric matrices and associated S4 methods.2005-03-10 Martin Maechler <maechler@stat.math.ethz.ch>+2005-03-05 Martin Maechler <maechler@stat.math.ethz.ch>* R/dgeMatrix.R (setAs): and many other files: more coercion,crossprod() and "%*%" methods added; tests, too.* tests/matprod.R: new, for testing these2005-03-03 Douglas Bates <bates@wisc.edu>* src/lmer.c (lmer_fitted): Added.2005-03-02 Douglas Bates <bates@wisc.edu>* R/dsTMatrix.R: Conversion from dsTMatrix to dsCMatrix2005-02-28 Douglas Bates <bates@wisc.edu>* src/*.c,po/,inst/po: Internationalization and localization ofthe package.* src/ldl.[ch]: Removed these as their contents are referenced in theR_ldl.c file.* src/flame.[ch]: Removed these source files.* src/dtrMatrix.c (make_array_triangular): Move to Mutils* src/LU.[ch],src/init.c: absorb in factorizations* src/Mutils.h: prepare for internationalization* src/cblas.h: move the enum definitions to Mutils.h and removethis file2005-02-26 Martin Maechler <maechler@stat.math.ethz.ch>* R/dgeMatrix.R: provide "dimnames" and "dimnames<-" methods* R/dtrMatrix.R: fix t() method* R/dgeMatrix.R: define group methods "Arith", "Math", "Math2"* NAMESPACE: export them (and import generics from "methods")* tests/group-methods.R : and test them.* src/dtrMatrix.c (dtrMatrix_as_dgeMatrix): prevent seg.fault inborder case2005-02-24 Douglas Bates <bates@stat.wisc.edu>* DESCRIPTION (Version): 0.95-2 released to CRAN* src/dgBCMatrix.c:* src/lmer.c: many changes* ...2005-02-04 Martin Maechler <maechler@stat.math.ethz.ch>* R/Matrix.R: add more sophisticated show() method.2005-02-02 Douglas Bates <bates@stat.wisc.edu>* */* : almost complete reorganization of classes.2005-01-26 Douglas Bates <bates@wisc.edu>* R/AllGeneric.R: Added matrix exponential generic expm and a methodfor the geMatrix class.2005-01-24 Douglas Bates <bates@wisc.edu>* src/Makefile (clean): Remove *.a and *.so* man/cscBlocked-class.Rd: Remove reference to the lmer-class.2005-01-23 Douglas Bates <bates@wisc.edu>* src/lmer.c (Lind): Definition of Lind was backwards. This onlyhad an effect in cases with more than 2 grouping factors.2005-01-03 Douglas Bates <bates@wisc.edu>* src/lmeRep.c (lmer_variances): change from lmeRep to lmer2004-12-23 Douglas Bates <bates@wisc.edu>* src/init.c (R_init_Matrix): Reorder calls to R_registerRoutinesand R_useDynamicSymbols (suggested by B.D.Ripley).2004-12-14 Douglas Bates <bates@wisc.edu>* R/sscMatrix.R: Add determinant methods* src/triplet.[ch],src/init.c (triplet_to_matrix): Add a coercionfor tripletMatrix to matrix.2004-12-13 Douglas Bates <bates@wisc.edu>* R/AllClass.R (.onLoad): Eliminate the bbCrosstab class, which isno longer used.* src/R_ldl.c: Created an R-specific version of the ldl.[ch] fileswith dynamic allocation of scratch arrays.* src/ssclme.c (ssclme_copy_ctab): Fixed bug in creation of ZtZfor multivariate random effects with multiple grouping factors.Fixes part but not all of #15.2004-12-03 Douglas Bates <bates@wisc.edu>* src/lmeRep.c (lmeRep_factor): order of operations for multiplescalar grouping factors corrected.2004-11-29 Douglas Bates <bates@wisc.edu>* src/bCrosstab.c: remove diag_update which is no longer used2004-11-16 Douglas Bates <bates@wisc.edu>* src/Metis_utils.c: Move metis.h include to C sources so that the.h file can be included.2004-11-12 Douglas Bates <bates@wisc.edu>* src/LU.c,geMatrix.c,trMatrix.c, etc.:Complete allocation of slots in NEW_OBJECT.* src/Mutils.h: Moved list of symbols to an include file2004-11-11 Douglas Bates <bates@wisc.edu>* src/geMutils.c (Matrix_init): remove unused function2004-11-10 Douglas Bates <bates@wisc.edu>* src/cscMatrix.c (csc_to_imagemat): removed unused function2004-11-05 Douglas Bates <bates@wisc.edu>* src/Makefile.win (SOURCES_C): Keep consistent with Makefile2004-10-27 Douglas Bates <bates@wisc.edu>* R/pdmatrix.R: remove PACKAGE="Matrix" in .Call calls2004-10-04 Douglas Bates <bates@wisc.edu>* src/init.c: Created R_init_Matrix and added registration of Croutines.2004-10-02 Douglas Bates <bates@wisc.edu>* R/tripletMatrix.R: Force a require(lattice) for the image methods.2004-06-15 Douglas Bates <bates@wisc.edu>* man/trMatrix-class.Rd: Escape the % chars in .Rd files.2004-04-20 Douglas Bates <bates@stat.wisc.edu>* src/Makefile.win ($(SHLIB)): Modifications per Uwe Ligges.2004-04-19 Douglas Bates <bates@stat.wisc.edu>* src/ssclme.c (ssclme_update_mm): fix logic error inssclme_update_mm2004-04-18 Douglas Bates <bates@stat.wisc.edu>* src/ssclme.c (ssclme_coef, ssclme_coefGets): Create consistencyin the order of unconstrained and constrained parameters.(ssclme_gradient): Added the gradients (not yet correct formultidimensional, unconstrained case).2004-04-14 Douglas Bates <bates@stat.wisc.edu>* src/ssclme.c (ssclme_EMsteps): Fix logic in REML update* src/Makefile.win: Remove unneeded ranlib call2004-04-12 Douglas Bates <bates@stat.wisc.edu>* DESCRIPTION (Version): New release* src/Makefile.win: Update Makefile.win to umfpack removal.2004-04-05 Douglas Bates <bates@bates2_home>* src/triplet_to_col.c: Create triplet_to_col as a nativefunction, not the version from umfpack. There were problems withthe configuration of UMFPACK for 64-bit processors and there wasonly one umfpack routine being used so I moved it here.2004-04-04 Douglas Bates <bates@bates2_home>* src/ssclme.c (ssclme_variances): New function.2004-03-28 Douglas Bates <bates@bates2_home>* src/ssclme.c (ssclme_fitted): Added function.2004-03-27 Douglas Bates <bates@bates2_home>* src/ssclme.c (ssclme_transfer_dimnames): Add new function tostore the dimnames in the XtX and bVar slots(ssclme_update_mm): Change the dimensions of the bVar slotcomponents and the returned value from ssclme_ranef.2004-03-18 Douglas Bates <bates@stat.wisc.edu>* R/{pdMat.R,pdIdent.R,pdLogChol.R,pdMatrixLog.R,pdNatural.R},src/{pdMat.c,pdIdent.c,pdLogChol.c,pdNatural.c},tests/{pdCompSymm.R,pdDiag.R,pdIdent.R,pdLogChol.R,pdNatural.R},man/{pdMat-class.Rd,pdmatrix-class.Rd,corrmatrix-class.Rd,pdDiag-class.Rd,pdIdent-class.Rd,pdNatural-class.Rd,pdLogChol-class.Rd,coefGets.Rd,pdCompSymm-class.Rd,pdfactor-class.Rd,pdFactor.Rd,pdMatrix.Rd,pdBlocked-class.Rd},AllClass.R,AllGeneric.R:Moved the pdMat classes from the lme4 package.2004-03-02 Douglas Bates <bates@stat.wisc.edu>* man/ssclme-class.Rd: Update definition and documentation of thessclme class to include the DIsqrt slot.* src/ssclme.c (ssclme_deviance): Modify order of computation(much faster using dsyrk, a level 3 BLAS routine).* src/Makefile (SUBLIBS): Change definition (K. Hornik)2004-02-28 Douglas Bates <bates@stat.wisc.edu>* tests/ssclme.R: Modify the test to account for the permutationof the levels of the grouping factors.2004-02-23 Douglas Bates <bates@stat.wisc.edu>* R/ssclme.R,src/ssclme.c (ssclme): Move slots of sscCrosstab slotdirectly into the ssclme class definition.2004-02-22 Douglas Bates <bates@stat.wisc.edu>* DESCRIPTION (Date): New release* man/ssclme-class.Rd: new file.* src/ssclme.c (ssclme_loglik): major revisions in design. Itworks and it's fast!2004-02-17 Douglas Bates <bates@stat.wisc.edu>* src/taucs/Makefile.win (lib): Change "ar" to "$(AR)" (B.Ripley)2004-02-16 Douglas Bates <bates@stat.wisc.edu>* DESCRIPTION (Date): New release* NAMESPACE: Don't export ssclme.* data/ScotsSec.rda, man/ScotsSec.Rd: Add Scottish secondaryschool data.2004-02-11 Douglas Bates <bates@stat.wisc.edu>* src/sscCrosstab.c (sscCrosstab): Added a row to the incidence tokeep track of the fixed-effects and the response. Counts alsogets an extra element, which is always one.* src/ldl.c: Include these routines from Tim Davis' LDL package.2004-02-10 Douglas Bates <bates@stat.wisc.edu>* src/cscMatrix.c (csc_transpose): new function* src/Mutils.c (csc_sort_columns): perm/iperm confusion corrected(csc_components_transpose): new function2004-02-06 Douglas Bates <bates@stat.wisc.edu>* src/triplet.c (triplet_validate): Fix Dim slot on generatedtriplets2004-01-30 Douglas Bates <bates@stat.wisc.edu>* R/sscCrosstab.R (sscCrosstab): Added sscCrosstab generator function.* src/LU.h (MATRIX_LU_H): Add #ifndef #define ... #endif to thisand all other .h files in src.* src/Makefile.win: This and other Makefile.win files contributedby Brian Ripley.2004-01-27 Douglas Bates <bates@stat.wisc.edu>* R/syMatrix.R: Added methods for "%*%".* R/Hilbert.R (Hilbert): Changed Hilbert function to return apoMatrix object.2004-01-26 Douglas Bates <bates@stat.wisc.edu>* man/sscChol-class.Rd,man/mm.Rd,man/y.Rd: Added man pages.2004-01-25 Douglas Bates <bates@bates2_home>* inst/doc/Introduction.Rnw,Comparisons.Rnw: Added vignettes.* R/csc.R: Convert all cscMatrix classes to use Dim slot insteadof nrow.2003-12-31 Douglas Bates <bates@stat.wisc.edu>* src/taucs/taucs.h: Moved taucs.h, amd.h, and umfpack.h intosubdirectories.2003-12-08 Douglas Bates <bates@stat.wisc.edu>* src/taucs.h: Accidently referred to global header filesinstead of local files.2003-12-04 Douglas Bates <bates@stat.wisc.edu>* R/AllClass.R: Lots of changes. Removed all the lapack++ codeand methods and replaced all classes with S4 classes.2003-04-19 Douglas Bates <bates@stat.wisc.edu>* R/det.R,man/det.Rd: Change name of det generic to determinant* src/R_LapackPP.cc: Change method of calculating determinants2003-02-03 Douglas Bates <bates@stat.wisc.edu>* DESCRIPTION (Version): removed empty data directory as requestedby CRAN maintainers. Changed version number and date.2002-10-23 Douglas Bates <bates@stat.wisc.edu>* src/laindex.h: Applied patches from Brian Ripley for compilationunder Windows.* Added configure.win and src/Makevars.win as requested by BrianRipley.2002-05-03 Douglas Bates <bates@stat.wisc.edu>* src/lamatrix.h: Removing pre-1.2.0 compatibility code per KurtHornik.2002-04-24 Douglas Bates <bates@stat.wisc.edu>* configure.ac: Replaced configure.in with configure.accontributed by Kurt Hornik.* aclocal.m4 (ac_clean_files): Replaced this with Kurt Hornik'sversion for R-1.5.02001-12-10 Douglas Bates <bates@stat.wisc.edu>* man/eigen.Rd: Removed the .Alias in the example