HULLSHAPE

liststensors
Available on all platforms
Since v2.1.0

Return the shape of a tensor (or multidimensional array) that would be able to contain all the values of an input nested list. The size of the returned shape is equal to the deepest level of nesting plus one. Its i-th value is equal to the size of the largest list that is nested i levels deep.

See Also

Signature

list LISTHULLSHAPE shape LIST
StackNameTypeDescription
[TOP]listLIST

The input list.

[TOP]shapeLIST

The hull shape of the input list.

{
list LIST
}
HULLSHAPE shape LIST
StackNameTypeDescription
[TOP]listLIST

The input list.

[TOP]shapeLIST

The hull shape of the input list.

Found an issue on this page or something missing? A question about this function?

Tell us onSlack iconThe Lounge, the Warp 10 Community Slack.