Ah ok I thought you ment to replace it. Anyway, I figured that it works like that:
thank you very much for your input.Code:float& Matrix::operator()(const int nRow, const int nCol) const { return m_pfMatrix[nRow * m_nColCount + nCol]; }
replax
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 27
Thread: matrix multiplicationThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |