Skip to content

Commit

Permalink
Forgot to handle errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsimcha committed Dec 17, 2011
1 parent 1a7670a commit 9653b9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scid/linalg.d
Expand Up @@ -8,6 +8,7 @@ module scid.linalg;

import std.algorithm : min;
import std.conv;
import std.exception;
import std.string;
import std.traits;

Expand Down Expand Up @@ -485,6 +486,7 @@ if( isMatrix!Matrix && Matrix.storageOrder == StorageOrder.ColumnMajor ) {
ret.u.leading, ret.vt.data, ret.vt.leading, work, lwork, info
);

enforce(info == 0, "Lapack error in computing SVD: " ~ to!string(info));
return ret;
}

Expand Down

0 comments on commit 9653b9d

Please sign in to comment.