git-svn-id: svn://db.shs.com.ru/pip@766 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2019-02-27 19:29:54 +00:00
parent b2da8546f5
commit 1a885aa086

View File

@@ -527,11 +527,11 @@ inline PIMathVector<Type> operator *(const PIMathMatrix<Type> & fm,
PIMathVector<Type> tv(r); PIMathVector<Type> tv(r);
if (c != sv.size()) return tv; if (c != sv.size()) return tv;
Type t; Type t;
for (uint i = 0; i < r; ++i) { for (uint j = 0; j < r; ++j) {
t = Type(0); t = Type(0);
for (uint j = 0; j < c; ++j) for (uint i = 0; i < c; ++i)
t += fm.element(j, i) * sv[j]; t += fm.element(j, i) * sv[i];
tv[i] = t; tv[j] = t;
} }
return tv; return tv;
} }