Matrix r5059
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
init.c
Go to the documentation of this file.
1#include "cholmod-api.h"
2#include <R_ext/Rdynload.h>
3#include <R_ext/Visibility.h>
4#include <Rinternals.h>
5
6/* BunchKaufman.c : */
7SEXP R_dense_bunchkaufman(SEXP, SEXP, SEXP, SEXP);
8
9/* Cholesky.c : */
10SEXP R_dense_cholesky(SEXP, SEXP, SEXP, SEXP, SEXP);
11SEXP R_sparse_cholesky(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP);
12
13/* Csparse.c : */
15SEXP dgCMatrix_lusol(SEXP, SEXP);
16SEXP dgCMatrix_qrsol(SEXP, SEXP, SEXP);
17SEXP dgCMatrix_cholsol(SEXP, SEXP);
18SEXP dtCMatrix_diag(SEXP, SEXP);
19SEXP Csparse_dmperm(SEXP, SEXP, SEXP);
20SEXP Csparse_writeMM(SEXP, SEXP);
21
22/* Schur.c : */
23SEXP R_dense_schur(SEXP, SEXP, SEXP);
24
25/* Summary.c : */
26SEXP R_dense_sum(SEXP, SEXP);
27SEXP R_sparse_sum(SEXP, SEXP);
28SEXP R_dense_prod(SEXP, SEXP);
29SEXP R_sparse_prod(SEXP, SEXP);
30
31/* aggregate.c : */
32SEXP R_sparse_aggregate(SEXP);
33
34/* attrib.c : */
35SEXP R_Dim_prod(SEXP);
37SEXP R_symDN(SEXP);
38SEXP R_set_factor(SEXP, SEXP, SEXP, SEXP);
39
40/* band.c : */
41SEXP R_dense_band(SEXP, SEXP, SEXP);
42SEXP R_sparse_band(SEXP, SEXP, SEXP);
43
44/* bind.c : */
45SEXP R_bind(SEXP);
46
47/* coerce.c : */
48SEXP R_vector_as_dense(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP);
49SEXP R_matrix_as_dense(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP);
50SEXP R_sparse_as_dense(SEXP, SEXP);
51SEXP R_diagonal_as_dense(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP);
52SEXP R_index_as_dense(SEXP, SEXP);
53SEXP R_Vector_as_sparse(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP);
54SEXP R_matrix_as_sparse(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP);
55SEXP R_dense_as_sparse(SEXP, SEXP);
56SEXP R_diagonal_as_sparse(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP);
57SEXP R_index_as_sparse(SEXP, SEXP, SEXP);
58SEXP R_dense_as_kind(SEXP, SEXP);
59SEXP R_sparse_as_kind(SEXP, SEXP);
60SEXP R_diagonal_as_kind(SEXP, SEXP);
61SEXP R_index_as_kind(SEXP, SEXP);
62SEXP R_dense_as_general(SEXP);
63SEXP R_sparse_as_general(SEXP);
64SEXP R_dense_as_unpacked(SEXP);
65SEXP R_dense_as_packed(SEXP, SEXP, SEXP, SEXP);
66SEXP R_sparse_as_Csparse(SEXP);
67SEXP R_sparse_as_Rsparse(SEXP);
68SEXP R_sparse_as_Tsparse(SEXP);
69SEXP R_vector_as_Vector(SEXP, SEXP);
70SEXP R_sparse_as_Vector(SEXP);
71SEXP R_diagonal_as_Vector(SEXP);
72SEXP R_index_as_Vector(SEXP);
73SEXP R_Matrix_as_vector(SEXP);
74SEXP R_Matrix_as_matrix(SEXP);
75SEXP R_Matrix_as_unpacked(SEXP);
76SEXP R_Matrix_as_packed(SEXP);
77SEXP R_Matrix_as_Csparse(SEXP);
78SEXP R_Matrix_as_Rsparse(SEXP);
79SEXP R_Matrix_as_Tsparse(SEXP);
80SEXP R_Matrix_as_Vector(SEXP);
81SEXP R_Matrix_as_kind(SEXP, SEXP, SEXP);
82SEXP R_Matrix_as_general(SEXP, SEXP);
83
84/* colSums.c : */
85SEXP R_dense_marginsum(SEXP, SEXP, SEXP, SEXP);
86SEXP R_sparse_marginsum(SEXP, SEXP, SEXP, SEXP, SEXP);
87
88/* determinant.c : */
89SEXP denseLU_determinant(SEXP, SEXP);
90SEXP denseBunchKaufman_determinant(SEXP, SEXP);
91SEXP denseCholesky_determinant(SEXP, SEXP);
92SEXP sparseQR_determinant(SEXP, SEXP);
93SEXP sparseLU_determinant(SEXP, SEXP);
94SEXP sparseCholesky_determinant(SEXP, SEXP, SEXP);
95
96/* diag.c : */
97SEXP R_dense_diag_get(SEXP, SEXP);
98SEXP R_sparse_diag_get(SEXP, SEXP);
99SEXP R_dense_diag_set(SEXP, SEXP);
100SEXP R_sparse_diag_set(SEXP, SEXP);
101SEXP R_sparse_diag_U2N(SEXP);
102SEXP R_sparse_diag_N2U(SEXP);
103SEXP denseCholesky_diag_get(SEXP, SEXP);
104SEXP sparseCholesky_diag_get(SEXP, SEXP);
105
106/* dropzero.c : */
107SEXP R_sparse_dropzero(SEXP, SEXP);
108
109/* expand.c : */
110SEXP denseBunchKaufman_expand(SEXP);
111
112/* expm.c : */
113SEXP R_dense_expm(SEXP);
114
115/* forceCanonical.c : */
116SEXP R_dense_force_canonical(SEXP, SEXP);
117SEXP R_sparse_force_canonical(SEXP, SEXP);
118
119/* forceSymmetric.c : */
120SEXP R_dense_force_symmetric(SEXP, SEXP, SEXP);
121SEXP R_sparse_force_symmetric(SEXP, SEXP, SEXP);
122
123/* isCanonical.c : */
124SEXP R_dense_is_canonical(SEXP);
125SEXP R_sparse_is_canonical(SEXP);
126
127/* isDiagonal.c : */
128SEXP R_dense_is_diagonal(SEXP);
129SEXP R_sparse_is_diagonal(SEXP);
130
131/* isSymmetric.c : */
132SEXP R_dense_is_symmetric(SEXP, SEXP, SEXP, SEXP);
133SEXP R_sparse_is_symmetric(SEXP, SEXP, SEXP, SEXP);
134
135/* isTriangular.c : */
136SEXP R_dense_is_triangular(SEXP, SEXP);
137SEXP R_sparse_is_triangular(SEXP, SEXP);
138
139/* lu.c : */
140SEXP R_dense_lu(SEXP, SEXP);
141SEXP R_sparse_lu(SEXP, SEXP, SEXP, SEXP);
142
143/* matmult.c : */
144SEXP R_dense_matmult(SEXP, SEXP, SEXP, SEXP);
145SEXP R_sparse_matmult(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP);
146SEXP R_diagonal_matmult(SEXP, SEXP, SEXP, SEXP, SEXP);
147
148/* norm.c : */
149SEXP geMatrix_norm(SEXP, SEXP);
150SEXP syMatrix_norm(SEXP, SEXP);
151SEXP spMatrix_norm(SEXP, SEXP);
152SEXP trMatrix_norm(SEXP, SEXP);
153SEXP tpMatrix_norm(SEXP, SEXP);
154
155/* objects.c : */
156SEXP R_Matrix_class(SEXP, SEXP);
157SEXP R_Matrix_kind(SEXP);
158SEXP R_Matrix_shape(SEXP, SEXP);
159SEXP R_Matrix_repr(SEXP);
160
161/* perm.c : */
162SEXP R_isPerm(SEXP, SEXP);
163SEXP R_signPerm(SEXP, SEXP);
164SEXP R_invertPerm(SEXP, SEXP, SEXP);
165SEXP R_asPerm(SEXP, SEXP, SEXP, SEXP);
166
167/* qr.c : */
168SEXP R_sparse_qr(SEXP, SEXP, SEXP);
169
170/* rcond.c : */
171SEXP geMatrix_rcond(SEXP, SEXP, SEXP);
172SEXP syMatrix_rcond(SEXP, SEXP, SEXP);
173SEXP spMatrix_rcond(SEXP, SEXP, SEXP);
174SEXP poMatrix_rcond(SEXP, SEXP, SEXP);
175SEXP ppMatrix_rcond(SEXP, SEXP, SEXP);
176SEXP trMatrix_rcond(SEXP, SEXP);
177SEXP tpMatrix_rcond(SEXP, SEXP);
178
179/* skewpart.c : */
180SEXP R_dense_skewpart(SEXP, SEXP);
181SEXP R_sparse_skewpart(SEXP, SEXP);
182
183/* solve.c : */
184SEXP denseLU_solve(SEXP, SEXP);
185SEXP denseBunchKaufman_solve(SEXP, SEXP);
186SEXP denseCholesky_solve(SEXP, SEXP);
187SEXP trMatrix_solve(SEXP, SEXP);
188SEXP sparseLU_solve(SEXP, SEXP, SEXP);
189SEXP sparseCholesky_solve(SEXP, SEXP, SEXP, SEXP);
190SEXP tCMatrix_solve(SEXP, SEXP, SEXP);
191SEXP sparseQR_matmult(SEXP, SEXP, SEXP, SEXP, SEXP);
192
193/* subassign.c : */
194SEXP nCsparse_subassign(SEXP, SEXP, SEXP, SEXP);
195SEXP lCsparse_subassign(SEXP, SEXP, SEXP, SEXP);
196SEXP iCsparse_subassign(SEXP, SEXP, SEXP, SEXP);
197SEXP dCsparse_subassign(SEXP, SEXP, SEXP, SEXP);
198SEXP zCsparse_subassign(SEXP, SEXP, SEXP, SEXP);
199
200/* subscript.c : */
201SEXP R_subscript_1ary(SEXP, SEXP, SEXP);
202SEXP R_subscript_1ary_2col(SEXP, SEXP, SEXP);
203SEXP R_subscript_2ary(SEXP, SEXP, SEXP);
204
205/* symmpart.c : */
206SEXP R_dense_symmpart(SEXP, SEXP, SEXP);
207SEXP R_sparse_symmpart(SEXP, SEXP, SEXP);
208
209/* t.c : */
210SEXP R_dense_transpose(SEXP, SEXP);
211SEXP R_sparse_transpose(SEXP, SEXP, SEXP);
212
213/* updown.c : */
214SEXP sparseCholesky_updown(SEXP, SEXP, SEXP);
215SEXP sparseCholesky_update(SEXP, SEXP, SEXP);
216
217/* utils-R.c : */
218SEXP R_index_triangle(SEXP, SEXP, SEXP, SEXP);
219SEXP R_index_diagonal(SEXP, SEXP, SEXP);
220SEXP R_nnz(SEXP, SEXP, SEXP);
221SEXP R_all0(SEXP);
222SEXP R_any0(SEXP);
223SEXP Mmatrix(SEXP);
224SEXP compressed_non_0_ij(SEXP, SEXP);
225SEXP Matrix_expand_pointers(SEXP);
226SEXP m_encodeInd(SEXP, SEXP, SEXP, SEXP);
227SEXP m_encodeInd2(SEXP, SEXP, SEXP, SEXP, SEXP);
228SEXP Matrix_rle_d(SEXP, SEXP);
229SEXP Matrix_rle_i(SEXP, SEXP);
230
231/* validity.c : */
232SEXP R_Dim_validate(SEXP);
233SEXP R_DimNames_validate(SEXP, SEXP);
234SEXP R_DimNames_fixup(SEXP);
235SEXP Matrix_validate(SEXP);
241SEXP generalMatrix_validate(SEXP);
242SEXP symmetricMatrix_validate(SEXP);
244SEXP unpackedMatrix_validate(SEXP);
245SEXP packedMatrix_validate(SEXP);
246SEXP CsparseMatrix_validate(SEXP);
247SEXP RsparseMatrix_validate(SEXP);
248SEXP TsparseMatrix_validate(SEXP);
249SEXP diagonalMatrix_validate(SEXP);
250SEXP indMatrix_validate(SEXP);
251SEXP pMatrix_validate(SEXP);
252SEXP sCMatrix_validate(SEXP);
253SEXP tCMatrix_validate(SEXP);
254SEXP sRMatrix_validate(SEXP);
255SEXP tRMatrix_validate(SEXP);
256SEXP sTMatrix_validate(SEXP);
257SEXP tTMatrix_validate(SEXP);
258SEXP xgCMatrix_validate(SEXP);
259SEXP xsCMatrix_validate(SEXP);
260SEXP xtCMatrix_validate(SEXP);
261SEXP xgRMatrix_validate(SEXP);
262SEXP xsRMatrix_validate(SEXP);
263SEXP xtRMatrix_validate(SEXP);
264SEXP xgTMatrix_validate(SEXP);
265SEXP xsTMatrix_validate(SEXP);
266SEXP xtTMatrix_validate(SEXP);
267SEXP xpoMatrix_validate(SEXP);
268SEXP xppMatrix_validate(SEXP);
269SEXP xpCMatrix_validate(SEXP);
270SEXP xpRMatrix_validate(SEXP);
271SEXP xpTMatrix_validate(SEXP);
272SEXP corMatrix_validate(SEXP);
273SEXP copMatrix_validate(SEXP);
274SEXP sparseVector_validate(SEXP);
280SEXP denseSchur_validate(SEXP);
281SEXP denseQR_validate(SEXP);
282SEXP denseLU_validate(SEXP);
284SEXP denseCholesky_validate(SEXP);
285SEXP sparseQR_validate(SEXP);
286SEXP sparseLU_validate(SEXP);
287SEXP sparseCholesky_validate(SEXP);
290
291/* version.c : */
292SEXP R_Matrix_version(void);
293
294#define CALL_METHOD(name, n) {#name, (DL_FUNC) &name, n}
295#define EXTERNAL_METHOD(name, n) {#name, (DL_FUNC) &name, n}
296#define REGISTER(name ) R_RegisterCCallable("Matrix", #name, (DL_FUNC) name)
297
298static R_CallMethodDef CallMethodTable[] = {
299 /* BunchKaufman.c : */
301
302 /* Cholesky.c : */
305
306 /* Csparse.c : */
314
315 /* Schur.c : */
317
318 /* Summary.c : */
323
324 /* aggregate.c : */
326
327 /* attrib.c : */
332
333 /* band.c : */
336
337 /* coerce.c : */
373
374 /* colSums.c : */
377
378 /* determinant.c : */
385
386 /* diag.c : */
395
396 /* dropzero.c : */
398
399 /* expand.c : */
401
402 /* expm.c : */
404
405 /* forceCanonical.c : */
408
409 /* forceSymmetric.c : */
412
413 /* isCanonical.c : */
416
417 /* isDiagonal.c : */
420
421 /* isSymmetric.c : */
424
425 /* isTriangular.c : */
428
429 /* lu.c : */
432
433 /* matmult.c : */
437
438 /* norm.c : */
444
445 /* objects.c : */
450
451 /* perm.c : */
456
457 /* qr.c : */
459
460 /* rcond.c : */
468
469 /* skewpart.c : */
472
473 /* solve.c : */
482
483 /* subassign.c : */
489
490 /* subscript.c : */
494
495 /* symmpart.c : */
498
499 /* t.c : */
502
503 /* updown.c : */
506
507 /* utils-R.c : */
510 CALL_METHOD(R_nnz, 3),
519
520 /* validity.c : */
579
580 /* version.c */
582
583 {NULL, NULL, 0}
584};
585
586static const R_ExternalMethodDef ExternalMethodTable[] = {
587 /* bind.c */
589
590 /* utils-R.c */
592
593 {NULL, NULL, 0}
594};
595
596SEXP
639
640Rcomplex
644
645void attribute_visible R_init_Matrix(DllInfo *info)
646{
647 R_registerRoutines(info, NULL, CallMethodTable, NULL, ExternalMethodTable);
648 R_useDynamicSymbols(info, FALSE);
649
650 /* CHOLMOD : */
651 REGISTER(cholmod_aat);
652 REGISTER(cholmod_add);
653 REGISTER(cholmod_allocate_dense);
654 REGISTER(cholmod_allocate_factor);
655 REGISTER(cholmod_allocate_sparse);
656 REGISTER(cholmod_allocate_triplet);
657 REGISTER(cholmod_analyze);
658 REGISTER(cholmod_analyze_p);
659 REGISTER(cholmod_band_inplace);
660 REGISTER(cholmod_change_factor);
661 REGISTER(cholmod_check_common);
662 REGISTER(cholmod_check_dense);
663 REGISTER(cholmod_check_factor);
664 REGISTER(cholmod_check_sparse);
665 REGISTER(cholmod_check_triplet);
666 REGISTER(cholmod_copy);
667 REGISTER(cholmod_copy_dense);
668 REGISTER(cholmod_copy_factor);
669 REGISTER(cholmod_copy_sparse);
670 REGISTER(cholmod_copy_triplet);
671 REGISTER(cholmod_defaults);
672 REGISTER(cholmod_dense_to_sparse);
673 REGISTER(cholmod_factor_to_sparse);
674 REGISTER(cholmod_factorize);
675 REGISTER(cholmod_factorize_p);
676 REGISTER(cholmod_finish);
677 REGISTER(cholmod_free_dense);
678 REGISTER(cholmod_free_factor);
679 REGISTER(cholmod_free_sparse);
680 REGISTER(cholmod_free_triplet);
681 REGISTER(cholmod_horzcat);
682 REGISTER(cholmod_nnz);
683 REGISTER(cholmod_scale);
684 REGISTER(cholmod_sdmult);
685 REGISTER(cholmod_solve);
686 REGISTER(cholmod_solve2);
687 REGISTER(cholmod_sort);
688 REGISTER(cholmod_sparse_to_dense);
689 REGISTER(cholmod_sparse_to_triplet);
690 REGISTER(cholmod_speye);
691 REGISTER(cholmod_spsolve);
692 REGISTER(cholmod_ssmult);
693 REGISTER(cholmod_start);
694 REGISTER(cholmod_submatrix);
695 REGISTER(cholmod_transpose);
696 REGISTER(cholmod_triplet_to_sparse);
697 REGISTER(cholmod_updown);
698 REGISTER(cholmod_vertcat);
699
700 /* Matrix : */
712
713 Matrix_DimNamesSym = Rf_install("Dimnames");
714 Matrix_DimSym = Rf_install("Dim");
715 Matrix_LSym = Rf_install("L");
716 Matrix_RSym = Rf_install("R");
717 Matrix_USym = Rf_install("U");
718 Matrix_VSym = Rf_install("V");
719 Matrix_betaSym = Rf_install("beta");
720 Matrix_colcountSym = Rf_install("colcount");
721 Matrix_diagSym = Rf_install("diag");
722 Matrix_factorsSym = Rf_install("factors");
723 Matrix_iSym = Rf_install("i");
724 Matrix_isllSym = Rf_install("is_ll");
725 Matrix_ismtSym = Rf_install("is_monotonic");
726 Matrix_jSym = Rf_install("j");
727 Matrix_kindSym = Rf_install("kind");
728 Matrix_lengthSym = Rf_install("length");
729 Matrix_logarithmSym = Rf_install("logarithm");
730 Matrix_marginSym = Rf_install("margin");
731 Matrix_maxcsizeSym = Rf_install("maxcsize");
732 Matrix_maxesizeSym = Rf_install("maxesize");
733 Matrix_minorSym = Rf_install("minor");
734 Matrix_nextSym = Rf_install("next");
735 Matrix_nzSym = Rf_install("nz");
736 Matrix_offSym = Rf_install("off");
737 Matrix_orderingSym = Rf_install("ordering");
738 Matrix_pSym = Rf_install("p");
739 Matrix_permSym = Rf_install("perm");
740 Matrix_piSym = Rf_install("pi");
741 Matrix_prevSym = Rf_install("prev");
742 Matrix_pxSym = Rf_install("px");
743 Matrix_qSym = Rf_install("q");
744 Matrix_sSym = Rf_install("s");
745 Matrix_sdSym = Rf_install("sd");
746 Matrix_superSym = Rf_install("super");
747 Matrix_transSym = Rf_install("trans");
748 Matrix_uploSym = Rf_install("uplo");
749 Matrix_valuesSym = Rf_install("values");
750 Matrix_vectorsSym = Rf_install("vectors");
751 Matrix_xSym = Rf_install("x");
752
753 Matrix_LChar = Rf_mkChar("L");
754 Matrix_TChar = Rf_mkChar("T");
755 Matrix_UChar = Rf_mkChar("U");
756
757 Matrix_zzero.r = 0.0; Matrix_zunit.r = 1.0; Matrix_zna.r = NA_REAL;
758 Matrix_zzero.i = 0.0; Matrix_zunit.i = 0.0; Matrix_zna.i = NA_REAL;
759
761 return;
762}
763
764void R_unload_Matrix(DllInfo *info)
765{
767 return;
768}
cholmod_dense * numeric_as_cholmod_dense(cholmod_dense *A, double *data, int nrow, int ncol)
Coerce from (double *) to (cholmod_dense *) with given dimensions.
cholmod_triplet * sexp_as_cholmod_triplet(cholmod_triplet *A, SEXP from, Rboolean allocUnit)
Coerce from TsparseMatrix to (cholmod_triplet *)
SEXP cholmod_sparse_as_sexp(cholmod_sparse *A, int doFree, int ttype, int doLogic, const char *diagString, SEXP dimnames)
Coerce from (cholmod_sparse *) to CsparseMatrix.
cholmod_factor * sexp_as_cholmod_factor(cholmod_factor *L, SEXP from)
Coerce from sparseCholesky to (cholmod_factor *)
Definition cholmod-api.c:18
SEXP cholmod_dense_as_sexp(cholmod_dense *A, int doFree)
Coerce from (cholmod_dense *) to [dz]geMatrix.
cholmod_dense * sexp_as_cholmod_dense(cholmod_dense *A, SEXP from)
Coerce from .geMatrix or vector to (cholmod_dense *)
SEXP cholmod_triplet_as_sexp(cholmod_triplet *A, int doFree, int ttype, int doLogic, const char *diagString, SEXP dimnames)
Coerce from (cholmod_triplet *) to TsparseMatrix.
double cholmod_factor_ldetA(cholmod_factor *L)
Log determinant from Cholesky factorization.
cholmod_sparse * sexp_as_cholmod_sparse(cholmod_sparse *A, SEXP from, Rboolean allocUnit, Rboolean sortInPlace)
Coerce from [CR]sparseMatrix to (cholmod_sparse *)
cholmod_factor * cholmod_factor_update(cholmod_factor *L, cholmod_sparse *A, double beta)
Update a Cholesky factorization.
SEXP cholmod_factor_as_sexp(cholmod_factor *L, int doFree)
Coerce from (cholmod_factor *) to sparseCholesky.
int Matrix_cholmod_start(cholmod_common *Common)
Definition cholmod-etc.c:22
int Matrix_cholmod_finish(cholmod_common *Common)
Definition cholmod-etc.c:31
cholmod_common c
Definition cholmod-etc.c:5
SEXP Matrix_nextSym
Definition init.c:618
SEXP R_dense_bunchkaufman(SEXP, SEXP, SEXP, SEXP)
SEXP symmetricMatrix_validate(SEXP)
Definition validity.c:181
SEXP R_index_as_dense(SEXP, SEXP)
Definition coerce.c:740
SEXP Matrix_nzSym
Definition init.c:619
SEXP R_dense_skewpart(SEXP, SEXP)
Definition skewpart.c:482
SEXP lsparseVector_validate(SEXP)
SEXP R_dense_transpose(SEXP, SEXP)
Definition t.c:170
SEXP packedMatrix_validate(SEXP)
Definition validity.c:290
SEXP R_symDN(SEXP)
Definition attrib.c:100
SEXP R_sparse_transpose(SEXP, SEXP, SEXP)
Definition t.c:180
SEXP indMatrix_validate(SEXP)
Definition validity.c:461
SEXP Matrix_transSym
Definition init.c:631
SEXP syMatrix_norm(SEXP, SEXP)
Definition norm.c:73
SEXP dCsparse_subassign(SEXP, SEXP, SEXP, SEXP)
SEXP R_dense_is_triangular(SEXP, SEXP)
SEXP tpMatrix_rcond(SEXP, SEXP)
Definition rcond.c:248
SEXP R_dense_diag_get(SEXP, SEXP)
Definition diag.c:205
SEXP sparseLU_solve(SEXP, SEXP, SEXP)
Definition solve.c:467
SEXP ppMatrix_rcond(SEXP, SEXP, SEXP)
Definition rcond.c:187
SEXP R_sparse_diag_U2N(SEXP)
Definition diag.c:654
SEXP tCMatrix_solve(SEXP, SEXP, SEXP)
Definition solve.c:771
SEXP R_vector_as_dense(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)
Definition coerce.c:137
SEXP Matrix_kindSym
Definition init.c:611
SEXP Matrix_sdSym
Definition init.c:629
SEXP compressed_non_0_ij(SEXP, SEXP)
Return a 2 column matrix '' cbind(i, j) '' of 0-origin index vectors (i,j) which entirely correspond ...
Definition utils-R.c:447
SEXP R_dense_band(SEXP, SEXP, SEXP)
Definition band.c:350
SEXP trMatrix_solve(SEXP, SEXP)
Definition solve.c:367
SEXP xpCMatrix_validate(SEXP)
Definition validity.c:907
SEXP CsparseMatrix_validate(SEXP)
Definition validity.c:299
SEXP Matrix_permSym
Definition init.c:623
SEXP TsparseMatrix_validate(SEXP)
Definition validity.c:399
SEXP denseBunchKaufman_validate(SEXP)
Definition validity.c:1288
SEXP lCsparse_subassign(SEXP, SEXP, SEXP, SEXP)
SEXP poMatrix_rcond(SEXP, SEXP, SEXP)
Definition rcond.c:154
SEXP R_DimNames_is_symmetric(SEXP)
Definition attrib.c:64
SEXP R_diagonal_matmult(SEXP, SEXP, SEXP, SEXP, SEXP)
Definition matmult.c:1310
SEXP R_Matrix_repr(SEXP)
Definition objects.c:203
SEXP R_dense_is_canonical(SEXP)
Definition isCanonical.c:86
SEXP R_diagonal_as_sparse(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)
Definition coerce.c:1898
SEXP denseBunchKaufman_determinant(SEXP, SEXP)
Definition determinant.c:76
SEXP supernodalCholesky_validate(SEXP)
Definition validity.c:1847
SEXP diagonalMatrix_validate(SEXP)
Definition validity.c:437
SEXP sRMatrix_validate(SEXP)
Definition validity.c:606
SEXP tpMatrix_norm(SEXP, SEXP)
Definition norm.c:155
SEXP Matrix_DimSym
Definition init.c:598
SEXP R_dense_marginsum(SEXP, SEXP, SEXP, SEXP)
Definition colSums.c:729
SEXP R_set_factor(SEXP, SEXP, SEXP, SEXP)
Definition attrib.c:220
SEXP R_sparse_diag_N2U(SEXP)
Definition diag.c:660
SEXP denseCholesky_validate(SEXP)
Definition validity.c:1348
SEXP Matrix_factorsSym
Definition init.c:606
SEXP R_Matrix_class(SEXP, SEXP)
Definition objects.c:185
SEXP zMatrix_validate(SEXP)
SEXP Matrix_betaSym
Definition init.c:603
SEXP denseBunchKaufman_solve(SEXP, SEXP)
Definition solve.c:130
SEXP xpTMatrix_validate(SEXP)
Definition validity.c:993
SEXP sparseCholesky_updown(SEXP, SEXP, SEXP)
Definition updown.c:7
SEXP R_sparse_band(SEXP, SEXP, SEXP)
Definition band.c:380
SEXP sparseQR_determinant(SEXP, SEXP)
SEXP R_diagonal_as_kind(SEXP, SEXP)
Definition coerce.c:2211
SEXP m_encodeInd(SEXP, SEXP, SEXP, SEXP)
Encode Matrix index (i,j) |--> i + j * nrow {i,j : 0-origin}.
Definition utils-R.c:493
SEXP denseLU_validate(SEXP)
Definition validity.c:1259
SEXP R_index_triangle(SEXP, SEXP, SEXP, SEXP)
Definition utils-R.c:4
SEXP sparseVector_validate(SEXP)
Definition validity.c:1089
SEXP Matrix_valuesSym
Definition init.c:633
SEXP denseBunchKaufman_expand(SEXP)
Definition expand.c:6
SEXP Matrix_pxSym
Definition init.c:626
SEXP R_any0(SEXP)
Definition utils-R.c:242
SEXP xtRMatrix_validate(SEXP)
Definition validity.c:810
SEXP R_sparse_qr(SEXP, SEXP, SEXP)
Definition qr.c:115
SEXP R_vector_as_Vector(SEXP, SEXP)
Definition coerce.c:3124
SEXP R_matrix_as_sparse(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)
Definition coerce.c:1317
SEXP xsCMatrix_validate(SEXP)
Definition validity.c:776
SEXP R_index_diagonal(SEXP, SEXP, SEXP)
Definition utils-R.c:91
SEXP Matrix_logarithmSym
Definition init.c:613
SEXP denseSchur_validate(SEXP)
Definition validity.c:1178
SEXP R_Matrix_as_Vector(SEXP)
Definition coerce.c:3713
SEXP R_dense_prod(SEXP, SEXP)
Definition Summary.c:898
SEXP R_diagonal_as_dense(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)
Definition coerce.c:666
SEXP geMatrix_rcond(SEXP, SEXP, SEXP)
Definition rcond.c:40
SEXP unpackedMatrix_validate(SEXP)
Definition validity.c:281
SEXP R_dense_as_packed(SEXP, SEXP, SEXP, SEXP)
Definition coerce.c:2717
SEXP R_dense_symmpart(SEXP, SEXP, SEXP)
Definition symmpart.c:661
SEXP R_sparse_symmpart(SEXP, SEXP, SEXP)
Definition symmpart.c:672
SEXP xsRMatrix_validate(SEXP)
Definition validity.c:802
SEXP R_Matrix_as_vector(SEXP)
Definition coerce.c:3447
SEXP R_asPerm(SEXP, SEXP, SEXP, SEXP)
Definition perm.c:133
SEXP Matrix_rle_i(SEXP, SEXP)
SEXP dgCMatrix_qrsol(SEXP, SEXP, SEXP)
Definition Csparse.c:101
SEXP R_dense_as_sparse(SEXP, SEXP)
Definition coerce.c:1735
SEXP triangularMatrix_validate(SEXP)
Definition validity.c:254
SEXP R_all0(SEXP)
Definition utils-R.c:196
SEXP R_isPerm(SEXP, SEXP)
Definition perm.c:75
SEXP Matrix_marginSym
Definition init.c:614
SEXP R_subscript_1ary_2col(SEXP, SEXP, SEXP)
Definition subscript.c:664
SEXP m_encodeInd2(SEXP, SEXP, SEXP, SEXP, SEXP)
Encode Matrix index (i,j) |--> i + j * nrow {i,j : 0-origin}.
Definition utils-R.c:571
SEXP trMatrix_norm(SEXP, SEXP)
Definition norm.c:131
SEXP xsTMatrix_validate(SEXP)
Definition validity.c:828
SEXP dtCMatrix_diag(SEXP, SEXP)
Definition Csparse.c:211
SEXP generalMatrix_validate(SEXP)
Definition validity.c:165
SEXP R_sparse_sum(SEXP, SEXP)
Definition Summary.c:455
SEXP R_sparse_skewpart(SEXP, SEXP)
Definition skewpart.c:492
SEXP R_dense_cholesky(SEXP, SEXP, SEXP, SEXP, SEXP)
Definition Cholesky.c:197
SEXP R_Matrix_as_packed(SEXP)
Definition coerce.c:3609
void attribute_visible R_init_Matrix(DllInfo *info)
Definition init.c:645
SEXP MatrixFactorization_validate(SEXP)
Definition validity.c:1173
SEXP dgCMatrix_cholsol(SEXP, SEXP)
Definition Csparse.c:130
SEXP denseCholesky_determinant(SEXP, SEXP)
SEXP sparseCholesky_diag_get(SEXP, SEXP)
Definition diag.c:702
SEXP pMatrix_validate(SEXP)
Definition validity.c:496
SEXP tTMatrix_validate(SEXP)
Definition validity.c:722
SEXP R_subscript_2ary(SEXP, SEXP, SEXP)
Definition subscript.c:1580
SEXP Matrix_prevSym
Definition init.c:625
#define EXTERNAL_METHOD(name, n)
Definition init.c:295
SEXP R_sparse_is_symmetric(SEXP, SEXP, SEXP, SEXP)
SEXP denseCholesky_solve(SEXP, SEXP)
Definition solve.c:257
SEXP R_dense_diag_set(SEXP, SEXP)
Definition diag.c:508
SEXP trMatrix_rcond(SEXP, SEXP)
Definition rcond.c:220
SEXP R_index_as_sparse(SEXP, SEXP, SEXP)
Definition coerce.c:1989
SEXP R_DimNames_validate(SEXP, SEXP)
Definition validity.c:89
SEXP geMatrix_norm(SEXP, SEXP)
Definition norm.c:50
SEXP R_sparse_as_Rsparse(SEXP)
Definition coerce.c:2957
SEXP R_Matrix_as_matrix(SEXP)
Definition coerce.c:3516
SEXP sparseQR_matmult(SEXP, SEXP, SEXP, SEXP, SEXP)
Definition solve.c:902
SEXP sCMatrix_validate(SEXP)
Definition validity.c:519
SEXP R_sparse_matmult(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)
Definition matmult.c:1021
SEXP Matrix_TChar
Definition init.c:637
SEXP R_dense_as_general(SEXP)
Definition coerce.c:2292
SEXP Matrix_orderingSym
Definition init.c:621
SEXP sparseCholesky_determinant(SEXP, SEXP, SEXP)
SEXP R_sparse_is_diagonal(SEXP)
Definition isDiagonal.c:103
SEXP R_nnz(SEXP, SEXP, SEXP)
Definition utils-R.c:143
Rcomplex Matrix_zunit
Definition init.c:642
SEXP Matrix_RSym
Definition init.c:600
SEXP R_Vector_as_sparse(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)
Definition coerce.c:1180
SEXP isparseVector_validate(SEXP)
SEXP R_Matrix_version(void)
Definition version.c:4
Rcomplex Matrix_zna
Definition init.c:643
SEXP R_dense_is_diagonal(SEXP)
Definition isDiagonal.c:86
SEXP R_sparse_marginsum(SEXP, SEXP, SEXP, SEXP, SEXP)
Definition colSums.c:713
SEXP Matrix_xSym
Definition init.c:635
SEXP Matrix_lengthSym
Definition init.c:612
SEXP Matrix_iSym
Definition init.c:607
SEXP Matrix_sSym
Definition init.c:628
SEXP Matrix_jSym
Definition init.c:610
SEXP sTMatrix_validate(SEXP)
Definition validity.c:693
SEXP Matrix_DimNamesSym
Definition init.c:597
SEXP R_diagonal_as_Vector(SEXP)
Definition coerce.c:3368
SEXP zCsparse_subassign(SEXP, SEXP, SEXP, SEXP)
SEXP nCsparse_subassign(SEXP, SEXP, SEXP, SEXP)
SEXP Matrix_VSym
Definition init.c:602
SEXP R_sparse_prod(SEXP, SEXP)
Definition Summary.c:908
SEXP R_sparse_aggregate(SEXP)
Definition aggregate.c:86
SEXP R_dense_sum(SEXP, SEXP)
Definition Summary.c:445
SEXP R_Matrix_kind(SEXP)
Definition objects.c:191
SEXP xtCMatrix_validate(SEXP)
Definition validity.c:784
SEXP R_Matrix_as_kind(SEXP, SEXP, SEXP)
Definition coerce.c:3741
SEXP Csparse_writeMM(SEXP, SEXP)
Definition Csparse.c:408
SEXP R_sparse_is_canonical(SEXP)
Definition isCanonical.c:92
SEXP Matrix_validate(SEXP)
Definition validity.c:136
SEXP R_sparse_as_Csparse(SEXP)
Definition coerce.c:2841
SEXP R_dense_as_unpacked(SEXP)
Definition coerce.c:2648
SEXP corMatrix_validate(SEXP)
Definition validity.c:1035
SEXP RsparseMatrix_validate(SEXP)
Definition validity.c:349
SEXP dMatrix_validate(SEXP)
SEXP R_sparse_as_Tsparse(SEXP)
Definition coerce.c:3038
SEXP sparseCholesky_update(SEXP, SEXP, SEXP)
Definition updown.c:30
SEXP Matrix_UChar
Definition init.c:638
SEXP Matrix_LSym
Definition init.c:599
SEXP Matrix_maxesizeSym
Definition init.c:616
SEXP denseCholesky_diag_get(SEXP, SEXP)
Definition diag.c:666
SEXP Mmatrix(SEXP)
Definition utils-R.c:290
SEXP Matrix_diagSym
Definition init.c:605
SEXP R_sparse_diag_get(SEXP, SEXP)
Definition diag.c:215
SEXP R_matrix_as_dense(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)
Definition coerce.c:377
SEXP R_dense_as_kind(SEXP, SEXP)
Definition coerce.c:2066
SEXP R_Matrix_as_unpacked(SEXP)
Definition coerce.c:3583
#define CALL_METHOD(name, n)
Definition init.c:294
SEXP Matrix_superSym
Definition init.c:630
SEXP R_dense_force_symmetric(SEXP, SEXP, SEXP)
SEXP syMatrix_rcond(SEXP, SEXP, SEXP)
Definition rcond.c:74
SEXP Matrix_LChar
Definition init.c:636
SEXP Matrix_offSym
Definition init.c:620
SEXP R_Dim_validate(SEXP)
Definition validity.c:50
SEXP xgCMatrix_validate(SEXP)
Definition validity.c:766
SEXP nMatrix_validate(SEXP)
SEXP R_dense_force_canonical(SEXP, SEXP)
SEXP lMatrix_validate(SEXP)
SEXP iCsparse_subassign(SEXP, SEXP, SEXP, SEXP)
Rcomplex Matrix_zzero
Definition init.c:641
SEXP zsparseVector_validate(SEXP)
SEXP dgCMatrix_lusol(SEXP, SEXP)
Definition Csparse.c:82
SEXP R_invertPerm(SEXP, SEXP, SEXP)
Definition perm.c:109
SEXP denseLU_determinant(SEXP, SEXP)
Definition determinant.c:28
SEXP sparseLU_determinant(SEXP, SEXP)
SEXP R_sparse_as_Vector(SEXP)
Definition coerce.c:3275
SEXP simplicialCholesky_validate(SEXP)
Definition validity.c:1690
SEXP copMatrix_validate(SEXP)
Definition validity.c:1059
SEXP R_Matrix_as_Tsparse(SEXP)
Definition coerce.c:3688
SEXP tCMatrix_validate(SEXP)
Definition validity.c:558
SEXP R_Matrix_as_Csparse(SEXP)
Definition coerce.c:3638
SEXP Matrix_uploSym
Definition init.c:632
SEXP R_bind(SEXP)
Definition bind.c:946
SEXP R_dense_matmult(SEXP, SEXP, SEXP, SEXP)
Definition matmult.c:711
SEXP R_sparse_is_triangular(SEXP, SEXP)
SEXP sparseCholesky_solve(SEXP, SEXP, SEXP, SEXP)
Definition solve.c:697
SEXP Matrix_minorSym
Definition init.c:617
SEXP R_sparse_as_general(SEXP)
Definition coerce.c:2592
SEXP R_Matrix_as_general(SEXP, SEXP)
Definition coerce.c:3798
SEXP tRMatrix_validate(SEXP)
Definition validity.c:645
SEXP Matrix_isllSym
Definition init.c:608
SEXP R_index_as_kind(SEXP, SEXP)
Definition coerce.c:2227
SEXP iMatrix_validate(SEXP)
SEXP Matrix_colcountSym
Definition init.c:604
SEXP xgRMatrix_validate(SEXP)
Definition validity.c:792
SEXP R_dense_lu(SEXP, SEXP)
Definition lu.c:154
SEXP R_sparse_cholesky(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)
Definition Cholesky.c:230
#define REGISTER(name)
Definition init.c:296
SEXP R_Matrix_as_Rsparse(SEXP)
Definition coerce.c:3663
SEXP Matrix_qSym
Definition init.c:627
SEXP R_sparse_as_dense(SEXP, SEXP)
Definition coerce.c:589
SEXP sparseCholesky_validate(SEXP)
Definition validity.c:1633
SEXP R_signPerm(SEXP, SEXP)
Definition perm.c:92
SEXP R_sparse_force_symmetric(SEXP, SEXP, SEXP)
static R_CallMethodDef CallMethodTable[]
Definition init.c:298
SEXP Matrix_ismtSym
Definition init.c:609
SEXP Matrix_expand_pointers(SEXP)
Definition utils-R.c:473
SEXP xgTMatrix_validate(SEXP)
Definition validity.c:818
SEXP R_sparse_diag_set(SEXP, SEXP)
Definition diag.c:566
static const R_ExternalMethodDef ExternalMethodTable[]
Definition init.c:586
SEXP R_Dim_prod(SEXP)
Definition attrib.c:5
SEXP R_DimNames_fixup(SEXP)
Definition validity.c:95
SEXP denseLU_solve(SEXP, SEXP)
Definition solve.c:33
SEXP xpRMatrix_validate(SEXP)
Definition validity.c:950
SEXP xppMatrix_validate(SEXP)
Definition validity.c:872
SEXP spMatrix_norm(SEXP, SEXP)
Definition norm.c:102
SEXP denseQR_validate(SEXP)
Definition validity.c:1217
void R_unload_Matrix(DllInfo *info)
Definition init.c:764
SEXP R_sparse_as_kind(SEXP, SEXP)
Definition coerce.c:2150
SEXP R_dense_expm(SEXP)
Definition expm.c:466
SEXP dsparseVector_validate(SEXP)
SEXP R_Matrix_shape(SEXP, SEXP)
Definition objects.c:197
SEXP Matrix_USym
Definition init.c:601
SEXP R_index_as_Vector(SEXP)
Definition coerce.c:3440
SEXP Matrix_pSym
Definition init.c:622
SEXP R_sparse_lu(SEXP, SEXP, SEXP, SEXP)
Definition lu.c:174
SEXP xtTMatrix_validate(SEXP)
Definition validity.c:836
SEXP Csparse_dmperm(SEXP, SEXP, SEXP)
Definition Csparse.c:344
SEXP Matrix_vectorsSym
Definition init.c:634
SEXP Matrix_rle_d(SEXP, SEXP)
SEXP R_sparse_dropzero(SEXP, SEXP)
Definition dropzero.c:211
SEXP Matrix_maxcsizeSym
Definition init.c:615
SEXP sparseQR_validate(SEXP)
Definition validity.c:1434
SEXP spMatrix_rcond(SEXP, SEXP, SEXP)
Definition rcond.c:114
SEXP Matrix_piSym
Definition init.c:624
SEXP R_subscript_1ary(SEXP, SEXP, SEXP)
Definition subscript.c:348
SEXP R_dense_is_symmetric(SEXP, SEXP, SEXP, SEXP)
SEXP R_sparse_force_canonical(SEXP, SEXP)
SEXP R_dense_schur(SEXP, SEXP, SEXP)
Definition Schur.c:141
SEXP sparseLU_validate(SEXP)
Definition validity.c:1535
SEXP CsparseMatrix_validate_maybe_sorting(SEXP)
Definition Csparse.c:64
SEXP xpoMatrix_validate(SEXP)
Definition validity.c:849