mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 12:33:56 +02:00
parent
8187228de0
commit
d8c8b79d24
Notes:
git
2021-01-11 06:21:37 +09:00
Merged-By: marcandre <github@marc-andre.ca>
2 changed files with 17 additions and 4 deletions
|
@ -1239,7 +1239,7 @@ class Matrix
|
|||
when Integer
|
||||
case
|
||||
when exp == 0
|
||||
_make_sure_it_is_invertible = inverse
|
||||
raise ErrDimensionMismatch unless square?
|
||||
self.class.identity(column_count)
|
||||
when exp < 0
|
||||
inverse.power_int(-exp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue