NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
matmul.hpp
Go to the documentation of this file.
1
#pragma once
29
30
#include "
NumCpp/Functions/dot.hpp
"
31
#include "
NumCpp/NdArray.hpp
"
32
33
#include <complex>
34
35
namespace
nc
36
{
37
//============================================================================
38
// Method Description:
49
template
<
typename
dtype>
50
NdArray<dtype>
matmul
(
const
NdArray<dtype>
& inArray1,
const
NdArray<dtype>
& inArray2)
51
{
52
return
dot
(inArray1, inArray2);
53
}
54
55
//============================================================================
56
// Method Description:
67
template
<
typename
dtype>
68
NdArray<std::complex<dtype>
>
matmul
(
const
NdArray<dtype>
& inArray1,
const
NdArray
<std::complex<dtype>>& inArray2)
69
{
70
return
dot
(inArray1, inArray2);
71
}
72
73
//============================================================================
74
// Method Description:
85
template
<
typename
dtype>
86
NdArray<std::complex<dtype>
>
matmul
(
const
NdArray
<std::complex<dtype>>& inArray1,
const
NdArray<dtype>
& inArray2)
87
{
88
return
dot
(inArray1, inArray2);
89
}
90
}
// namespace nc
nc::dot
NdArray< dtype > dot(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition:
dot.hpp:47
nc::NdArray< dtype >
NdArray.hpp
dot.hpp
nc
Definition:
Coordinate.hpp:44
nc::matmul
NdArray< dtype > matmul(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition:
matmul.hpp:50
include
NumCpp
Functions
matmul.hpp
Generated by
1.8.17