Reference documentation for deal.II version 9.1.0-pre
full_matrix.cc
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1999 - 2017 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 
20 DEAL_II_NAMESPACE_OPEN
21 
22 #include "full_matrix.inst"
23 
24 // instantiate for long double manually because we use it in a few places
25 // inside the library
26 template class FullMatrix<long double>;
27 template void
29 template void
32  const bool) const;
33 template void
36  const bool) const;
37 template void
40  const bool) const;
41 template void
44  const bool) const;
45 template void
46 FullMatrix<long double>::vmult<long double>(Vector<long double> &,
47  const Vector<long double> &,
48  bool) const;
49 template void
50 FullMatrix<long double>::Tvmult<long double>(Vector<long double> &,
51  const Vector<long double> &,
52  bool) const;
53 template void
54 FullMatrix<long double>::add<long double>(const long double,
55  const FullMatrix<long double> &);
56 
57 
58 // do a few functions that currently don't fit the scheme because they have
59 // two template arguments that need to be different (the case of same
60 // arguments is covered by the default copy constructor and copy operator that
61 // is declared separately)
62 
63 #define TEMPL_OP_EQ(S1, S2) \
64  template FullMatrix<S1> &FullMatrix<S1>::operator=(const FullMatrix<S2> &)
65 
66 TEMPL_OP_EQ(double, float);
67 TEMPL_OP_EQ(float, double);
68 
69 TEMPL_OP_EQ(std::complex<double>, std::complex<float>);
70 TEMPL_OP_EQ(std::complex<float>, std::complex<double>);
71 TEMPL_OP_EQ(std::complex<double>, double);
72 TEMPL_OP_EQ(std::complex<float>, float);
73 
74 #undef TEMPL_OP_EQ
75 
76 DEAL_II_NAMESPACE_CLOSE