I don’t think that’s implemented as a function. It’s pretty trivial to do,
though:
function shift_to_upper_triangular(A::Matrix)
ret = zeros(A)
for i in 1:size(A,1)
for j in i:size(A,2)
ret[i,j] = A[i,j-i+1]
end
end
ret
end
// T
On Tuesday, October 6, 2015 at 10:43:19 AM UTC+2, Alex wrote:
Sorry if it's out of topic of the group.
>
> What is the name of the operation which makes transformation :
>
> [a b c; d e f; g h t] -> [a b c; 0 d e; 0 0 g]
>
> It shifts rows to the right and fills left trailing values by zeros.
>