Skip to content

Conversation

@JordiManyer
Copy link
Member

Fixes issue #1156 where eigen() function did not work correctly with TensorValue objects.

The implementation follows the same pattern as other LinearAlgebra operations like det() and inv() by using get_array() to convert to StaticArrays format and delegating to the optimized StaticArrays eigen implementation.

JordiManyer and others added 2 commits September 4, 2025 08:58
Fixes issue #1156 where eigen() function did not work correctly with TensorValue objects.

Changes:
- Add eigen import and export to TensorValues module
- Implement eigen(::MultiValue{Tuple{D,D}}) that delegates to StaticArrays
- Add proper error handling for non-square matrices
- Add comprehensive tests for various tensor types (TensorValue, SymTensorValue, SymTracelessTensorValue)
- Test 1x1, 2x2, and 3x3 matrices with floating-point types
- Test error handling for non-square matrices

The implementation follows the same pattern as other LinearAlgebra operations
like det() and inv() by using get_array() to convert to StaticArrays format
and delegating to the optimized StaticArrays eigen implementation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add changelog entry for the new eigen function support for TensorValue objects.
References issue #1156 and PR #1157.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@37298f7). Learn more about missing BASE report.
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1157   +/-   ##
=========================================
  Coverage          ?   89.27%           
=========================================
  Files             ?      211           
  Lines             ?    26693           
  Branches          ?        0           
=========================================
  Hits              ?    23830           
  Misses            ?     2863           
  Partials          ?        0           
Flag Coverage Δ
drivers 0.00% <0.00%> (?)
tests 89.27% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JordiManyer JordiManyer merged commit b4d3cdc into master Sep 4, 2025
19 checks passed
@JordiManyer JordiManyer deleted the add-eigen-support-for-tensorvalue branch September 4, 2025 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants