Reference documentation for deal.II version 9.4.1
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
vectorization.cc
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2018 - 2021 by the deal.II authors
4//
5// This file is part of the deal.II library.
6//
7// The deal.II library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 2.1 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE at
12// the top level of the deal.II distribution.
13//
14// ---------------------------------------------------------------------
15
17
19
20// VectorizedArray must be a POD (plain old data) type to make sure it
21// can use maximum level of compiler optimization.
22// A type is POD if it has standard layout (similar to a C struct)
23// and it is trivial (can be statically default initialized)
24// Here, the trait std::is_pod cannot be used because it is deprecated
25// in C++20.
26static_assert(std::is_standard_layout<VectorizedArray<double>>::value &&
27 std::is_trivial<VectorizedArray<double>>::value,
28 "VectorizedArray<double> must be a POD type");
29static_assert(std::is_standard_layout<VectorizedArray<float>>::value &&
30 std::is_trivial<VectorizedArray<float>>::value,
31 "VectorizedArray<float> must be a POD type");
32
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:442
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:443