polars_compute::horizontal_flatten

Function horizontal_flatten_unchecked

Source
pub unsafe fn horizontal_flatten_unchecked(
    arrays: &[Box<dyn Array>],
    widths: &[usize],
    output_height: usize,
) -> Box<dyn Array>
Expand description

Low-level operation used by concat_arr. This should be called with the inner values array of every FixedSizeList array.

ยงSafety

  • arrays is non-empty
  • arrays and widths have equal length
  • All widths in widths are non-zero
  • Every array arrays[i] has a length of either
    • widths[i] * output_height
    • widths[i] (this would be broadcasted)
  • All arrays in arrays have the same type