solvr 0.2.0

Advanced computing library for real-world problem solving - optimization, differential equations, interpolation, statistics, and more
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::interpolate::error::InterpolateResult;
use crate::interpolate::impl_generic::akima::akima_slopes;
use crate::interpolate::traits::akima::AkimaAlgorithms;
use numr::runtime::cpu::{CpuClient, CpuRuntime};
use numr::tensor::Tensor;

impl AkimaAlgorithms<CpuRuntime> for CpuClient {
    fn akima_slopes(
        &self,
        x: &Tensor<CpuRuntime>,
        y: &Tensor<CpuRuntime>,
    ) -> InterpolateResult<Tensor<CpuRuntime>> {
        akima_slopes(self, x, y)
    }
}