4.5 Pointwise Operations
> (define-values (dx-fm dy-fm) (flomap-gradient (flomap-drop-components fm 1)))
> (flomap->bitmap (fmsqrt (fm+ (fmsqr dx-fm) (fmsqr dy-fm))))
procedure
(flomap-normalize fm) → flomap
fm : flomap
Examples: | |||||||||
|
Two flomaps. Both flomaps must have the same number of components, or one of them must have one component. If one flomap has one component, it is (conceptually) self-appended (see flomap-append-components) as much as needed before the operation. In either case, both flomaps must have the same width and height.
One flomap, one Real. In this case, the real value is (conceptually) made into a uniform flomap (see make-flomap) before applying the operation.
Examples: | ||||||||||||||||||
|
Binary pointwise operators could behave according to the Conceptual Model—
> (flomap->bitmap (fm* fm 0.2))
Using inline-flomap-lift instead of flomap-lift may ensure that f is inlined, and therefore floats remain unboxed.
This is not available in untyped Racket.
Using inline-flomap-lift2 instead of flomap-lift2 may ensure that f is inlined, and therefore floats remain unboxed.
This is not available in untyped Racket.