numr 1.0.0

Numerical computing and tensor library for Rust, in the role of NumPy: n-dimensional arrays, linear algebra, FFT, statistics and autograd on CPU, CUDA and WebGPU
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Wgpu scaled Euclidean magnitude.

use crate::error::Result;
use crate::ops::HypotOps;
use crate::runtime::wgpu::ops::native::native_hypot;
use crate::runtime::wgpu::{WgpuClient, WgpuRuntime};
use crate::tensor::Tensor;

impl HypotOps<WgpuRuntime> for WgpuClient {
    fn hypot(
        &self,
        a: &Tensor<WgpuRuntime>,
        b: &Tensor<WgpuRuntime>,
    ) -> Result<Tensor<WgpuRuntime>> {
        native_hypot(self, a, b)
    }
}