MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / pstore_partial

Function pstore_partial

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

Source from the content-addressed store, hash-verified

897 * offset + n <= unpacket_traits::size */
898template <typename Scalar, typename Packet>
899EIGEN_DEVICE_FUNC inline void pstore_partial(Scalar* to, const Packet& from, const Index n, const Index offset = 0) {
900 const Index packet_size = unpacket_traits<Packet>::size;
901 eigen_assert(n + offset <= packet_size && "number of elements plus offset will write past end of packet");
902 EIGEN_ALIGN_MAX Scalar elements[packet_size];
903 pstore<Scalar>(elements, from);
904 for (Index i = 0; i < numext::mini(n, packet_size - offset); i++) {
905 to[i] = elements[i + offset];
906 }
907}
908
909/** \internal copy the packet \a from to \a *to, (un-aligned store) */
910template <typename Scalar, typename Packet>

Callers 3

pstoret_partialFunction · 0.85
complex<float> >Method · 0.85
complex<double> >Method · 0.85

Calls 1

miniFunction · 0.85

Tested by

no test coverage detected