[][src]Function rulinalg::utils::ele_div

pub fn ele_div<T: Copy + Div<T, Output = T>>(u: &[T], v: &[T]) -> Vec<T>

Computes elementwise division.

Examples

use rulinalg::utils;
let a = vec![1.0, 2.0, 3.0, 4.0];
let b = vec![1.0, 2.0, 3.0, 4.0];

let c = utils::ele_div(&a,&b);

assert_eq!(c, vec![1.0; 4]);