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 867, Fri Aug 19 16:59:46 2005 UTC revision 868, Fri Aug 19 17:01:11 2005 UTC
# Line 8  Line 8 
8  \alias{\%*\%,pMatrix,dgeMatrix-method}  \alias{\%*\%,pMatrix,dgeMatrix-method}
9  \alias{coerce,integer,pMatrix-method}  \alias{coerce,integer,pMatrix-method}
10  \alias{coerce,pMatrix,matrix-method}  \alias{coerce,pMatrix,matrix-method}
11    \alias{coerce,pMatrix,lgTMatrix-method}
12  \alias{solve,pMatrix,missing-method}  \alias{solve,pMatrix,missing-method}
13  \alias{t,pMatrix-method}  \alias{t,pMatrix-method}
14  \title{Permutation matrices}  \title{Permutation matrices}
# Line 41  Line 42 
42        This is enables typical \code{"pmatrix"} construction, given        This is enables typical \code{"pmatrix"} construction, given
43        a permutation vector of \code{1:n}, see the first example.}        a permutation vector of \code{1:n}, see the first example.}
44      \item{coerce}{\code{signature(from = "pMatrix", to = "matrix")}: ... }      \item{coerce}{\code{signature(from = "pMatrix", to = "matrix")}: ... }
45        \item{coerce}{\code{signature(from = "pMatrix", to = "lgTMatrix")}:
46          coercion to sparse logical matrix of class \code{\link{lgTMatrix-class}}.}
47      \item{solve}{\code{signature(a = "pMatrix", b = "missing")}: return      \item{solve}{\code{signature(a = "pMatrix", b = "missing")}: return
48        the inverse permutation matrix.}        the inverse permutation matrix.}
49      \item{t}{\code{signature(x = "pMatrix")}: return the transpose of      \item{t}{\code{signature(x = "pMatrix")}: return the transpose of
# Line 59  Line 62 
62  mm \%*\% pm1  mm \%*\% pm1
63  pm1 \%*\% mm  pm1 \%*\% mm
64  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
65    
66    as(pm1, "lgTMatrix")
67  }  }
68  \keyword{classes}  \keyword{classes}
69    

Legend:
Removed from v.867  
changed lines
  Added in v.868

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