Skip to content

Commit

Permalink
Correcting load error
Browse files Browse the repository at this point in the history
  • Loading branch information
Arafatk committed Feb 27, 2016
1 parent 4b0b375 commit 8031cc8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions spec/math_spec.rb
Expand Up @@ -356,15 +356,9 @@

it "should vertify a*b*a = a and b*a*b = b" do
a = NMatrix.new([2, 3], [1, 2, 3, 4, 5, 6], dtype: dtype)
b = a.pinv

begin
require 'nmatrix/atlas'
rescue LoadError
puts "atlas plugin is not available"
end

begin
b = a.pinv
expect(a.dot(b.dot(a))).to be_within(err).of(a)
expect(b.dot(a.dot(b))).to be_within(err).of(b)
rescue NotImplementedError
Expand Down

0 comments on commit 8031cc8

Please sign in to comment.