Loading...
Searching...
No Matches
Serial.hpp
Go to the documentation of this file.
1// This code is based on Jet framework.
2// Copyright (c) 2018 Doyub Kim
3// CubbyFlow is voxel-based fluid simulation engine for computer games.
4// Copyright (c) 2020 CubbyFlow Team
5// Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
6// AI Part: Dongheon Cho, Minseo Kim
7// We are making my contributions/submissions to this project solely in our
8// personal capacity and are not conveying any rights to any intellectual
9// property of any third parties.
10
11#ifndef CUBBYFLOW_SERIAL_HPP
12#define CUBBYFLOW_SERIAL_HPP
13
14namespace CubbyFlow
15{
29template <typename RandomIterator, typename T>
30void SerialFill(const RandomIterator& begin, const RandomIterator& end,
31 const T& value);
32
46template <typename IndexType, typename Function>
48 const Function& function);
49
66template <typename IndexType, typename Function>
69 const Function& function);
70
89template <typename IndexType, typename Function>
93 const Function& function);
94
105template <typename RandomIterator>
107
122template <typename RandomIterator, typename SortingFunction>
125} // namespace CubbyFlow
126
128
129#endif
Definition pybind11Utils.hpp:21
void SerialSort(RandomIterator begin, RandomIterator end)
Sorts a container.
Definition Serial-Impl.hpp:72
void SerialFill(const RandomIterator &begin, const RandomIterator &end, const T &value)
Fills from begin to end with value.
Definition Serial-Impl.hpp:20
Matrix< T, Rows, 1 > Vector
Definition Matrix.hpp:738
void SerialFor(IndexType beginIndex, IndexType endIndex, const Function &function)
Makes a for-loop from beginIndex to endIndex.
Definition Serial-Impl.hpp:30