Blender V5.3
array_utils.cc File Reference
#include <algorithm>
#include <atomic>
#include <cmath>
#include <functional>
#include "BLI_array.hh"
#include "BLI_array_utils.hh"
#include "BLI_bounds.hh"
#include "BLI_enumerable_thread_specific.hh"
#include "BLI_threads.hh"
#include "BLI_vector_set.hh"
#include "PRF_profile.hh"
#include "atomic_ops.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::array_utils

Functions

void blender::array_utils::copy (const GVArray &src, GMutableSpan dst, exec_mode::Mode mode=exec_mode::parallel)
void blender::array_utils::copy (const GVArray &src, const IndexMask &selection, GMutableSpan dst, exec_mode::Mode mode=exec_mode::parallel)
void blender::array_utils::gather (const GVArray &src, const IndexMask &indices, GMutableSpan dst, exec_mode::Mode mode=exec_mode::parallel)
void blender::array_utils::gather (GSpan src, const IndexMask &indices, GMutableSpan dst, exec_mode::Mode mode=exec_mode::parallel)
void blender::array_utils::copy_group_to_group (OffsetIndices< int > src_offsets, OffsetIndices< int > dst_offsets, const IndexMask &selection, GSpan src, GMutableSpan dst)
static void blender::array_utils::count_indices_serial (const Span< int > indices, MutableSpan< int > counts)
static void blender::array_utils::count_indices_atomics (const Span< int > indices, MutableSpan< int > counts)
static void blender::array_utils::count_indices_thread_local (const Span< int > indices, MutableSpan< int > counts, const int64_t max_threads)
void blender::array_utils::count_indices (Span< int > indices, MutableSpan< int > counts)
static int blender::array_utils::count_indices_with_table (const Span< int > ids, const IndexMask &mask, const Bounds< int > &id_bounds, MutableSpan< int > r_group_indices, Vector< int > *r_first_indices)
int blender::array_utils::group_ids_to_indices (Span< int > ids, const IndexMask &mask, MutableSpan< int > r_group_indices, Vector< int > *r_first_indices=nullptr)
void blender::array_utils::invert_booleans (MutableSpan< bool > span)
void blender::array_utils::invert_booleans (MutableSpan< bool > span, const IndexMask &mask)
static bool blender::array_utils::all_equal (const Span< bool > span, const bool test)
static bool blender::array_utils::all_equal (const VArray< bool > &varray, const IndexRange range, const bool test)
BooleanMix blender::array_utils::booleans_mix_calc (const VArray< bool > &varray, IndexRange range_to_check)
int64_t blender::array_utils::count_booleans (const VArray< bool > &varray, const IndexMask &mask)
bool blender::array_utils::contains (const VArray< bool > &varray, const IndexMask &indices_to_check, bool value)
IndexMask blender::array_utils::indices_non_negative (const IndexMask &universe, Span< int > values, LinearAllocator<> &memory)
IndexMask blender::array_utils::indices_in_range (const IndexMask &universe, Span< int > values, IndexRange range, LinearAllocator<> &memory)
int64_t blender::array_utils::count_booleans (const VArray< bool > &varray)
bool blender::array_utils::indices_are_range (Span< int > indices, IndexRange range)