Method: Matrix#join_right

Defined in:
lib/y_support/stdlib_ext/matrix/misc.rb

#join_right(other) ⇒ Object

join_right methods

Raises:

  • (ArgumentError)


72
73
74
75
# File 'lib/y_support/stdlib_ext/matrix/misc.rb', line 72

def join_right other;
  raise ArgumentError, "Row size mismatch" unless row_size == other.row_size
  ( t.join_bottom( other.t ) ).t
end