Commit 01b0f10a authored by Davis King's avatar Davis King

Changed the code so that the implicit conversion of a matrix to

a scalar can trigger any appropriate BLAS calls.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402772
parent a46fa420
......@@ -171,7 +171,13 @@ namespace dlib
<< "\n\tnc(): " << nc()
<< "\n\tthis: " << this
);
return ref_(0,0);
// Put the expression contained in this matrix_exp into
// a temporary 1x1 matrix so that the expression will encounter
// all the overloads of matrix_assign() and have the chance to
// go through any applicable optimizations.
matrix<type,1,1> temp(ref_);
return temp(0);
}
protected:
......
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