-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add Eigen::Tensor
& Eigen::TensorMap
support
#4201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
141 commits
Select commit
Hold shift + click to select a range
fbf100c
First draft of Eigen::Tensor support
EthanSteinberg 5a6fd06
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a6a4bcd
Fix build errors
EthanSteinberg 5996f80
Weird allocator stuff?
EthanSteinberg 25a4d7e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 21c240b
Remove unused + additional allocator junk
EthanSteinberg 7d49a31
Disable warning
EthanSteinberg f4292b5
Use constexpr
EthanSteinberg 68f06e7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a77b38c
clang tidy fixes
EthanSteinberg 24e9120
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ca2303c
Resolve comments
EthanSteinberg 3a978dc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 38fbc37
Remove auto constexpr function
EthanSteinberg bd6a679
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8d64196
Try again for older C++
EthanSteinberg 09557c5
Oops forgot constexpr
EthanSteinberg 0a60475
Move to new files as suggested
EthanSteinberg 11aac3a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fb53ffd
Fix weird tests
EthanSteinberg 03a0595
Fix nits
EthanSteinberg 0b0fa22
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5a7b9c5
Oops, forgot import
EthanSteinberg 27377d9
Fix clang 3.6 bug
EthanSteinberg a4a96f3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 06a816c
More comprehensive test suite
EthanSteinberg d03a031
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 069f3fc
Refactor allocators to make things more clear
EthanSteinberg ea47cd1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c343f4d
Switch to std::copy
EthanSteinberg 25fc7a8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 22c554d
Switch to DSizes instead of array
EthanSteinberg 0a71637
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8d1c6d0
Address feedback
EthanSteinberg 98b2e12
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] cc59682
Fix python + dummy c++ change to trigger build
EthanSteinberg fda4a00
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9153db5
Alignment
EthanSteinberg 44681e0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6c3bfa4
Add include guard
EthanSteinberg e01bbd8
Forgot inline
EthanSteinberg 8ef248d
Fix compiler warning
EthanSteinberg ad8e987
Remove bad test
EthanSteinberg 6bf2ffb
Better type signatures
EthanSteinberg ba79142
Add guards to make compiler requirements more explicit
EthanSteinberg 880ef5d
style: pre-commit fixes
pre-commit-ci[bot] afcdf3e
Force rerun of tests due to flake
EthanSteinberg 73ec5a5
style: pre-commit fixes
pre-commit-ci[bot] f548478
Keep pragmas & all related comments together, add PLEASE KEEP IN SYNC
rwgk 8829b4b
Move headers out of detail
EthanSteinberg 79ba4f3
style: pre-commit fixes
pre-commit-ci[bot] 1a4b6a2
Fix cmake
Skylion007 e92231a
Improve casting
Skylion007 97358ea
style: pre-commit fixes
pre-commit-ci[bot] 396f047
Add a ton more tests + refactor
EthanSteinberg 992795b
Improve names
EthanSteinberg c364893
style: pre-commit fixes
pre-commit-ci[bot] 72ace1b
Update include/pybind11/eigen/tensor.h
EthanSteinberg 40a3976
Fix tests
EthanSteinberg 908da62
style: pre-commit fixes
pre-commit-ci[bot] e8c06c8
Update
EthanSteinberg 2dd6c95
Add a test to verify that strange numpy arrays work
EthanSteinberg a3387c3
Fix dumb compiler warning
EthanSteinberg b41ff6e
Better tests
EthanSteinberg 4a7179d
Better tests
EthanSteinberg a754455
Fix tests
EthanSteinberg 9ae8a2f
style: pre-commit fixes
pre-commit-ci[bot] ac263f0
More test fixes
EthanSteinberg 5265a81
style: pre-commit fixes
pre-commit-ci[bot] 9477519
A ton more test coverage
EthanSteinberg 891dab8
Fix tests
EthanSteinberg 18b06dc
style: pre-commit fixes
pre-commit-ci[bot] 37230b8
style: pre-commit fixes
pre-commit-ci[bot] 185d3d5
Add back constexpr
EthanSteinberg c3b30a1
Another test
EthanSteinberg ca04326
style: pre-commit fixes
pre-commit-ci[bot] b105dd2
Improve tests
Skylion007 8636d0f
Whoops
Skylion007 bf36e9f
Less magic numbers
Skylion007 9dd00c2
Update tests/test_eigen_tensor.py
EthanSteinberg aeeda40
Update tests/test_eigen_tensor.py
EthanSteinberg a2e915b
style: pre-commit fixes
pre-commit-ci[bot] d46603d
Fix tests
EthanSteinberg 55addec
style: pre-commit fixes
pre-commit-ci[bot] 17eed83
Fix memory leak
EthanSteinberg 7a09efb
style: pre-commit fixes
pre-commit-ci[bot] 57a45e1
Fix order
EthanSteinberg 9bdb366
style: pre-commit fixes
pre-commit-ci[bot] 51bdba8
Add test to make sure unsafe casts fail
EthanSteinberg 9ef5aa7
Minor bug fix to work on 32 bit machines
EthanSteinberg ed09040
Implement convert flag
EthanSteinberg 8547ee0
style: pre-commit fixes
pre-commit-ci[bot] a03ad09
Switch to correct TensorMap const use
EthanSteinberg db7d390
style: pre-commit fixes
pre-commit-ci[bot] 105d973
Support older versions of eigen
EthanSteinberg c96a56d
Weird c++ compilers
EthanSteinberg e236da2
Fix Eigen bug
EthanSteinberg 5343d86
Fix another eigen bug
EthanSteinberg 7beab7b
Yet another eigen bug
EthanSteinberg 9f4dfff
Potential flakes?
EthanSteinberg 2c904a0
style: pre-commit fixes
pre-commit-ci[bot] b7664b0
Rerun tests with dummy exception to find out what is going on
EthanSteinberg d730694
Another dummy test run
EthanSteinberg d5b73c7
Ablate more
EthanSteinberg e85c92b
Found the broken test?
EthanSteinberg e490133
One step closer
EthanSteinberg 3fc8eea
one step further
EthanSteinberg 0c766c9
Double check
EthanSteinberg 08278ee
one thing at a time
EthanSteinberg 2291c5b
Give up and disable the test
EthanSteinberg 0e24004
Clang lies about being gcc
EthanSteinberg 0f06d2f
Oops, fix matrix test
EthanSteinberg a731b21
style: pre-commit fixes
pre-commit-ci[bot] 9744995
Add tests to verify scalar conversions
EthanSteinberg 4dbd3e5
style: pre-commit fixes
pre-commit-ci[bot] a5998c5
Fix nits
EthanSteinberg 5946c86
Support no_array
EthanSteinberg fdbf004
Fix tests
EthanSteinberg 49aaf0c
style: pre-commit fixes
pre-commit-ci[bot] d17a9f5
Silence compiler warning
EthanSteinberg 7ab8364
Improve build system for ancient compilers
EthanSteinberg fff0c96
Make clang happy
EthanSteinberg 17dc4ab
Make gcc happy
EthanSteinberg 645634d
Implement Skylion's suggestions
EthanSteinberg cd40d68
Fix warning
EthanSteinberg e9639fc
Inline const pointer check
EthanSteinberg e69a79e
Implement suggestions
EthanSteinberg dc86d35
style: pre-commit fixes
pre-commit-ci[bot] 5ea37fd
Improve tests
EthanSteinberg a53f0c7
Typo
EthanSteinberg b7e0058
style: pre-commit fixes
pre-commit-ci[bot] 3a95d46
Support Google's build environment
EthanSteinberg 7516e99
style: pre-commit fixes
pre-commit-ci[bot] 4870a38
Update include/pybind11/eigen/tensor.h
EthanSteinberg 51d4a46
style: pre-commit fixes
pre-commit-ci[bot] 96e0802
Test cleanup per Skylion
EthanSteinberg 74d5089
Switch to remvove_cv_t
EthanSteinberg 39b4478
Cleaner test
EthanSteinberg bf6ae7a
style: pre-commit fixes
pre-commit-ci[bot] 8b43c4d
Remove tensor from eigen.h, update tests
EthanSteinberg 4880e0b
style: pre-commit fixes
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.