IgANet
IGAnets - Isogeometric Analysis Networks
Loading...
Searching...
No Matches
integer_pow.hpp
Go to the documentation of this file.
1
15#pragma once
16
17namespace iganet::utils {
18
21template <int E, int N> struct integer_pow {
22 enum { value = E * integer_pow<E, N - 1>::value };
23};
24
25template <int E> struct integer_pow<E, 0> {
26 enum { value = 1 };
27};
29
30} // namespace iganet::utils
Definition blocktensor.hpp:24
Computes the power of integer E to the N at compile time.
Definition integer_pow.hpp:21
@ value
Definition integer_pow.hpp:22