Julia Programming Language
How to obtain the diagonal vector of a Diagonal matrix without allocations?
General Usage
question
,
linearalgebra
jishnub
October 14, 2021, 6:37pm
2
Evidently
parent
returns this
julia> parent(D) 3:4
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
How to get a matrix anti-diagonal?
New to Julia
question
,
linearalgebra
6
611
August 25, 2023
Get the diagonal of a matrix
General Usage
question
6
755
January 3, 2024
Can views function on diag?
General Usage
linearalgebra
,
views
,
feature-request
3
81
May 13, 2025
Off diagonal elements of Matrix
General Usage
14
4944
June 12, 2020
Vectorized variable assignment (assign matrix off diagonal values)
New to Julia
linearalgebra
4
2041
October 17, 2018