feat(tulip): implement some more SIMD

This commit is contained in:
2026-11-22 16:41:55 +01:00
parent f98615fea4
commit a8b00b32d2
15 changed files with 333 additions and 18 deletions
+7
View File
@@ -104,6 +104,13 @@ public:
const value_type* data() const { return m_view; }
const shape_type& shape() const { return m_shape; }
public:
// WARN: eval_pack does not perform bounds checks!
template <typename Isa>
auto eval_pack(std::size_t idx) noexcept {
using scalar_type = std::remove_cv_t<value_type>;
return simd::detail::load<scalar_type, Isa>(m_view + idx);
}
private:
template <typename InT, std::size_t Off, std::size_t First, std::size_t... Rest>
auto inner_view(value_type* view, std::index_sequence<First, Rest...>) {