Generic methods and built-in functions for IterableMatrix objects
Usage
matrix_type(x)
storage_order(x)
# S4 method for IterableMatrix
show(object)
# S4 method for IterableMatrix
t(x)
# S4 method for IterableMatrix,matrix
%*%(x, y)
# S4 method for IterableMatrix
rowSums(x)
# S4 method for IterableMatrix
colSums(x)
# S4 method for IterableMatrix
rowMeans(x)
# S4 method for IterableMatrix
colMeans(x)
# S4 method for IterableMatrix
log1p(x)
log1p_slow(x)
# S4 method for IterableMatrix
expm1(x)
expm1_slow(x)
# S4 method for IterableMatrix,numeric
^(e1, e2)
pow_slow(x, exponent)
# S4 method for numeric,IterableMatrix
<(e1, e2)
# S4 method for IterableMatrix,numeric
>(e1, e2)
# S4 method for numeric,IterableMatrix
<=(e1, e2)
# S4 method for IterableMatrix,numeric
>=(e1, e2)
# S4 method for IterableMatrix
round(x, digits = 0)
# S4 method for IterableMatrix,numeric
*(e1, e2)
# S4 method for IterableMatrix,numeric
+(e1, e2)
# S4 method for IterableMatrix,numeric
/(e1, e2)
# S4 method for IterableMatrix,numeric
-(e1, e2)
Value
t()
Transposed object
x %*% y
: dense matrix result
rowSums()
: vector of row sums
colSums()
: vector of col sums
rowMeans()
: vector of row means
colMeans()
: vector of col means
Functions
matrix_type()
: Get the matrix data type (mat_uint32_t, mat_float, or mat_double for now)storage_order()
: Get the matrix storage order ("row" or "col")show(IterableMatrix)
: Display an IterableMatrixt(IterableMatrix)
: Transpose an IterableMatrixx %*% y
: Multiply by a dense matrixrowSums(IterableMatrix)
: Calculate rowSumscolSums(IterableMatrix)
: Calculate colSumsrowMeans(IterableMatrix)
: Calculate rowMeanscolMeans(IterableMatrix)
: Calculate colMeanslog1p(IterableMatrix)
: Calculate log(x + 1)log1p_slow()
: Calculate log(x + 1) (non-SIMD version)expm1(IterableMatrix)
: Calculate exp(x) - 1expm1_slow()
: Calculate exp(x) - 1 (non-SIMD version)e1^e2
: Calculate x^y (elementwise)pow_slow()
: Calculate x^y (elementwise, non-SIMD version)e1 < e2
: Binarize matrix according to numeric < matrix comparisone1 > e2
: Binarize matrix according to matrix > numeric comparisone1 <= e2
: Binarize matrix according to numeric <= matrix comparisone1 >= e2
: Binarize matrix according to matrix >= numeric comparisonround(IterableMatrix)
: round to nearest integer (digits must be 0)e1 * e2
: Multiply by a constant, or multiply rows by a vector length nrow(mat)e1 + e2
: Add a constant, or row-wise addition with a vector length nrow(mat)e1 / e2
: Divide by a constant, or divide rows by a vector length nrow(mat)e1 - e2
: Subtract a constant, or row-wise subtraction with a vector length nrow(mat)