Skip to content
Snippets Groups Projects
Commit 766b212d authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

properly implement the 'orthonormalFrame' method

[[Imported from SVN: r9080]]
parent 1952062a
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,8 @@
#include <dune/common/fvector.hh>
#include <dune/common/fmatrix.hh>
#include <dune/istl/scaledidmatrix.hh>
#include <dune/gfe/tensor3.hh>
/** \brief A point in the hyperbolic half-space H^N
......@@ -338,15 +340,9 @@ public:
*/
Dune::FieldMatrix<T,N,N> orthonormalFrame() const {
#warning Use DiagonalMatrix instead of FieldMatrix
Dune::FieldMatrix<T,N,N> result(0);
Dune::ScaledIdentityMatrix<T,N> result( data_[N-1]*data_[N-1] );
for (size_t i=0; i<N; i++)
result[i][i] = 1;
std::cout << "FIXME: normalize vectors" << std::endl;
return result;
return Dune::FieldMatrix<T,N,N>(result);
}
/** \brief Write unit vector object to output stream */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment