Skip to content

Instantly share code, notes, and snippets.

@nelsnelson
Created April 21, 2011 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nelsnelson/933787 to your computer and use it in GitHub Desktop.
Save nelsnelson/933787 to your computer and use it in GitHub Desktop.
Ruby script for demonstrating Matrix failure with JRuby 1.6
#! /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