/
NAMESPACE
42 lines (39 loc) · 1.11 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
import(methods)
importFrom("bigmemory", "typeof")
importFrom("bigmemory", "filebacked.big.matrix")
importFrom("utils", "capture.output")
#S4 methods
exportMethods("%*%")
exportMethods("Arith")
#Functions
# Copy a matrix
# Y := X
export("dcopy")
# Multiply by a scalar
# Y := ALPHA * Y
export("dscal")
# Add two matrices.
# Y := ALPHA * X + Y
export("daxpy")
# Matrix Multiply
# C := ALPHA * op(A) * op(B) + BETA * C
export("dgemm")
# QR factorization
# return 0 if successful, -i if ith argument has illegal value
export("dgeqrf")
# Cholesky factorization
# return 0 if successful, <0 if -i-th argument is invalid, > 0 if leading minor
# is not positive definite
export("dpotrf")
# General eigenvalue
# return 0 if successful, <0 i-th argument has illegal value, >0 QR
# algorithm failed.
# for now, VL and VR have to be matrices but they could be NULL
export("dgeev")
# Singular value decomposition (SVD)
# Returns: = 0 if successful
# < 0 if INFO = -i had an illegal value
# > 0 if DBDSDC did not converge
export("dgesdd")
# #' @useDynLib bigalgebra, .registration = TRUE
useDynLib(bigalgebra, .registration = TRUE)