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

Method log

crates/cuda_std/src/float.rs:269–271  ·  view source on GitHub ↗
(self, base: f32)

Source from the content-addressed store, hash-verified

267 #[must_use = "method returns a new number and does not mutate the original value"]
268 #[inline]
269 fn log(self, base: f32) -> f32 {
270 self.ln() / base.ln()
271 }
272
273 /// Returns the base 2 logarithm of the number.
274 #[must_use = "method returns a new number and does not mutate the original value"]

Callers

nothing calls this directly

Calls 1

lnMethod · 0.80

Tested by

no test coverage detected