Skip to content

Conversation

@deniz-unal
Copy link
Contributor

This fix resolves a compilation error gelsd.tcc:146:25: error: invalid conversion from 'const float*' to 'cxxlapack::FLOAT_COMPLEX*' when linalg::lstsq is called with complex arguments.
Note that complex<double> and other types were unaffected.

  • A test case that demonstrates the issue is added to test/test_linalg.cpp
  • The fix adds const to the relevant interface to correctly match the expected input data type
  • The test compiles and passes with this fix

deniz-unal and others added 5 commits June 17, 2025 12:12
Add a test case to show the issue when using <std::complex<float>> with lstsq
Resolves compile error when lstsq is called with complex float arguments.
@JohanMabille
Copy link
Member

Thanks for the fix!

@JohanMabille JohanMabille merged commit f7563c4 into xtensor-stack:master Jul 15, 2025
17 checks passed
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