forked from pybind/pybind11
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'fab1eebe2c4c' into feature-bump-merge-curated-moar
# Conflicts: # include/pybind11/eigen/matrix.h
- Loading branch information
Showing
16 changed files
with
1,235 additions
and
13 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 |
---|---|---|
|
@@ -43,3 +43,4 @@ pybind11Targets.cmake | |
/pybind11/share/* | ||
/docs/_build/* | ||
.ipynb_checkpoints/ | ||
tests/main.cpp |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
pybind11/eigen.h: Transparent conversion for dense and sparse Eigen matrices | ||
pybind11/eigen/matrix.h: Transparent conversion for dense and sparse Eigen matrices | ||
Copyright (c) 2016 Wenzel Jakob <[email protected]> | ||
|
@@ -9,14 +9,14 @@ | |
|
||
#pragma once | ||
|
||
#include "../numpy.h" | ||
|
||
// Similar to comments & pragma block in eigen_tensor.h. PLEASE KEEP IN SYNC. | ||
/* HINT: To suppress warnings originating from the Eigen headers, use -isystem. | ||
See also: | ||
https://stackoverflow.com/questions/2579576/i-dir-vs-isystem-dir | ||
https://stackoverflow.com/questions/1741816/isystem-for-ms-visual-studio-c-compiler | ||
*/ | ||
|
||
#include "numpy.h" | ||
|
||
// The C4127 suppression was introduced for Eigen 3.4.0. In theory we could | ||
// make it version specific, or even remove it later, but considering that | ||
// 1. C4127 is generally far more distracting than useful for modern template code, and | ||
|
@@ -45,7 +45,7 @@ | |
// move constructors that break things. We could detect this an explicitly copy, but an extra copy | ||
// of matrices seems highly undesirable. | ||
static_assert(EIGEN_VERSION_AT_LEAST(3, 2, 7), | ||
"Eigen support in pybind11 requires Eigen >= 3.2.7"); | ||
"Eigen matrix support in pybind11 requires Eigen >= 3.2.7"); | ||
|
||
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE) | ||
|
||
|
Oops, something went wrong.