1 | /*! |
---|
2 | * \file |
---|
3 | * \brief Definitions of special operations on vectors and matricies optimized |
---|
4 | * for speed |
---|
5 | * \author Tony Ottosson and Tobias Ringstrom |
---|
6 | * |
---|
7 | * ------------------------------------------------------------------------- |
---|
8 | * |
---|
9 | * IT++ - C++ library of mathematical, signal processing, speech processing, |
---|
10 | * and communications classes and functions |
---|
11 | * |
---|
12 | * Copyright (C) 1995-2007 (see AUTHORS file for a list of contributors) |
---|
13 | * |
---|
14 | * This program is free software; you can redistribute it and/or modify |
---|
15 | * it under the terms of the GNU General Public License as published by |
---|
16 | * the Free Software Foundation; either version 2 of the License, or |
---|
17 | * (at your option) any later version. |
---|
18 | * |
---|
19 | * This program is distributed in the hope that it will be useful, |
---|
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
22 | * GNU General Public License for more details. |
---|
23 | * |
---|
24 | * You should have received a copy of the GNU General Public License |
---|
25 | * along with this program; if not, write to the Free Software |
---|
26 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
27 | * |
---|
28 | * ------------------------------------------------------------------------- |
---|
29 | */ |
---|
30 | |
---|
31 | #ifndef FASTMATH_H |
---|
32 | #define FASTMATH_H |
---|
33 | |
---|
34 | #include <itpp/base/vec.h> |
---|
35 | #include <itpp/base/mat.h> |
---|
36 | |
---|
37 | |
---|
38 | namespace itpp { |
---|
39 | |
---|
40 | /*! |
---|
41 | \relatesalso Mat |
---|
42 | \brief Calculates m=m-v*v'*m |
---|
43 | */ |
---|
44 | void sub_v_vT_m(mat &m, const vec &v); |
---|
45 | |
---|
46 | /*! |
---|
47 | \relatesalso Mat |
---|
48 | \brief Calculates m=m-m*v*v' |
---|
49 | */ |
---|
50 | void sub_m_v_vT(mat &m, const vec &v); |
---|
51 | |
---|
52 | } // namespace itpp |
---|
53 | |
---|
54 | #endif // #ifndef FASTMATH_H |
---|