-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
oneunit of unitfull matrix should return a unitfull matrix #30227
Conversation
Looks like a bug, thanks! By the way, why does this file still have a docstring for ones? Wasn’t that deprecated? |
I thought so too, but apparently it's still there and exported, along with julia> ones
ones (generic function with 6 methods)
help?> ones
search: ones leading_ones trailing_ones countlines count_ones to_indices RoundNearest
ones([T=Float64,] dims...)
Create an Array, with element type T, of all ones with size specified by dims. See
also: fill, zeros.
Examples
≡≡≡≡≡≡≡≡≡≡
julia> ones(1,2)
1×2 Array{Float64,2}:
1.0 1.0
julia> ones(ComplexF64, 2, 3)
2×3 Array{Complex{Float64},2}:
1.0+0.0im 1.0+0.0im 1.0+0.0im
1.0+0.0im 1.0+0.0im 1.0+0.0im
julia> zeros
zeros (generic function with 6 methods)
help?> zeros
search: zeros count_zeros set_zero_subnormals get_zero_subnormals leading_zeros
zeros([T=Float64,] dims...)
Create an Array, with element type T, of all zeros with size specified by dims. See
also fill, ones.
Examples
≡≡≡≡≡≡≡≡≡≡
julia> zeros(1)
1-element Array{Float64,1}:
0.0
julia> zeros(Int8, 2, 3)
2×3 Array{Int8,2}:
0 0 0
0 0 0 @Sacha0, didn't you delete these? |
We tried: #25507 |
Oh wow, I totally misremembered that as actually happening. I guess it was the removal of all the uses that I remembered. Eh, I'm fairly ok with still having |
❤️ |
Applying
oneunit
to an matrix of unitfull element type should return a matrix of same type.but we have currently: