Reference documentation for deal.II version 9.0.0
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 at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 #include <deal.II/base/logstream.h>
17 #include <deal.II/lac/full_matrix.templates.h>
18 
19 DEAL_II_NAMESPACE_OPEN
20 
21 #include "full_matrix.inst"
22 
23 // instantiate for long double manually because we use it in a few places
24 // inside the library
25 template class FullMatrix<long double>;
26 template void FullMatrix<long double>::invert<long double> (const FullMatrix<long double> &);
27 template void FullMatrix<long double>::mmult<long double> (FullMatrix<long double> &, const FullMatrix<long double> &, const bool) const;
28 template void FullMatrix<long double>::Tmmult<long double> (FullMatrix<long double> &, const FullMatrix<long double> &, const bool) const;
29 template void FullMatrix<long double>::mTmult<long double> (FullMatrix<long double> &, const FullMatrix<long double> &, const bool) const;
30 template void FullMatrix<long double>::TmTmult<long double> (FullMatrix<long double> &, const FullMatrix<long double> &, const bool) const;
31 template void FullMatrix<long double>::vmult<long double>(Vector<long double> &, const Vector<long double> &, bool) const;
32 template void FullMatrix<long double>::Tvmult<long double>(Vector<long double> &, const Vector<long double> &, bool) const;
33 template void FullMatrix<long double>::add<long double> (const long double, const FullMatrix<long double> &);
34 
35 
36 // do a few functions that currently don't fit the scheme because they have
37 // two template arguments that need to be different (the case of same
38 // arguments is covered by the default copy constructor and copy operator that
39 // is declared separately)
40 
41 #define TEMPL_OP_EQ(S1,S2) \
42  template FullMatrix<S1>& FullMatrix<S1>::operator = \
43  (const FullMatrix<S2>&)
44 
45 TEMPL_OP_EQ(double,float);
46 TEMPL_OP_EQ(float,double);
47 
48 TEMPL_OP_EQ(std::complex<double>,std::complex<float>);
49 TEMPL_OP_EQ(std::complex<float>,std::complex<double>);
50 
51 #undef TEMPL_OP_EQ
52 
53 DEAL_II_NAMESPACE_CLOSE