Skip to main content

stack_add

Function stack_add 

Source
pub fn stack_add<T, const N: usize>(
    a: &StackArray<T, N>,
    b: &StackArray<T, N>,
) -> StackArray<T, N>
where T: Float + NumAssignOps + Copy + Default,
Expand description

Stack-based computation for element-wise operations

Performs operations without heap allocation, suitable for embedded systems.

ยงExample

use scirs2_core::embedded::StackArray;

let a = StackArray::<f32, 8>::new();
let b = StackArray::<f32, 8>::new();
// Perform element-wise operations