jruby-head may fail
reduce matrix