Bug #7208 » eigenvalue_decomposition.rb.patch
lib/matrix/eigenvalue_decomposition.rb (working copy) | ||
---|---|---|
elsif imag > 0
|
||
Array.new(@size){|j| Complex(@v[j][i], @v[j][i+1])}
|
||
else
|
||
Array.new(@size){|j| Complex(@v[j][i], -@v[j][i-1])}
|
||
Array.new(@size){|j| Complex(@v[j][i-1], -@v[j][i])}
|
||
end
|
||
end
|
||
end
|