source: mmcs/armadillo_bits/mtSpOp_bones.hpp @ 8daa049

matrices
Last change on this file since 8daa049 was 9dd61b1, checked in by rboet <rboet@…>, 9 years ago

Avance del proyecto 60%

  • Property mode set to 100644
File size: 1.1 KB
Line 
1// Copyright (C) 2012 Ryan Curtin
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7
8//! \addtogroup mtSpOp
9//! @{
10
11// Class for delayed multi-type sparse operations.  These are operations where
12// the resulting type is different than the stored type.
13
14
15
16template<typename out_eT, typename T1, typename op_type>
17class mtSpOp : public SpBase<out_eT, mtSpOp<out_eT, T1, op_type> >
18  {
19  public:
20
21  typedef          out_eT                       elem_type;
22  typedef typename get_pod_type<out_eT>::result pod_type;
23
24  typedef typename T1::elem_type                in_eT;
25
26  static const bool is_row = false;
27  static const bool is_col = false;
28
29  inline explicit mtSpOp(const T1& in_m);
30  inline          mtSpOp(const T1& in_m, const uword aux_uword_a, const uword aux_uword_b);
31
32  inline          ~mtSpOp();
33
34  arma_aligned const T1&    m;
35  arma_aligned       uword  aux_uword_a;
36  arma_aligned       uword  aux_uword_b;
37  };
38
39
40
41//! @}
Note: See TracBrowser for help on using the repository browser.