Template Function Pennylane::LightningQubit::Util::matrixMatProd(const std::vector<std::complex<T>>, const std::vector<std::complex<T>>, size_t, size_t, size_t, Trans)¶
Defined in File LinearAlgebra.hpp
Function Documentation¶
-
template<class T>
inline auto Pennylane::LightningQubit::Util::matrixMatProd(const std::vector<std::complex<T>> m_left, const std::vector<std::complex<T>> m_right, size_t m, size_t n, size_t k, Trans transpose = Trans::NoTranspose) -> std::vector<std::complex<T>>¶ Calculates the matrix-matrix product using the best available method.
See also
void matrixMatProd(const std::complex<T> *m_left, const std::complex<T> *m_right, std::complex<T> *m_out, size_t m, size_t n, size_t k, size_t nthreads = 1, bool transpose = false)
Note
consider transpose=true, to get a better performance. To transpose a matrix efficiently, check Util::Transpose
api/function_LinearAlgebra_8hpp_1a91cd351d60d3a4fa1c4e3f4a11681394
Download Python script
Download Notebook
View on GitHub