pub fn zip<A: IntoExpression, B: IntoExpression>(
a: A,
b: B,
) -> Zip<A::IntoExpr, B::IntoExpr>Expand description
Converts the arguments to expressions and zips them.
§Panics
Panics if the expressions cannot be broadcast to a common shape.
§Examples
use mdarray::{expr, expr::Expression, tensor, view};
let a = tensor![0, 1, 2];
let b = tensor![3, 4, 5];
assert_eq!(expr::zip(a, b).eval(), view![(0, 3), (1, 4), (2, 5)]);