Template Function Pennylane::LightningQubit::Util::vecMatrixProd(const std::vector<T, AllocA>&, const std::vector<T, AllocB>&, size_t, size_t)

Function Documentation

template<class T, class AllocA, class AllocB>
inline auto Pennylane::LightningQubit::Util::vecMatrixProd(const std::vector<T, AllocA> &v_in, const std::vector<T, AllocB> &mat, size_t m, size_t n) -> std::vector<T>

Calculates the vector-matrix product using the best available method.

See also

inline void vecMatrixProd(const T *v_in, const T *mat, T *v_out, size_t m, size_t n)