MCPcopy Create free account
hub / github.com/audacity/audacity / MatrixMultiply

Function MatrixMultiply

libraries/lib-math/Matrix.cpp:243–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243Matrix MatrixMultiply(const Matrix &left, const Matrix &right)
244{
245 wxASSERT(left.Cols() == right.Rows());
246 Matrix M(left.Rows(), right.Cols());
247 for(unsigned i = 0; i < left.Rows(); i++)
248 for(unsigned j = 0; j < right.Cols(); j++) {
249 M[i][j] = 0.0;
250 for(unsigned k = 0; k < left.Cols(); k++)
251 M[i][j] += left[i][k] * right[k][j];
252 }
253 return M;
254}
255
256Matrix MatrixSubset(const Matrix &input,
257 unsigned startRow, unsigned numRows,

Callers 1

InterpolateAudioFunction · 0.85

Calls 2

ColsMethod · 0.80
RowsMethod · 0.80

Tested by

no test coverage detected