From 1a885aa0866143069f1866fc9f5320ffd2558fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Wed, 27 Feb 2019 19:29:54 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@766 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/math/pimathmatrix.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src_main/math/pimathmatrix.h b/src_main/math/pimathmatrix.h index f9c3e973..09e6905c 100644 --- a/src_main/math/pimathmatrix.h +++ b/src_main/math/pimathmatrix.h @@ -527,11 +527,11 @@ inline PIMathVector operator *(const PIMathMatrix & fm, PIMathVector tv(r); if (c != sv.size()) return tv; Type t; - for (uint i = 0; i < r; ++i) { + for (uint j = 0; j < r; ++j) { t = Type(0); - for (uint j = 0; j < c; ++j) - t += fm.element(j, i) * sv[j]; - tv[i] = t; + for (uint i = 0; i < c; ++i) + t += fm.element(j, i) * sv[i]; + tv[j] = t; } return tv; }