Julia Programming Language
Vector of upper triangle
General Usage
question
DNF
December 14, 2017, 6:23pm
4
[A[i, j] for j in indices(A, 1) for i in 1:j]
It’s allocating a little more than expected, though.
2 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
How to get upper triangular values of a `Matrix`?
General Usage
matrices
2
2187
February 10, 2023
Why is Matrix multiplication with an UpperTriangular slower than with normal Matrix?
Performance
matrices
2
516
June 30, 2021
Potential small inefficiency in `triu!` and `tril!`?
Performance
0
415
June 16, 2018
Triangular Arrays in julia?
Offtopic
25
6591
June 7, 2020
mul!(::Matrix, ::Matrix, ::UpperTriangular) is really slow
Performance
linearalgebra
4
450
October 8, 2021