Skip to content

Commit

Permalink
usage of create_identity_matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Jun 3, 2012
1 parent 96dc418 commit 525eb66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/undocumented/libshogun/mathematics_lapack.cpp
Expand Up @@ -63,10 +63,7 @@ void test_ev()
void test_matrix_multiply()
{
index_t n=10;
SGMatrix<float64_t> I(n, n);
CMath::fill_vector(I.matrix, n*n, 0.0);
for (index_t i=0; i<n; ++i)
I(i,i)=1.0;
SGMatrix<float64_t> I=CMath::create_identity_matrix(n,1.0);

index_t m=4;
SGMatrix<float64_t> A(n, m);
Expand Down

0 comments on commit 525eb66

Please sign in to comment.