Skip to content

Latest commit

 

History

History

shape

README.md

shape

Access every method through the namespace form Numeric.shape.method.

Methods

Method Description
broadcast Expands nested inputs to the requested dimensions.
expand Adds array levels around the given input.
flatten Collects every leaf value into a single array.
flip Reverses rows, columns, or every axis.
insert Places values at the given index or appends them.
join Concatenates or stacks the given arrays.
pad Adds entries around the array using the chosen mode.
remove Drops the entries at the given positions.
repeat Repeats the whole array or each entry separately.
reshape Rearranges flattened values into the target shape.
resize Truncates or pads values to fit the target shape.
roll Moves entries from the end to the front.
rotate Turns the matrix clockwise by the given count.
split Divides the array into equal or sized sections.
squeeze Drops array levels that hold a single entry.
transpose Reorders the axes of a nested array.
trim Trims leading or trailing zero values.