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:
816 bytes
|
Line | |
---|
1 | // Copyright (C) 2015 Conrad Sanderson |
---|
2 | // Copyright (C) 2015 NICTA (www.nicta.com.au) |
---|
3 | // |
---|
4 | // This Source Code Form is subject to the terms of the Mozilla Public |
---|
5 | // License, v. 2.0. If a copy of the MPL was not distributed with this |
---|
6 | // file, You can obtain one at http://mozilla.org/MPL/2.0/. |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | //! \addtogroup op_nonzeros |
---|
11 | //! @{ |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | class op_nonzeros |
---|
16 | { |
---|
17 | public: |
---|
18 | |
---|
19 | // for dense matrices |
---|
20 | |
---|
21 | template<typename T1> |
---|
22 | static inline void apply_noalias(Mat<typename T1::elem_type>& out, const Proxy<T1>& P); |
---|
23 | |
---|
24 | template<typename T1> |
---|
25 | static inline void apply(Mat<typename T1::elem_type>& out, const Op<T1, op_nonzeros>& X); |
---|
26 | |
---|
27 | |
---|
28 | // for sparse matrices |
---|
29 | |
---|
30 | template<typename T1> |
---|
31 | static inline void apply_noalias(Mat<typename T1::elem_type>& out, const SpBase<typename T1::elem_type, T1>& X); |
---|
32 | }; |
---|
33 | |
---|
34 | |
---|
35 | |
---|
36 | //! @} |
---|
Note: See
TracBrowser
for help on using the repository browser.