Fix outer_product.

This commit is contained in:
Relintai 2023-02-06 14:24:11 +01:00
parent e594aec785
commit 879464fe0d

View File

@ -1437,7 +1437,7 @@ std::vector<std::vector<real_t>> MLPPLinAlg::outerProduct(std::vector<real_t> a,
Ref<MLPPMatrix> MLPPLinAlg::outer_product(const Ref<MLPPVector> &a, const Ref<MLPPVector> &b) { Ref<MLPPMatrix> MLPPLinAlg::outer_product(const Ref<MLPPVector> &a, const Ref<MLPPVector> &b) {
Ref<MLPPMatrix> C; Ref<MLPPMatrix> C;
C.instance(); C.instance();
Size2i size = Size2i(a->size(), b->size()); Size2i size = Size2i(b->size(), a->size());
C->resize(size); C->resize(size);
const real_t *a_ptr = a->ptr(); const real_t *a_ptr = a->ptr();