SCM

SCM Repository

[matrix] Diff of /pkg/man/Xtrct-methods.Rd
ViewVC logotype

Diff of /pkg/man/Xtrct-methods.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 1  Line 1 
1  \name{[-methods}  \name{[-methods}
2  \docType{methods}  \docType{methods}
3  \alias{[-methods}  \alias{[-methods}
4    \title{Methods for "[": Extraction or Subsetting in Package 'Matrix'}
5    %
6    \alias{[,Matrix,missing,missing,ANY-method}
7    \alias{[,Matrix,missing,numeric,missing-method}
8    \alias{[,Matrix,numeric,missing,missing-method}
9    \alias{[,Matrix,numeric,numeric,missing-method}
10    %
11    \alias{[,gTMatrix,numeric,missing,logical-method}
12    \alias{[,gTMatrix,missing,numeric,logical-method}
13    \alias{[,gTMatrix,numeric,numeric,logical-method}
14  %  %
15  \alias{[,dgTMatrix,missing,missing,ANY-method}  \alias{[,dgTMatrix,missing,missing,ANY-method}
16  \alias{[,dgTMatrix,missing,numeric,logical-method}  \alias{[,dgTMatrix,missing,numeric,logical-method}
# Line 10  Line 20 
20  \alias{[,dgTMatrix,numeric,numeric,logical-method}  \alias{[,dgTMatrix,numeric,numeric,logical-method}
21  \alias{[,dgTMatrix,numeric,numeric,missing-method}  \alias{[,dgTMatrix,numeric,numeric,missing-method}
22  %  %
 \alias{[,dsparseMatrix,missing,missing,ANY-method}  
23  \alias{[,dsparseMatrix,missing,numeric,logical-method}  \alias{[,dsparseMatrix,missing,numeric,logical-method}
 \alias{[,dsparseMatrix,missing,numeric,missing-method}  
24  \alias{[,dsparseMatrix,numeric,missing,logical-method}  \alias{[,dsparseMatrix,numeric,missing,logical-method}
 \alias{[,dsparseMatrix,numeric,missing,missing-method}  
25  \alias{[,dsparseMatrix,numeric,numeric,logical-method}  \alias{[,dsparseMatrix,numeric,numeric,logical-method}
26  \alias{[,dsparseMatrix,numeric,numeric,missing-method}  %
27  \title{Methods for "[": Extraction or Subsetting in Package 'Matrix'.  \alias{[,lsparseMatrix,missing,numeric,logical-method}
28  }  \alias{[,lsparseMatrix,numeric,missing,logical-method}
29    \alias{[,lsparseMatrix,numeric,numeric,logical-method}
30    %-------
31  \description{  \description{
32    Methods for \code{"["}, i.e., extraction or subsetting in package    Methods for \code{"["}, i.e., extraction or subsetting mostly of
33    \pkg{Matrix}.    matrices, in package \pkg{Matrix}.
34  }  }
35  \section{Methods}{  \section{Methods}{
36    There are more than these:    There are more than these:
37    \describe{    \describe{
38      \item{x = "dsparseMatrix", i = "missing", j = "missing", drop= "ANY"}{ ... }      \item{x = "Matrix", i = "missing", j = "missing", drop= "ANY"}{ ... }
39        \item{x = "Matrix", i = "numeric", j = "missing", drop= "missing"}{ ... }
40        \item{x = "Matrix", i = "missing", j = "numeric", drop= "missing"}{ ... }
41    
42      \item{x = "dsparseMatrix", i = "missing", j = "numeric", drop= "logical"}{ ... }      \item{x = "dsparseMatrix", i = "missing", j = "numeric", drop= "logical"}{ ... }
     \item{x = "dsparseMatrix", i = "missing", j = "numeric", drop= "missing"}{ ... }  
43      \item{x = "dsparseMatrix", i = "numeric", j = "missing", drop= "logical"}{ ... }      \item{x = "dsparseMatrix", i = "numeric", j = "missing", drop= "logical"}{ ... }
     \item{x = "dsparseMatrix", i = "numeric", j = "missing", drop= "missing"}{ ... }  
   
44      \item{x = "dsparseMatrix", i = "numeric", j = "numeric", drop= "logical"}{ ... }      \item{x = "dsparseMatrix", i = "numeric", j = "numeric", drop= "logical"}{ ... }
45  }}    }
46    }
47  \seealso{  \seealso{
48    \code{\link{Extract}} about the standard extraction.    \code{\link{Extract}} about the standard extraction.
49  }  }
50  \examples{  \examples{
51  str(m <- Matrix(round(rnorm(7*4),2), nrow = 7))  str(m <- Matrix(round(rnorm(7*4),2), nrow = 7))
52  ## wrongly looses class: m[]; error: m[1,1]  stopifnot(identical(m, m[]))
   
53  \dontshow{  \dontshow{
54   if(FALSE) {## still all fail   if(FALSE) {## FIXME: still all fail
55     ch[2,3]     m[2,3]
56     ch[1,]     m[1,]
57     ch[,2]     m[,2]
    pm[2,3]  
    pm[1,]  
    pm[,2]  
58   }   }
59  }  }
60  }  }

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 University of Wisconsin - Madison Powered By FusionForge