lib/nmatrix/shortcuts.rb in nmatrix-0.2.0 vs lib/nmatrix/shortcuts.rb in nmatrix-0.2.1

- old
+ new

@@ -89,12 +89,12 @@ # 6 # 9 # # SYNTAX COMPARISON: # - # MATLAB: a = [ [1 2 3] ; [4 5 6] ] or [ 1 2 3 ; 4 5 6 ] - # IDL: a = [ [1,2,3] , [4,5,6] ] - # NumPy: a = array( [1,2,3], [4,5,6] ) + # MATLAB: a = [ [1 2 3] ; [4 5 6] ] or [ 1 2 3 ; 4 5 6 ] + # IDL: a = [ [1,2,3] , [4,5,6] ] + # NumPy: a = array( [1,2,3], [4,5,6] ) # # SciRuby: a = NMatrix[ [1,2,3], [4,5,6] ] # Ruby array: a = [ [1,2,3], [4,5,6] ] def [](*params) options = params.last.is_a?(Hash) ? params.pop : {}