Ratio

Description

Calculates an element-wise ratio of two arrays or matrices.

Inputs

  1. ratio.top — the nominator: array or matrix \(A\).

  2. ratio.bottom — the denominator: array or matrix \(B\).

All the inputs have to be of the same dimension.

Outputs

  1. 'ratio.ratio' — the ratio \(R\).

Implementation

Computes a ratio \(R\):

\[R_{ij} = \frac{A_{ij}}{B_{ij}}\]