14 template <
typename ScalarType>
20 template <
typename ScalarType>
25 ScalarType *values_{};
28 std::vector<Vert<ScalarType>> vertices_{};
53 return vertices_[i].id;
81 vertices_.resize(size_);
86#ifdef TTK_ENABLE_OPENMP
87#pragma omp parallel for schedule(static, size_ / threadNumber_)
89 for(
idVertex i = 0; i < size_; i++) {
93 vertices_[offsets_[i]].id = i;
94 vertices_[offsets_[i]].value = values_[i];
104 if(std::numeric_limits<ScalarType>::has_quiet_NaN) {
105#ifdef TTK_ENABLE_OPENMP
106#pragma omp parallel for num_threads(threadNumber_) \
107 schedule(static, size_ / threadNumber_)
109 for(
idVertex i = 0; i < size_; i++) {
110 if(::std::isnan((
double)values_[i])) {
120 return offsets_[a] < offsets_[b];
123 return offsets_[a] > offsets_[b];
Minimalist debugging class.
const SimplexId * getOffsets() const
idVertex getMirror(const idVertex i) const
void setSize(const idVertex size)
idVertex getSortedVert(const idVertex i) const
void setScalars(ScalarType *values)
ScalarType * getScalars()
bool isLower(const idVertex a, const idVertex b) const
bool isHigher(const idVertex a, const idVertex b) const
ScalarType getVal(const idVertex i) const
void setOffsets(const SimplexId *const sos)
Scalars(const Scalars &o)=delete
SimplexId idVertex
Vertex index in scalars_.
int SimplexId
Identifier type for simplices of any dimension.