name: add_algo description: Add new algorithm to the library.
Add New Algorithm
- algorithm should be added to
algomodule - algorithm function should has prefix
ta_ - numeric type should be generic as
NumT: Float + Send + Sync - conditional type should be
bool - first argument should be
ctx: &Context, handlectx.flags - second argument should be
r: &mut [NumT]orr: &mut [bool]by algorithm type, output buffer - implement template can be referenced from
ta_mafromalgo/ma.rs - check input/output buffer length matches
- fast return if no calculation needed
- parallel calculation with
ctx.groups - add document for the new algorithm
- add test for the new algorithm