HighMap library (C++)
Loading...
Searching...
No Matches
array.hpp File Reference

Declaration of the Array class for 2D floating-point arrays with various mathematical operations and utilities. More...

Go to the source code of this file.

Classes

class  hmap::Array
 Array class, helper to manipulate 2D float array with "(i, j)" indexing. More...

Namespaces

namespace  hmap

Functions

size_t hmap::count_non_zero (const Array &array)
 Count the number of non-zero elements in the array.
size_t hmap::count_zero (const Array &array)
 Count the number of zero elements in the array.
template<typename Fn>
void hmap::for_each_cell (Array &a, Fn &&fn)
 Apply a function to every cell (mutable).
template<typename Fn>
void hmap::for_each_cell (const Array &a, Fn &&fn)
 Apply a function to every cell (read-only).

Detailed Description

Declaration of the Array class for 2D floating-point arrays with various mathematical operations and utilities.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)