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 1406, Mon Aug 21 15:20:45 2006 UTC revision 1407, Mon Aug 21 15:24:47 2006 UTC
# Line 8  Line 8 
8  \alias{\%*\%,Matrix,pMatrix-method}  \alias{\%*\%,Matrix,pMatrix-method}
9  \alias{\%*\%,pMatrix,Matrix-method}  \alias{\%*\%,pMatrix,Matrix-method}
10  \alias{coerce,integer,pMatrix-method}  \alias{coerce,integer,pMatrix-method}
11    \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,lgTMatrix-method}
14  \alias{coerce,pMatrix,TsparseMatrix-method}  \alias{coerce,pMatrix,TsparseMatrix-method}
# Line 41  Line 42 
42      \item{\%*\%}{\code{signature(x = "matrix", y = "pMatrix")} and other      \item{\%*\%}{\code{signature(x = "matrix", y = "pMatrix")} and other
43        signatures (use \code{showMethods("\%*\%", class="pMatrix")}): ... }        signatures (use \code{showMethods("\%*\%", class="pMatrix")}): ... }
44      \item{coerce}{\code{signature(from = "integer", to = "pMatrix")}:      \item{coerce}{\code{signature(from = "integer", to = "pMatrix")}:
45        This is enables typical \code{"pmatrix"} construction, given        This is enables typical \code{"pMatrix"} construction, given
46        a permutation vector of \code{1:n}, see the first example.}        a permutation vector of \code{1:n}, see the first example.}
47        \item{coerce}{\code{signature(from = "numeric", to = "pMatrix")}:
48          a user convenience, to allow \code{as(perm, "pMatrix")} for
49          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 = "lgTMatrix")}:
52        coercion to sparse logical matrix of class \code{\linkS4class{lgTMatrix}}.}        coercion to sparse logical matrix of class \code{\linkS4class{lgTMatrix}}.}
# Line 53  Line 57 
57        permutation matrix).}        permutation matrix).}
58    }    }
59  }  }
60    \note{
61      The inverse of the typical \code{"pMatrix"} constructor,
62      \code{P <- as(ip, "pMatrix")} is simply \code{ip <- P@perm}.
63    }
64  %\seealso{}  %\seealso{}
65  \examples{  \examples{
66  (pm1 <- as(as.integer(c(2,3,1)), "pMatrix"))  (pm1 <- as(as.integer(c(2,3,1)), "pMatrix"))
# Line 75  Line 83 
83  p10[1:7, 1:4] # gives an "lgTMatrix" (most economic!)  p10[1:7, 1:4] # gives an "lgTMatrix" (most economic!)
84  }  }
85  \keyword{classes}  \keyword{classes}
   

Legend:
Removed from v.1406  
changed lines
  Added in v.1407

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