-
Notifications
You must be signed in to change notification settings - Fork 2
/
NAMESPACE
197 lines (147 loc) · 4.52 KB
/
NAMESPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
useDynLib(SparseArray)
import(methods)
importFrom(utils, packageVersion)
importFrom(stats, setNames, rnorm, rpois)
importClassFrom(Matrix, dgCMatrix, lgCMatrix, ngCMatrix,
dgRMatrix, lgRMatrix, ngRMatrix)
importFrom(Matrix, sparseMatrix, crossprod, tcrossprod)
import(BiocGenerics)
import(MatrixGenerics)
import(S4Vectors)
import(IRanges)
import(XVector)
import(S4Arrays)
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export S4 classes
###
exportClasses(
## SparseArray-class.R:
SparseArray, SparseMatrix,
## COO_SparseArray-class.R:
COO_SparseArray, COO_SparseMatrix,
## SVT_SparseArray-class.R:
NULL_OR_list, SVT_SparseArray, SVT_SparseMatrix,
## NaArray-class.R:
NaArray, NaMatrix
)
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export S3 methods
###
S3method(aperm, COO_SparseArray)
S3method(aperm, SVT_SparseArray)
S3method(aperm, NaArray)
S3method(as.array, COO_SparseArray)
S3method(as.array, SVT_SparseArray)
S3method(as.array, NaArray)
S3method(mean, SparseArray)
S3method(mean, NaArray)
S3method(range, COO_SparseArray)
S3method(range, SVT_SparseArray)
S3method(range, NaArray)
S3method(rowsum, dgCMatrix)
S3method(rowsum, SparseMatrix)
S3method(t, SVT_SparseMatrix)
S3method(t, NaMatrix)
### We also export them thru the export() directive so that (a) they can be
### called directly, (b) tab-completion on the name of the generic shows them,
### and (c) methods() doesn't asterisk them.
export(
aperm.COO_SparseArray,
aperm.SVT_SparseArray,
aperm.NaArray,
as.array.COO_SparseArray,
as.array.SVT_SparseArray,
as.array.NaArray,
mean.SparseArray,
mean.NaArray,
range.COO_SparseArray,
range.SVT_SparseArray,
range.NaArray,
rowsum.dgCMatrix,
rowsum.SparseMatrix,
t.SVT_SparseMatrix,
t.NaMatrix
)
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export S4 methods for generics not defined in SparseArray
###
exportMethods(
## Methods for generics defined in the base package:
dim, dimnames, "dimnames<-",
"[[",
as.array,
t,
which,
is.na, is.nan, is.infinite, anyNA,
any, all, min, max, range, sum, prod, # "Summary" group generic
mean,
var, sd,
nchar,
crossprod, tcrossprod, "%*%",
"+", "-", Arith, "!", Logic, Math, round, signif, Complex,
## Methods for generics defined in the methods package:
coerce, show,
Compare,
## Methods for generics defined in the BiocGenerics package:
cbind, rbind,
pmin, pmax,
type, "type<-",
## Methods for generics defined in the MatrixGenerics package:
colAnyNAs, rowAnyNAs,
colAnys, rowAnys, colAlls, rowAlls,
colMins, rowMins, colMaxs, rowMaxs, colRanges, rowRanges,
colSums, rowSums, colProds, rowProds, colMeans, rowMeans,
colSums2, rowSums2, colMeans2, rowMeans2,
colVars, rowVars, colSds, rowSds,
colMedians, rowMedians,
## Methods for generics defined in the S4Vectors package:
bindROWS,
## Methods for generics defined in the S4Arrays package:
rowsum, colsum, aperm, abind, tune_Array_dims, extract_array, is_sparse
)
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export non-generic functions
###
export(
## thread-control.R:
get_SparseArray_nthread, set_SparseArray_nthread,
## SparseArray-class.R:
sparsity,
## COO_SparseArray-class.R:
COO_SparseArray,
## SVT_SparseArray-class.R:
SVT_SparseArray, SparseArray,
## randomSparseArray.R:
randomSparseArray, randomSparseMatrix,
poissonSparseArray, poissonSparseMatrix,
## readSparseCSV.R:
writeSparseCSV, readSparseCSV, readSparseTable,
## NaArray-class.R:
NaArray
)
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### Export S4 generics defined in SparseArray, and corresponding methods
###
export(
## is_nonzero.R:
is_nonzero, nzcount, nzwhich, nzvals, "nzvals<-",
## COO_SparseArray-class.R:
nzcoo, nzdata,
## extract_sparse_array.R:
extract_sparse_array,
## read_block_as_sparse.R:
read_block_as_sparse,
## is_nonna.R:
is_nonna, nnacount, nnawhich, nnavals, "nnavals<-",
## NaArray-subsetting.R:
extract_na_array
)
### Same list as above.
exportMethods(
is_nonzero, nzcount, nzwhich, nzvals, "nzvals<-",
nzcoo, nzdata,
extract_sparse_array,
read_block_as_sparse,
is_nonna, nnacount, nnawhich, nnavals, "nnavals<-",
extract_na_array
)