matrix_ops.h

Go to the documentation of this file.
00001 /* -*- C++ -*- ------------------------------------------------------------
00002  
00003 Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/
00004 
00005 The Configurable Math Library (CML) is distributed under the terms of the
00006 Boost Software License, v1.0 (see cml/LICENSE for details).
00007 
00008  *-----------------------------------------------------------------------*/
00012 #ifndef matrix_ops_h
00013 #define matrix_ops_h
00014 
00015 #include <cml/et/scalar_ops.h>
00016 #include <cml/matrix/matrix_expr.h>
00017 #include <cml/matrix/matop_macros.h>
00018 
00019 namespace cml {
00020 
00021 CML_MAT_UNIOP(    operator+, et::OpPos)
00022 CML_MATXPR_UNIOP( operator+, et::OpPos)
00023 
00024 CML_MAT_UNIOP(    operator-, et::OpNeg)
00025 CML_MATXPR_UNIOP( operator-, et::OpNeg)
00026 
00027 CML_MAT_MAT_BINOP(       operator+, et::OpAdd)
00028 CML_MATXPR_MAT_BINOP(    operator+, et::OpAdd)
00029 CML_MAT_MATXPR_BINOP(    operator+, et::OpAdd)
00030 CML_MATXPR_MATXPR_BINOP( operator+, et::OpAdd)
00031 
00032 CML_MAT_MAT_BINOP(       operator-, et::OpSub)
00033 CML_MATXPR_MAT_BINOP(    operator-, et::OpSub)
00034 CML_MAT_MATXPR_BINOP(    operator-, et::OpSub)
00035 CML_MATXPR_MATXPR_BINOP( operator-, et::OpSub)
00036 
00037 CML_MAT_SCALAR_BINOP(    operator*, et::OpMul)
00038 CML_SCALAR_MAT_BINOP(    operator*, et::OpMul)
00039 CML_MATXPR_SCALAR_BINOP( operator*, et::OpMul)
00040 CML_SCALAR_MATXPR_BINOP( operator*, et::OpMul)
00041 
00042 CML_MAT_SCALAR_BINOP(    operator/, et::OpDiv)
00043 CML_MATXPR_SCALAR_BINOP( operator/, et::OpDiv)
00044 
00045 } // namespace cml
00046 
00047 #endif
00048 
00049 // -------------------------------------------------------------------------
00050 // vim:ft=cpp

Generated on Sat Jul 18 19:35:24 2009 for CML 1.0 by  doxygen 1.5.9