Skip to main content

gpu_matrix_add

Function gpu_matrix_add 

Source
pub fn gpu_matrix_add(a_data: Vec<f64>, b_data: Vec<f64>) -> PyResult<Vec<f64>>
Expand description

Add two row-major matrices element-wise.

Both vectors must have the same length (= rows × cols).

§Errors

Returns PyValueError on length mismatch.