102 const std::vector<float> &weights = {});
118 const std::vector<float> &weights = {},
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and ...
Array class, helper to manipulate 2D float array with "(i, j)" indexing.
Definition array.hpp:31
Array smoothstep3_upper(const Array &array)
Cubic smoothstep (zero derivative at 1 only).
Definition math.cpp:511
Array sin(const Array &array)
Sine.
Definition math.cpp:463
Array sigmoid(const Array &array, float width=1.f, float vmin=0.f, float vmax=1.f, float x0=0.f)
Sigmoid function.
Definition math.cpp:450
Array pow(const Array &array, float exp)
Power function.
Definition math.cpp:402
Array smoothstep7(const Array &array)
Seventh-order smoothstep.
Definition math.cpp:604
Array smoothstep5_upper(const Array &array)
Quintic smoothstep (zero derivative at 1 only).
Definition math.cpp:592
Array almost_unit_identity(const Array &array)
Almost unit identity function.
Definition math.cpp:80
Array threshold(const Array &array, float x0, float x1)
Linear threshold.
Definition math.cpp:640
Array sqrt_safe(const Array &array)
Safe square root.
Definition math.cpp:628
Array is_non_zero(const Array &array)
Binary mask of non-zero elements.
Definition math.cpp:322
Array is_zero(const Array &array)
Binary mask of zero elements.
Definition math.cpp:334
Array smoothstep3(const Array &array, float vmin=0.f, float vmax=1.f)
Cubic smoothstep.
Definition math.cpp:475
Array threshold_smooth(const Array &array, float x0, float x1)
Smooth threshold.
Definition math.cpp:652
Array cos(const Array &array)
Cosine.
Definition math.cpp:258
Array abs(const Array &array)
Absolute value.
Definition math.cpp:19
Array sqrt(const Array &array)
Square root.
Definition math.cpp:616
Array log10(const Array &array)
Base-10 logarithm.
Definition math.cpp:378
Array smoothstep3_lower(const Array &array)
Cubic smoothstep (zero derivative at 0 only).
Definition math.cpp:499
Array gaussian_decay(const Array &array, float sigma)
Gaussian decay.
Definition math.cpp:282
Array smoothstep5_lower(const Array &array)
Quintic smoothstep (zero derivative at 0 only).
Definition math.cpp:580
Array smoothstep5(const Array &array, float vmin=0.f, float vmax=1.f)
Quintic smoothstep.
Definition math.cpp:523
Array r_max(const Array &array1, const Array &array2, float alpha=0.f)
Generalized Rvachev R-function for smooth maximum / union (exact zero-set).
Definition math.cpp:436
Array abs_smooth(const Array &array, float mu, const Array &vshift)
Smooth absolute value.
Definition math.cpp:61
Array exp(const Array &array)
Exponential.
Definition math.cpp:270
Array log_safe(const Array &array, float eps=1e-6f)
Safe natural logarithm with lower clamp.
Definition math.cpp:390
Array almost_unit_identity_c2(const Array &array)
Almost unit identity function (C2 variant).
Definition math.cpp:92
Array atan2(const Array &y, const Array &array)
Element-wise arctangent with quadrant handling.
Definition math.cpp:116
Array is_equal(const Array &array, float value)
Binary mask of elements equal to a value.
Definition math.cpp:310
Array atan(const Array &array)
Arctangent.
Definition math.cpp:104
Point lerp(const Point &p1, const Point &p2, float t)
Linearly interpolates between two points.
Definition points.cpp:265
Array hypot(const Array &array1, const Array &array2)
Hypotenuse.
Definition math.cpp:296
Array r_min(const Array &array1, const Array &array2, float alpha=0.f)
Generalized Rvachev R-function for smooth minimum / intersection (exact zero-set).
Definition math.cpp:422
Array build_density_log(const std::vector< const Array * > &layers, const std::vector< float > &weights={}, float eps=1e-6f)
Combine a list of layers in log space.
Definition math.cpp:197
Array build_density_linear(const std::vector< const Array * > &layers, const std::vector< float > &weights={})
Combine a list of layers in linear space.
Definition math.cpp:130