Commit 858252b4 authored by Patrick Jaap's avatar Patrick Jaap

Merge branch 'fix/identity-matrix' into 'master'

Fix: SymmetricMatrix, correct for-loop

See merge request !78
parents bff4dec7 cdde4f52
Pipeline #30818 passed with stage
in 11 minutes and 38 seconds
......@@ -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