Package: ruby2.1
Version: 2.1.2-4
Followup-For: Bug #761405
Here is a patch that fixes the problem.
$ diff -u /usr/lib/ruby/2.1.0/matrix.rb matrix.rb
--- /usr/lib/ruby/2.1.0/matrix.rb 2014-05-08 09:46:50.000000000 -0600
+++ matrix.rb 2014-09-13 10:38:50.000000000 -0600
@@ -1764,9 +1764,9 @@
#
def cross_product(v)
Vector.Raise ErrDimensionMismatch unless size == v.size && v.size == 3
- Vector[ v[1]*@elements[2] - v[2]*@elements[1],
- v[2]*@elements[0] - v[0]*@elements[2],
- v[0]*@elements[1] - v[1]*@elements[0] ]
+ Vector[ @elements[1]*v[2] - @elements[2]*v[1],
+ @elements[2]*v[0] - @elements[0]*v[2],
+ @elements[0]*v[1] - @elements[1]*v[0] ]
end
#
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Versions of packages ruby2.1 depends on:
ii libc6 2.19-10
ii libgmp10 2:6.0.0+dfsg-6
ii libruby2.1 2.1.2-4
ii rubygems-integration 1.8
Versions of packages ruby2.1 recommends:
ii libjs-jquery 1.7.2+dfsg-3.2
ruby2.1 suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]