tensor_vec_mul

Function tensor_vec_mul 

Source
pub fn tensor_vec_mul(
    tensor: &ArrayD<f64>,
    vector: &[f64],
) -> Result<ArrayD<f64>, String>
Expand description

Performs tensor-vector multiplication.

ยงErrors

Returns an error if the tensor has zero dimensions or if the last dimension mismatches the vector size.