NumCpp  2.1.0
A C++ implementation of the Python Numpy library
matmul.hpp
Go to the documentation of this file.
1 #pragma once
30 
31 #include "NumCpp/Functions/dot.hpp"
32 #include "NumCpp/NdArray.hpp"
33 
34 #include <complex>
35 
36 namespace nc
37 {
38  //============================================================================
39  // Method Description:
50  template<typename dtype>
51  NdArray<dtype> matmul(const NdArray<dtype>& inArray1, const NdArray<dtype>& inArray2)
52  {
53  return dot(inArray1, inArray2);
54  }
55 
56  //============================================================================
57  // Method Description:
68  template<typename dtype>
69  NdArray<std::complex<dtype>> matmul(const NdArray<dtype>& inArray1, const NdArray<std::complex<dtype>>& inArray2)
70  {
71  return dot(inArray1, inArray2);
72  }
73 
74  //============================================================================
75  // Method Description:
86  template<typename dtype>
87  NdArray<std::complex<dtype>> matmul(const NdArray<std::complex<dtype>>& inArray1, const NdArray<dtype>& inArray2)
88  {
89  return dot(inArray1, inArray2);
90  }
91 } // namespace nc
nc::dot
NdArray< dtype > dot(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition: dot.hpp:48
nc::NdArray< dtype >
NdArray.hpp
dot.hpp
nc
Definition: Coordinate.hpp:45
nc::matmul
NdArray< dtype > matmul(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition: matmul.hpp:51