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

Function IdentityMatrix

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

Source from the content-addressed store, hash-verified

125}
126
127Matrix IdentityMatrix(unsigned N)
128{
129 Matrix M(N, N);
130 for(unsigned i = 0; i < N; i++)
131 M[i][i] = 1.0;
132 return M;
133}
134
135Vector operator+(const Vector &left, const Vector &right)
136{

Callers 1

InvertMatrixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected