mat_poly_compose_horizontal
stdlib/polynomial/mat_poly_compose_horizontal.nbv
mat_poly_compose_horizontal(static N, let lhs, let rhs)
No description.
- Precompiles
assert_eq!,concat!,len!,loop_flat_map!,slice_ref!,static_assert_const!- Used by
bdlop/bdlop_lattice
Source
(static N, let lhs, let rhs)
static lhs_height = static_assert_const! lhs[0]
static lhs_width = static_assert_const! lhs[1]
static rhs_height = static_assert_const! rhs[0]
static rhs_width = static_assert_const! rhs[1]
static height = assert_eq! lhs_height, rhs_height
assert_eq! (len! lhs), 2 + N * lhs_height * lhs_width
assert_eq! (len! rhs), 2 + N * rhs_height * rhs_width
static new_width = lhs_width + rhs_width
let mat = loop_flat_map! height, i {
let left = slice_ref! lhs, 2 + i * N * lhs_width, N * lhs_width
let right = slice_ref! rhs, 2 + i * N * rhs_width, N * rhs_width
concat! left, right
}
concat! height, new_width, mat