Actions
Feature #15869
closedAdd abs to Matrix
Feature #15869:
Add abs to Matrix
Description
While I was studying Markov Chain I had to find the maximum absolute value of the Matrix to divide the matrix in numbers from 0 to 1 to be able to make further analysis. Like this:
q = Matrix[ ... ]
max = q.to_a.flatten.map { |e| e.abs }.max
q = q / max
So this is the first of two features that I would like to contribute.
- Matrix.abs
- Matrix.max
Actions