X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fmoof%2Fcml%2Fmatvec%2Fmatvec_promotions.h;fp=src%2Fmoof%2Fcml%2Fmatvec%2Fmatvec_promotions.h;h=0000000000000000000000000000000000000000;hb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c;hp=3b85d1ff364d311217cef6ac8d3ab451f542eda8;hpb=85783316365181491a3e3c0c63659972477cebba;p=chaz%2Fyoink diff --git a/src/moof/cml/matvec/matvec_promotions.h b/src/moof/cml/matvec/matvec_promotions.h deleted file mode 100644 index 3b85d1f..0000000 --- a/src/moof/cml/matvec/matvec_promotions.h +++ /dev/null @@ -1,92 +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 - * - * Defines promotions for the vectors resulting from matrix/vector or - * vector/matrix ops. - * - * @sa matvec_ops::mvmul - */ - -#ifndef matvec_promotions_h -#define matvec_promotions_h - -#include -#include - -namespace cml { -namespace et { - -/* Default mat/vec type promotion template. */ -template struct MatVecPromote; - -/** Type promotion for a matrix and a vector. */ -template< - typename E1, class AT1, typename BO, typename L, - typename E2, class AT2> -struct MatVecPromote< cml::matrix, cml::vector > -{ - typedef cml::matrix matrix_type; - typedef cml::vector vector_type; - - /* Promote the arrays: */ - typedef typename ArrayPromote< - typename matrix_type::array_type, - typename vector_type::array_type - >::type promoted_array; - - /* The deduced vector result type: */ - typedef cml::vector< - typename promoted_array::value_type, - typename promoted_array::generator_type - > type; - - /* The deduced temporary type: */ - typedef typename type::temporary_type temporary_type; - /* Note: this is to avoid an "incomplete type" error from ICC9, which - * can't handle e.g. :::: when is a template type. - */ -}; - -/** Type promotion for a vector and a matrix. */ -template< - typename E1, class AT1, - typename E2, class AT2, typename BO, typename L> -struct MatVecPromote< cml::vector, cml::matrix > -{ - typedef cml::vector vector_type; - typedef cml::matrix matrix_type; - - /* Promote the arrays: */ - typedef typename ArrayPromote< - typename vector_type::array_type, - typename matrix_type::array_type - >::type promoted_array; - - /* The deduced vector result type: */ - typedef cml::vector< - typename promoted_array::value_type, - typename promoted_array::generator_type - > type; - - /* The deduced temporary type: */ - typedef typename type::temporary_type temporary_type; - /* Note: this is to avoid an "incomplete type" error from ICC9, which - * can't handle e.g. :::: when is a template type. - */ -}; - -} // namespace et -} // namespace cml - -#endif - -// ------------------------------------------------------------------------- -// vim:ft=cpp