SCM

SCM Repository

[matrix] Diff of /pkg/R/MatrixFactorization.R
ViewVC logotype

Diff of /pkg/R/MatrixFactorization.R

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1459, Tue Aug 29 07:18:18 2006 UTC revision 2157, Tue Mar 25 15:00:01 2008 UTC
# Line 11  Line 11 
11                cat("'MatrixFactorization' of ")                cat("'MatrixFactorization' of ")
12                str(object)                str(object)
13                })                })
14    setMethod("show", "BunchKaufman",
15              function(object) {
16                  cat("'Bunch-Kaufman' factorization of ")
17                  str(object)
18              })
19    setMethod("show", "pBunchKaufman",
20              function(object) {
21                  cat("packed 'Bunch-Kaufman' factorization of ")
22                  str(object)
23              })
24    
25    setMethod("dim", "MatrixFactorization", function(x) x@Dim)
26    
27    ## e.g., for (CHMfactor, <num>):
28    setMethod("solve", signature(a = "MatrixFactorization", b = "numeric"),
29              function(a, b, ...) callGeneric(a, Matrix(b)))
30    ## catch others, otherwise base::solve is.
31    setMethod("solve", signature(a = "MatrixFactorization", b = "ANY"),
32              function(a, b, ...) .bail.out.2("solve", class(a), class(b)))
33    setMethod("solve", signature(a = "MatrixFactorization", b = "missing"),
34              function(a, b, ...) .bail.out.1("solve", class(a)))

Legend:
Removed from v.1459  
changed lines
  Added in v.2157

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge