Skip to content
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

Need to include using LinearAlgebra for svd to work #89

Open
gvdeynde opened this issue Jun 1, 2022 · 3 comments
Open

Need to include using LinearAlgebra for svd to work #89

gvdeynde opened this issue Jun 1, 2022 · 3 comments

Comments

@gvdeynde
Copy link

gvdeynde commented Jun 1, 2022

using GenericLinearAlgebra
svd(big.([1,2;3,4]))

returns

UndefVarError: svd not defined

Stacktrace:
 [1] top-level scope
   @ In[2]:1
 [2] eval
   @ .\boot.jl:373 [inlined]
 [3] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
   @ Base .\loading.jl:1196

If I add using LinearAlgebra before using GenericLinearAlgebra, it works.

This is, to me, a bit counter-intuitive.

@andreasnoack
Copy link
Member

andreasnoack commented Jun 2, 2022

Yeah. It would make sense to reexport LinearAlgebra. It's unlikely that you'd only like to load this package without LinearAlgebra.

@gvdeynde
Copy link
Author

gvdeynde commented Jun 2, 2022

I don't know. My use-case: I only needed a bigfloat svd decomposition...

@LilithHafner
Copy link

The svd function is defined in LinearAlgebra, so unfortunately with the current design you will need LinearAlgebra for that. On the other hand, unless you are manually excising packages from the sysimg you need LinearAlgebra for println("hello world").

Tangentially related: JuliaLang/LinearAlgebra.jl#978

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

No branches or pull requests

3 participants