vector_ops.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00013 #ifndef vector_ops_h
00014 #define vector_ops_h
00015
00016 #include <cml/et/scalar_ops.h>
00017 #include <cml/vector/vector_expr.h>
00018 #include <cml/vector/vecop_macros.h>
00019
00020 namespace cml {
00021
00022 CML_VEC_UNIOP( operator+, et::OpPos)
00023 CML_VECXPR_UNIOP( operator+, et::OpPos)
00024
00025 CML_VEC_UNIOP( operator-, et::OpNeg)
00026 CML_VECXPR_UNIOP( operator-, et::OpNeg)
00027
00028 CML_VEC_VEC_BINOP( operator+, et::OpAdd)
00029 CML_VECXPR_VEC_BINOP( operator+, et::OpAdd)
00030 CML_VEC_VECXPR_BINOP( operator+, et::OpAdd)
00031 CML_VECXPR_VECXPR_BINOP( operator+, et::OpAdd)
00032
00033 CML_VEC_VEC_BINOP( operator-, et::OpSub)
00034 CML_VECXPR_VEC_BINOP( operator-, et::OpSub)
00035 CML_VEC_VECXPR_BINOP( operator-, et::OpSub)
00036 CML_VECXPR_VECXPR_BINOP( operator-, et::OpSub)
00037
00038 CML_VEC_SCALAR_BINOP( operator*, et::OpMul)
00039 CML_SCALAR_VEC_BINOP( operator*, et::OpMul)
00040 CML_VECXPR_SCALAR_BINOP( operator*, et::OpMul)
00041 CML_SCALAR_VECXPR_BINOP( operator*, et::OpMul)
00042
00043 CML_VEC_SCALAR_BINOP( operator/, et::OpDiv)
00044 CML_VECXPR_SCALAR_BINOP( operator/, et::OpDiv)
00045
00046 }
00047
00048 #endif
00049
00050
00051