fixed issue #2445
Merge pull request #2451 from khalednasr/linalg

fixed issue #2445