Template Function Pennylane::Util::matrixVecProd(const std::vector<std::complex<T>>&, const std::vector<std::complex<T>>&, size_t, size_t, Trans)¶
Defined in File LinearAlgebra.hpp
Function Documentation¶
-
template<class T>
inline auto Pennylane::Util::matrixVecProd(const std::vector<std::complex<T>> &mat, const std::vector<std::complex<T>> &v_in, size_t m, size_t n, Trans transpose = Trans::NoTranspose) -> std::vector<std::complex<T>>¶ Calculates the matrix-vector product using the best available method.
See also
void matrixVecProd(const std::complex<T> *mat, const std::complex<T> *v_in, std::complex<T> *v_out, size_t m, size_t n, size_t nthreads = 1, bool transpose = false)
api/function_LinearAlgebra_8hpp_1a0cdaac2cb2f688ab4b86b06876642635
Download Python script
Download Notebook
View on GitHub