SCM

SCM Repository

[matrix] Diff of /pkg/man/pMatrix-class.Rd
ViewVC logotype

Diff of /pkg/man/pMatrix-class.Rd

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

revision 1547, Mon Sep 11 14:49:39 2006 UTC revision 1548, Mon Sep 11 22:13:07 2006 UTC
# Line 10  Line 10 
10  \alias{coerce,integer,pMatrix-method}  \alias{coerce,integer,pMatrix-method}
11  \alias{coerce,numeric,pMatrix-method}  \alias{coerce,numeric,pMatrix-method}
12  \alias{coerce,pMatrix,matrix-method}  \alias{coerce,pMatrix,matrix-method}
13  \alias{coerce,pMatrix,lgTMatrix-method}  \alias{coerce,pMatrix,ngTMatrix-method}
14  \alias{coerce,pMatrix,TsparseMatrix-method}  \alias{coerce,pMatrix,TsparseMatrix-method}
15  \alias{solve,pMatrix,missing-method}  \alias{solve,pMatrix,missing-method}
16  \alias{t,pMatrix-method}  \alias{t,pMatrix-method}
# Line 48  Line 48 
48        a user convenience, to allow \code{as(perm, "pMatrix")} for        a user convenience, to allow \code{as(perm, "pMatrix")} for
49        numeric \code{perm} with integer values.}        numeric \code{perm} with integer values.}
50      \item{coerce}{\code{signature(from = "pMatrix", to = "matrix")}: ... }      \item{coerce}{\code{signature(from = "pMatrix", to = "matrix")}: ... }
51      \item{coerce}{\code{signature(from = "pMatrix", to = "lgTMatrix")}:      \item{coerce}{\code{signature(from = "pMatrix", to = "ngTMatrix")}:
52        coercion to sparse logical matrix of class \code{\linkS4class{lgTMatrix}}.}        coercion to sparse logical matrix of class \code{\linkS4class{ngTMatrix}}.}
53      \item{solve}{\code{signature(a = "pMatrix", b = "missing")}: return      \item{solve}{\code{signature(a = "pMatrix", b = "missing")}: return
54        the inverse permutation matrix.}        the inverse permutation matrix.}
55      \item{t}{\code{signature(x = "pMatrix")}: return the transpose of      \item{t}{\code{signature(x = "pMatrix")}: return the transpose of
# Line 79  Line 79 
79  pm1 \%*\% mm  pm1 \%*\% mm
80  try(as(as.integer(c(3,3,1)), "pMatrix"))# Error: not a permutation  try(as(as.integer(c(3,3,1)), "pMatrix"))# Error: not a permutation
81    
82  as(pm1, "lgTMatrix")  as(pm1, "ngTMatrix")
83  p10[1:7, 1:4] # gives an "lgTMatrix" (most economic!)  p10[1:7, 1:4] # gives an "ngTMatrix" (most economic!)
84  }  }
85  \keyword{classes}  \keyword{classes}

Legend:
Removed from v.1547  
changed lines
  Added in v.1548

R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge