The diagonal function#
Aliases#
halerium.core.diagonal
halerium.core.math.diagonal
- diagonal(operand, offset=0, axis1=0, axis2=1)#
Extract diagonals.
- Parameters:
operand – The operand from which to extract diagonals.
offset – The offset of the diagonal from the main diagonal.
axis1 –
- The axis used as the first axis of the two-dimensional sub-arrays
from which the diagonals are taken.
axis2 –
- The axis used as the second axis of the two-dimensional sub-arrays
from which the diagonals are taken.
- Returns:
operator – The halerium Operator representing the operation.
- Return type: