MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / pscatter_partial

Function pscatter_partial

include/Eigen/Eigen/src/Core/GenericPacketMath.h:905–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903{ pstore(to, from); }
904
905template<typename Scalar, typename Packet> EIGEN_DEVICE_FUNC inline void pscatter_partial(Scalar* to, const Packet& from, Index stride, const Index n)
906{
907 const Index packet_size = unpacket_traits<Packet>::size;
908 EIGEN_ALIGN_MAX Scalar elements[packet_size];
909 pstore<Scalar>(elements, from);
910 for (Index i = 0; i < numext::mini(n,packet_size); i++) {
911 to[i*stride] = elements[i];
912 }
913}
914
915/** \internal tries to do cache prefetching of \a addr */
916template<typename Scalar> EIGEN_DEVICE_FUNC inline void prefetch(const Scalar* addr)

Callers 1

storeBF16fromResultFunction · 0.85

Calls 1

miniFunction · 0.85

Tested by

no test coverage detected