Commit 481d911b authored by Kirill Terekhov's avatar Kirill Terekhov

Fix a bug

Access to protected members of class when argument has different
template parameter.
parent eef2ef04
......@@ -765,8 +765,8 @@ namespace INMOST
template<typename typeB>
typename Promote<Var,typeB>::type DotProduct(const Matrix<typeB> & other) const
{
assert(n == other.n);
assert(m == other.m);
assert(Cols() == other.Cols());
assert(Rows() == other.Rows());
typename Promote<Var,typeB>::type ret = 0.0;
for(enumerator i = 0; i < n; ++i)
for(enumerator j = 0; j < m; ++j)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment