MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / ln

Method ln

crates/cuda_std/src/float.rs:254–260  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

252 #[must_use = "method returns a new number and does not mutate the original value"]
253 #[inline]
254 fn ln(self) -> f32 {
255 #[cfg(not(any(target_arch = "nvptx", target_arch = "nvptx64")))]
256 let val = self.ln();
257 #[cfg(any(target_arch = "nvptx", target_arch = "nvptx64"))]
258 let val = { unsafe { intrinsics::logf(self) } };
259 val
260 }
261
262 /// Returns the logarithm of the number with respect to an arbitrary base.
263 ///

Callers 5

normal_f32Method · 0.80
normal_f64Method · 0.80
normal_f32_2Method · 0.80
normal_f64_2Method · 0.80
logMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected