Coverage Report

Created: 2026-05-16 06:09

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/rust/registry/src/index.crates.io-1949cf8c6b5b557f/sofars-0.6.1/src/vm/pvmpv.rs
Line
Count
Source
1
use crate::vm::pmp;
2
3
/// Subtract one pv-vector from another.
4
///
5
/// Status:  vector/matrix support function.
6
///
7
/// Given:
8
///    a       [[f64; 3]; 2]      first pv-vector
9
///    b       [[f64; 3]; 2]      second pv-vector
10
///
11
/// Returned:
12
///    amb     [[f64; 3]; 2]      a - b
13
#[inline]
14
0
pub fn pvmpv(a: &[[f64; 3]; 2], b: &[[f64; 3]; 2]) -> [[f64; 3]; 2] {
15
0
    let mut amb = [[0.0; 3]; 2];
16
0
    amb[0] = pmp(&a[0], &b[0]);
17
0
    amb[1] = pmp(&a[1], &b[1]);
18
0
    amb
19
0
}