Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
quetzal::utils Namespace Reference

Miscellaneous details. More...

Namespaces

namespace  random
 Random sampling processes.
 

Classes

class  null_output_iterator
 Allows to discard the output of functions that requires an output iterator. More...
 
class  PointWithId
 Class to associate an indexing semantics to a collection of points. More...
 

Functions

template<typename matrix_type >
auto divide_terms_by_row_sum (matrix_type const &A)
 
template<typename T >
auto make_neighboring_cells_functor (T const &landscape)
 
template<typename Point >
size_t getIndexOfPointInVector (Point const &p, std::vector< Point > const &vect)
 Find the index of a point in a vector.
 
template<std::ranges::range Container>
requires (!std::ranges::view<Container>)
auto to ()
 

Detailed Description

Miscellaneous details.

  • This program is free software; you can redistribute it and/or modify /// it under the terms of the GNU General Public License as published by /// the Free Software Foundation; either version 2 of the License, or /// (at your option) any later version. /// ///

Function Documentation

◆ getIndexOfPointInVector()

template<typename Point >
size_t quetzal::utils::getIndexOfPointInVector ( Point const &  p,
std::vector< Point > const &  vect 
)

Find the index of a point in a vector.

Parameters
pthe point to find
vectthe vector in points in which to search for the point index
Returns
the index of the point in the vector