Skip to content

Commit 19e1faa

Browse files
committed
add FCONE for USE_FC_LEN_T support
1 parent 5fd125e commit 19e1faa

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2022-04-04 Dirk Eddelbuettel <[email protected]>
2+
3+
* src/fastLm.cpp: Add FCONE in two calls for improved Fortran and C
4+
character interface per Writing R Extensions, Section 6.6.1
5+
16
2022-01-16 Dirk Eddelbuettel <[email protected]>
27

38
* inst/tinytest/test_wrap.R: Added (optional) large memory wrap tests

src/fastLm.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// fastLm.cpp: Rcpp/Eigen example of a simple lm() alternative
44
//
5-
// Copyright (C) 2011 - 2015 Douglas Bates, Dirk Eddelbuettel and Romain Francois
5+
// Copyright (C) 2011 - 2022 Douglas Bates, Dirk Eddelbuettel and Romain Francois
66
//
77
// This file is part of RcppEigen.
88
//
@@ -144,11 +144,11 @@ namespace lmsol {
144144
if (m < n || S.size() != n || Vt.rows() != n || Vt.cols() != n)
145145
throw std::invalid_argument("dimension mismatch in gesvd"); // #nocov
146146
F77_CALL(dgesdd)("O", &m, &n, A.data(), &m, S.data(), A.data(),
147-
&m, Vt.data(), &n, &wrk, &mone, &iwork[0], &info);
147+
&m, Vt.data(), &n, &wrk, &mone, &iwork[0], &info FCONE);
148148
int lwork(wrk);
149149
std::vector<double> work(lwork);
150150
F77_CALL(dgesdd)("O", &m, &n, A.data(), &m, S.data(), A.data(),
151-
&m, Vt.data(), &n, &work[0], &lwork, &iwork[0], &info);
151+
&m, Vt.data(), &n, &work[0], &lwork, &iwork[0], &info FCONE);
152152
return info;
153153
}
154154

0 commit comments

Comments
 (0)