Created
April 21, 2011 05:41
-
-
Save nelsnelson/933787 to your computer and use it in GitHub Desktop.
Ruby script for demonstrating Matrix failure with JRuby 1.6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require 'matrix' | |
a = [ [ 1, 2, 3 ], [ :a, :b, :c ], [ 'x', 'y', 'z' ], [ '#', '%' ] ] | |
puts "Attempting to create a matrix" | |
puts "a = [" | |
a.each { |x| puts " #{x.inspect}" } | |
puts "]" | |
puts "Matrix.columns(a)" | |
puts Matrix.columns(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment