-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
159 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
Package: EigenR | ||
Type: Package | ||
Title: Complex Matrix Algebra with 'Eigen' | ||
Version: 1.2.3 | ||
Version: 1.2.3.9000 | ||
Author: Stéphane Laurent | ||
Maintainer: Stéphane Laurent <laurent_step@outlook.fr> | ||
Description: Matrix algebra using the 'Eigen' C++ library: determinant, rank, inverse, pseudo-inverse, kernel and image, QR decomposition, Cholesky decomposition, linear least-squares problems. Also provides matrix functions such as exponential, logarithm, power, sine and cosine. Complex matrices are supported. | ||
License: GPL-3 | ||
Imports: Rcpp (>= 1.0.5) | ||
LinkingTo: Rcpp, RcppEigen | ||
RoxygenNote: 7.1.2 | ||
LinkingTo: Rcpp, RcppEigen (>= 0.3.4.0.0) | ||
RoxygenNote: 7.3.1 | ||
Encoding: UTF-8 | ||
URL: https://github.com/stla/EigenR | ||
BugReports: https://github.com/stla/EigenR/issues | ||
SystemRequirements: C++ 17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "EigenR.h" | ||
|
||
// [[Rcpp::export]] | ||
Rcpp::List EigenR_realSchur(const Eigen::MatrixXd& M) { | ||
Eigen::RealSchur<Eigen::MatrixXd> schur(M); | ||
const Eigen::MatrixXd U = schur.matrixU(); | ||
const Eigen::MatrixXd T = schur.matrixT(); | ||
return Rcpp::List::create(Rcpp::Named("T") = T, | ||
Rcpp::Named("U") = U); | ||
} | ||
|
||
// [[Rcpp::export]] | ||
Rcpp::List EigenR_complexSchur(const Eigen::MatrixXd& Re, | ||
const Eigen::MatrixXd& Im) { | ||
const Eigen::MatrixXcd M = matricesToMatrixXcd(Re, Im); | ||
Eigen::ComplexSchur<Eigen::MatrixXcd> schur(M.rows()); | ||
schur.compute(M); | ||
const Eigen::MatrixXcd U = schur.matrixU(); | ||
const Eigen::MatrixXcd T = schur.matrixT(); | ||
return Rcpp::List::create(Rcpp::Named("U") = cplxMatrixToList(U), | ||
Rcpp::Named("T") = cplxMatrixToList(T)); | ||
} |