Template Function Pennylane::LightningQubit::Util::vecMatrixProd(std::vector<T, AllocA>&, const std::vector<T, AllocB>&, const std::vector<T, AllocC>&, std::size_t, std::size_t)¶
Defined in File LinearAlgebra.hpp
Function Documentation¶
-
template<class T, class AllocA, class AllocB, class AllocC>
inline void Pennylane::LightningQubit::Util::vecMatrixProd(std::vector<T, AllocA> &v_out, const std::vector<T, AllocB> &v_in, const std::vector<T, AllocC> &mat, std::size_t m, std::size_t n)¶ 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, std::size_t m, std::size_t n)
api/function_LinearAlgebra_8hpp_1a4a3ed5b692493c8c4a1d833dd0f12278
Download Python script
Download Notebook
View on GitHub