/// Returns the number of elements in row `row`, starting from
/// 0.
Returns the number of elements in row `row`, starting from
0.
Returns the number of elements in row ` row ` starting from 0 .
fn bins_in_row(mf: usize, row: usize) -> usize {
    // This is missing the cap, which has only one element
    let nrows = 7 * mf;
    if row == nrows {
        1
    } else if row > nrows {
        panic!(
            "The value received is larger than the number of rows! row = {}, nrows = {}",
            row, nrows
        )
    } else {
        // Somewhere in between
        let i = ((row as f32 + 0.5) / mf as f32).floor() as usize;
        mf * TNAZ[i]
    }
}
fn bins_in_row ( mf : usize , row : usize ) -> usize { // This is missing the cap, which has only one element let nrows = 7 * mf ; if row == nrows { 1 } else if row > nrows { panic ! ( " " row nrows ) } else { // Somewhere in between let i = ( ( row as f32 + 0.5 ) / mf as f32 ) . floor ( ) as usize ; mf * TNAZ [ i ] } }
Returns the number of elements in row `row`, starting from
0.
Returns the number of elements in row ` row ` starting from 0 .
mf
usize
row
usize