UpperTriangular¶
Extract the upper triangular part of a symmetric matrix.
This also works with data that is a multi-way array but which has two dimensions of same length, such that the slices along these two dimensions can be interpreted as matrices. This node allows to specify the axes that constitute the edges of the matrix, and will replace these two axes by a new axis of type feature that has only the upper-triangular elements, vectorized. The new axis will appear at the beginning of the data. A common use case is when one calculates a value between all pairs of channels, but only wants to retain half of the values due to symmetry. In this case, one would specify both axes as space. Version 1.1.0
Ports/Properties¶
data¶
Data to process.
axis1¶
First axis of matrix. This is the first axis type that runs along the matrix from which we want select the upper triangular part. You can also enter the axis label here as in space.mylabel. (If the incoming data is an array instead of a Packet, you may specify the axis index here.)
axis2¶
Second axis of matrix. This is the second axis type that runs along the matrix from which we want select the upper triangular part. You can also enter the axis label here as in space.mylabel. (If the incoming data is an array instead of a Packet, you may specify the axis index here.)
use_lower¶
Use lower triangular matrix instead. If selected, the lower triangular part is taken instead.
diagonal_offset¶
Diagonal offset. Allows to shift the diagonal up (positive values) or down (negative values). 0 is the regular diagonal.
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.