[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN helpers.h
From: |
Gerhard Reitmayr |
Subject: |
[Toon-members] TooN helpers.h |
Date: |
Wed, 29 Apr 2009 09:47:35 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Gerhard Reitmayr <gerhard> 09/04/29 09:47:35
Modified files:
. : helpers.h
Log message:
removed one of the two trace implementations again :)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/helpers.h?cvsroot=toon&r1=1.61&r2=1.62
Patches:
Index: helpers.h
===================================================================
RCS file: /cvsroot/toon/TooN/helpers.h,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -b -r1.61 -r1.62
--- helpers.h 28 Apr 2009 21:45:45 -0000 1.61
+++ helpers.h 29 Apr 2009 09:47:35 -0000 1.62
@@ -110,7 +110,6 @@
}
/// Frobenius (root of sum of squares) norm of input matrix m
- /// computes the maximum of the sums of absolute values over rows
template <int R, int C, typename P, typename B>
P inline norm_fro( const Matrix<R,C,P,B> & m ){
using std::sqrt;
@@ -220,14 +219,6 @@
}
}
- template<int R, int C, class P, class B> P trace(const Matrix<R,C,P,B>&
m)
- {
- SizeMismatch<R, C>::test(m.num_rows(), m.num_cols());
- P p=0;
- for(int i=0; i < m.num_rows(); i++)
- p+=m[i][i];
- return p;
- }
/// computes the trace of a square matrix
template<int Rows, int Cols, typename Precision, typename Base>
- [Toon-members] TooN helpers.h, (continued)
- [Toon-members] TooN helpers.h, Gerhard Reitmayr, 2009/04/14
- [Toon-members] TooN helpers.h, Gerhard Reitmayr, 2009/04/14
- [Toon-members] TooN helpers.h, Georg Klein, 2009/04/16
- [Toon-members] TooN helpers.h, Tom Drummond, 2009/04/22
- [Toon-members] TooN helpers.h, Gerhard Reitmayr, 2009/04/22
- [Toon-members] TooN helpers.h, Tom Drummond, 2009/04/26
- [Toon-members] TooN helpers.h, Gerhard Reitmayr, 2009/04/28
- [Toon-members] TooN helpers.h,
Gerhard Reitmayr <=