Reference documentation for deal.II version GIT e8f57130d0 2023-09-28 07:00:03+00:00
\(\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\}}\)
full_matrix.cc
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1999 - 2023 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.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #include <deal.II/base/logstream.h>
17 
18 #include <deal.II/lac/full_matrix.templates.h>
19 
21 
22 #include "full_matrix.inst"
23 
24 #ifndef DOXYGEN
25 
26 // We use FullMatrix<std::complex<T>> for complex eigenvalues so ignore the
27 // value of DEAL_II_WITH_COMPLEX_VALUES and always instantiate. As a consequence
28 // we cannot use REAL_AND_COMPLEX_SCALARS without getting duplicate
29 // instantiations so do float and double here too.
30 template class FullMatrix<float>;
31 template class FullMatrix<double>;
32 template class FullMatrix<std::complex<float>>;
33 template class FullMatrix<std::complex<double>>;
34 
35 // instantiate for long double manually because we use it in a few places
36 // inside the library
37 template class FullMatrix<long double>;
38 template void
40 template void
43  const bool) const;
44 template void
47  const bool) const;
48 template void
51  const bool) const;
52 template void
55  const bool) const;
56 template void
58  const Vector<long double> &,
59  bool) const;
60 template void
62  const Vector<long double> &,
63  bool) const;
64 template void
66  const FullMatrix<long double> &);
67 
68 
69 // do a few functions that currently don't fit the scheme because they have
70 // two template arguments that need to be different (the case of same
71 // arguments is covered by the default copy constructor and copy operator that
72 // is declared separately)
73 
74 # define TEMPL_OP_EQ(S1, S2) \
75  template FullMatrix<S1> &FullMatrix<S1>::operator=(const FullMatrix<S2> &)
76 
77 TEMPL_OP_EQ(double, float);
78 TEMPL_OP_EQ(float, double);
79 
80 TEMPL_OP_EQ(std::complex<double>, std::complex<float>);
81 TEMPL_OP_EQ(std::complex<float>, std::complex<double>);
82 TEMPL_OP_EQ(std::complex<double>, double);
83 TEMPL_OP_EQ(std::complex<float>, float);
84 
85 # undef TEMPL_OP_EQ
86 
87 #endif
88 
Definition: vector.h:110
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:477
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:478