We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Matrix{Float32}(3, 4) # works Matrix{Float32}(0x3, 0x4) # works Matrix{Float32}((3, 4)) # works Matrix{Float32}((0x3, 0x4)) # errors
Would it be possible to broaden the Matrix(Tuple) constructor to allow types <: Integer in the Tuple?
Matrix(Tuple)
<: Integer
Other constructors work:
julia> zeros(0x3,0x4) 3×4 Array{Float64,2}: 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 julia> zeros((0x3,0x4)) 3×4 Array{Float64,2}: 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
The text was updated successfully, but these errors were encountered:
#17372 and specifically #17372 (comment)
Sorry, something went wrong.
Array{T,N} constructors with different Integer combinations, fix #23029
187ae65
Matrix construction now accepts Integer:
Integer
julia> Matrix{Float32}(undef,(4,0x3)) 4×3 Matrix{Float32}: 2.34387f-37 -7.34996f34 -7.34996f34 4.5867f-41 4.5866f-41 4.5866f-41 -7.34996f34 -7.34996f34 2.34407f-37 4.5866f-41 4.5866f-41 4.5867f-41
No branches or pull requests
Would it be possible to broaden the
Matrix(Tuple)
constructor to allow types<: Integer
in the Tuple?Other constructors work:
The text was updated successfully, but these errors were encountered: