Julia Programming Language
Vector of upper triangle
General Usage
question
GunnarFarneback
December 14, 2017, 3:57pm
2
M[triu(trues(M))]
See also
Half Vectorization
3 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
How to get upper triangular values of a `Matrix`?
General Usage
matrices
2
2173
February 10, 2023
Why is Matrix multiplication with an UpperTriangular slower than with normal Matrix?
Performance
matrices
2
510
June 30, 2021
Potential small inefficiency in `triu!` and `tril!`?
Performance
0
412
June 16, 2018
Triangular Arrays in julia?
Offtopic
25
6546
June 7, 2020
mul!(::Matrix, ::Matrix, ::UpperTriangular) is really slow
Performance
linearalgebra
4
439
October 8, 2021