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
The transpose of a 1x1 matrix is itself, right? Julia disagrees.
julia> A = [1] 1-element Array{Int64,1}: 1 julia> A == A' false
The text was updated successfully, but these errors were encountered:
A is not a matrix, its a vector:
A
julia> A = fill(1, 1, 1) 1×1 Array{Int64,2}: 1 julia> A == A' true
Sorry, something went wrong.
Is this behavior also expected?
julia> A = [1 2 3] 1×3 Array{Int64,2}: 1 2 3 julia> B = [1, 2, 3] 3-element Array{Int64,1}: 1 2 3 julia> A' 3×1 LinearAlgebra.Adjoint{Int64,Array{Int64,2}}: 1 2 3 julia> B' 1×3 LinearAlgebra.Adjoint{Int64,Array{Int64,1}}: 1 2 3 julia> A == B' true julia> A' == B false
It is. For further reading see JuliaLang/LinearAlgebra.jl#42. You can also ask questions on Discourse.
No branches or pull requests
The transpose of a 1x1 matrix is itself, right?
Julia disagrees.
The text was updated successfully, but these errors were encountered: