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

Allow Val{:_} parameter in chol(::Number, ...), not only a symbol. #13479

Closed
wants to merge 1 commit into from

Conversation

mschauer
Copy link
Contributor

@mschauer mschauer commented Oct 7, 2015

Define also chol(::Number::Union{Type{Val{:L}}, Type{Val{:U}}}, as
chol(a::AbstractMatrix, uplo::Symbol) is deprecated.

@@ -94,7 +94,8 @@ function chol!(x::Number, uplo)
rxr = sqrt(rx)
convert(promote_type(typeof(x), typeof(rxr)), rxr)
end
chol(x::Number, uplo::Symbol=:U) = chol!(x, uplo)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this. I think it would be better just to remove the typing, i.e. chol(x::Number, uplo...) = chol!(x). Do you see any problems with that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be ok, I cannot really think of something which deserves the name number where this would be a problem.

@kshyatt kshyatt added the linear algebra Linear algebra label Oct 8, 2015
@mschauer
Copy link
Contributor Author

This is superseeded by https://github.com/JuliaLang/julia/pull/13680/files. Should it be backported to 0.4?

@tkelman
Copy link
Contributor

tkelman commented Oct 23, 2015

We don't generally backport syntax changes, renames, deprecations etc.

@mschauer
Copy link
Contributor Author

This is not a syntax change and nothing new, this is just adding a missing method definition which was left out by oversight.

@mschauer mschauer closed this Oct 23, 2015
@tkelman
Copy link
Contributor

tkelman commented Oct 23, 2015

Sorry, thought you were asking if #13680 should be backported. If you want to open against release-0.4 with the version @andreasnoack suggested, and a test, I think that would be okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants