feat(tulip): implement some more SIMD
This commit is contained in:
@@ -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...>) {
|
||||
|
||||
Reference in New Issue
Block a user