Skip to content

Commit 4e7ddcd

Browse files
WIP
1 parent 64e2960 commit 4e7ddcd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/xsimd/arch/xsimd_rvv.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,13 @@ namespace xsimd
13351335
return result;
13361336
}
13371337

1338+
// first
1339+
template <class A, class T>
1340+
XSIMD_INLINE T first(batch<T, A> const& arg, requires_arch<rvv>) noexcept
1341+
{
1342+
return detail::rvvmv_lane0(arg);
1343+
}
1344+
13381345
// insert
13391346
template <class A, class T, size_t I, detail::rvv_enable_all_t<T> = 0>
13401347
XSIMD_INLINE batch<T, A> insert(batch<T, A> const& arg, T val, index<I>, requires_arch<rvv>) noexcept

0 commit comments

Comments
 (0)