X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fcml%2Fmatrix%2Fmatrix_functions.h;fp=src%2Fmoof%2Fcml%2Fmatrix%2Fmatrix_functions.h;h=0000000000000000000000000000000000000000;hp=cd2c92ab1e9a694a1e853223c3e132593ce8f033;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hpb=85783316365181491a3e3c0c63659972477cebba diff --git a/src/moof/cml/matrix/matrix_functions.h b/src/moof/cml/matrix/matrix_functions.h deleted file mode 100644 index cd2c92a..0000000 --- a/src/moof/cml/matrix/matrix_functions.h +++ /dev/null @@ -1,43 +0,0 @@ -/* -*- C++ -*- ------------------------------------------------------------ - -Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/ - -The Configurable Math Library (CML) is distributed under the terms of the -Boost Software License, v1.0 (see cml/LICENSE for details). - - *-----------------------------------------------------------------------*/ -/** @file - * @brief - */ - -#ifndef matrix_functions_h -#define matrix_functions_h - -namespace cml { - -/** Set the given matrix to the identity matrix. - * - * This only makes sense for a square matrix, but no error will be - * signaled if the matrix is not square. - * - * @todo This should return a MatrixXpr to allow loop unrolling, as should - * the class method. - */ -template -inline matrix -identity(const matrix& m) -{ - typename matrix::temporary_type result; - - /* This is a no-op for fixed-size matrices: */ - cml::et::detail::Resize(result, m.size()); - result.identity(); - return result; -} - -} // namespace cml - -#endif - -// ------------------------------------------------------------------------- -// vim:ft=cpp