Skip to main content

log

Function log 

Source
pub fn log<T: GpuFloat>(
    handle: &BlasHandle,
    n: u32,
    input: &DeviceBuffer<T>,
    output: &mut DeviceBuffer<T>,
) -> BlasResult<()>
Expand description

Computes the natural logarithm element-wise: output[i] = ln(input[i]).

§Arguments

  • handle – BLAS handle.
  • n – number of elements.
  • input – input device buffer.
  • output – output device buffer.

§Errors

Returns BlasError on buffer validation or kernel launch failure.