Commit cdde4f52 authored by Patrick Jaap's avatar Patrick Jaap

Fix: SymmetricMatrix, correct for-loop

There are only N diag entries.
parent a8d5cb9d
Pipeline #30183 passed with stage
in 13 minutes
......@@ -42,7 +42,7 @@ public:
static constexpr SymmetricMatrix<T,N> identityMatrix()
{
SymmetricMatrix<T,N> id;
for( size_t i=0; i<N*(N+1)/2; ++i)
for( size_t i=0; i<N; ++i)
id.setEntry(i,i,1);
return id;
......
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