Atom - Œd - Matrix Antidiagonals

Characters: Π, d

Tags: miscellaneous , matrix , vectorize

Arity: monadic

This atom is monadic, which means it takes one argument.

Functionality

Return the antidiagonals of z, starting with the main antidiagonal.

Details

Following the main diagonal, each diagonal is outputted going to the left. Diagonals will not wrap around, so [1,2],[3,4] ŒD returns [[2, 3], [1], [4]] and not [[2, 3], [1, 4]].