Method: MyMatrix#+
- Defined in:
- lib/mymatrix.rb
#+(other) ⇒ Object
未検証
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/mymatrix.rb', line 261 def +(other) out = MyipcMatrix.new othHeaders = other.getHeaders selHeaders = getHeaders selHeaders.each do |header| out.addColumn(header, getColumn(header)) end othHeaders.each do |header| out.addColumn(header, other.getColumn(header)) end return out end |