HILA
Loading...
Searching...
No Matches
backend_cpu/defs.h
1#ifndef CPU_DEFS_H
2#define CPU_DEFS_H
3
4#include "plumbing/defs.h"
5
6#define VANILLA
7
8// Define random number generator
9namespace hila {
10
11// Trivial synchronization
12inline void synchronize_threads() {}
13
14/// Implements test for basic in types, similar to
15/// std::is_arithmetic, but allows the backend to add
16/// it's own basic tyes (such as AVX vectors)
17template <class T>
18struct is_arithmetic : std::integral_constant<bool, std::is_arithmetic<T>::value> {};
19
20template <class T, class U>
21struct is_assignable : std::integral_constant<bool, std::is_assignable<T, U>::value> {};
22
23template <class T>
24struct is_floating_point
25 : std::integral_constant<bool, std::is_floating_point<T>::value> {};
26
27} // namespace hila
28
29#endif
This file defines all includes for HILA.
Invert diagonal + const. matrix using Sherman-Morrison formula.
Definition array.h:920