fml  0.1-0
Fused Matrix Library
tri.hh
1 // This file is part of fml which is released under the Boost Software
2 // License, Version 1.0. See accompanying file LICENSE or copy at
3 // https://www.boost.org/LICENSE_1_0.txt
4 
5 #ifndef FML_CPU_FUTURE_TRI_H
6 #define FML_CPU_FUTURE_TRI_H
7 #pragma once
8 
9 
10 #include <cmath>
11 #include <stdexcept>
12 
13 #include "../cpumat.hh"
14 
15 
16 namespace tri
17 {
18  template <typename REAL>
19  bool is_tri(const cpumat<REAL> &x)
20  {
21 
22  return true;
23  }
24 
25  template <typename REAL>
26  bool is_lowertri(const cpumat<REAL> &x)
27  {
28 
29  return true;
30  }
31 
32  template <typename REAL>
33  bool is_uppertri(const cpumat<REAL> &x)
34  {
35 
36  return true;
37  }
38 
39 
40 
41  template <typename REAL>
42  void make_uppertri(cpumat<REAL> &x)
43  {
44 
45  }
46 
47  template <typename REAL>
48  void make_lowertri(cpumat<REAL> &x)
49  {
50 
51  }
52 }
53 
54 
55 #endif