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
16
17
use crate::interpolate::error::InterpolateResult;
use crate::interpolate::impl_generic::scattered::griddata_impl;
use crate::interpolate::traits::scattered::{ScatteredInterpAlgorithms, ScatteredMethod};
use numr::runtime::wgpu::{WgpuClient, WgpuRuntime};
use numr::tensor::Tensor;

impl ScatteredInterpAlgorithms<WgpuRuntime> for WgpuClient {
    fn griddata(
        &self,
        points: &Tensor<WgpuRuntime>,
        values: &Tensor<WgpuRuntime>,
        xi: &Tensor<WgpuRuntime>,
        method: ScatteredMethod,
    ) -> InterpolateResult<Tensor<WgpuRuntime>> {
        griddata_impl(self, points, values, xi, method)
    }
}