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

Function MatrixConcatenateCols

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

Source from the content-addressed store, hash-verified

265}
266
267Matrix MatrixConcatenateCols(const Matrix& left, const Matrix& right)
268{
269 wxASSERT(left.Rows() == right.Rows());
270 Matrix M(left.Rows(), left.Cols() + right.Cols());
271 for(unsigned i = 0; i < left.Rows(); i++) {
272 for(unsigned j = 0; j < left.Cols(); j++)
273 M[i][j] = left[i][j];
274 for(unsigned j = 0; j < right.Cols(); j++)
275 M[i][j+left.Cols()] = right[i][j];
276 }
277 return M;
278}
279
280Matrix TransposeMatrix(const Matrix& other)
281{

Callers 1

InterpolateAudioFunction · 0.85

Calls 2

RowsMethod · 0.80
ColsMethod · 0.80

Tested by

no test coverage detected