unify_product_operator.patch

gogo tanaka, 07/18/2014 08:11 AM

Download (879 Bytes)

View differences:

lib/matrix.rb
894 894
      return apply_through_coercion(m, __method__)
895 895
    end
896 896

  
897
    Matrix.Raise ErrDimensionMismatch unless row_count == m.row_count and column_count == m.column_count
897
    Matrix.Raise ErrDimensionMismatch unless row_count == m.row_count && column_count == m.column_count
898 898

  
899 899
    rows = Array.new(row_count) {|i|
900 900
      Array.new(column_count) {|j|
......
921 921
      return apply_through_coercion(m, __method__)
922 922
    end
923 923

  
924
    Matrix.Raise ErrDimensionMismatch unless row_count == m.row_count and column_count == m.column_count
924
    Matrix.Raise ErrDimensionMismatch unless row_count == m.row_count && column_count == m.column_count
925 925

  
926 926
    rows = Array.new(row_count) {|i|
927 927
      Array.new(column_count) {|j|