30#include <initializer_list>
51 template<
typename dtype>
56 typename std::initializer_list<NdArray<dtype>>::iterator iter = inList.begin();
58 if (inList.size() == 0)
62 else if (inList.size() == 1)
69 for (; iter < inList.end(); ++iter)
71 returnArray =
dot(returnArray, *iter);
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition Error.hpp:37
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition StaticAsserts.hpp:56
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:135
Definition cholesky.hpp:41
NdArray< dtype > multi_dot(const std::initializer_list< NdArray< dtype > > &inList)
Definition multi_dot.hpp:52
NdArray< dtype > dot(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition dot.hpp:48