00001 00002 /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ 00003 /* */ 00004 /* */ 00005 /* MV++ Numerical Matrix/Vector C++ Library */ 00006 /* MV++ Version 1.5 */ 00007 /* */ 00008 /* R. Pozo */ 00009 /* National Institute of Standards and Technology */ 00010 /* */ 00011 /* NOTICE */ 00012 /* */ 00013 /* Permission to use, copy, modify, and distribute this software and */ 00014 /* its documentation for any purpose and without fee is hereby granted */ 00015 /* provided that this permission notice appear in all copies and */ 00016 /* supporting documentation. */ 00017 /* */ 00018 /* Neither the Institution (National Institute of Standards and Technology) */ 00019 /* nor the author makes any representations about the suitability of this */ 00020 /* software for any purpose. This software is provided ``as is''without */ 00021 /* expressed or implied warranty. */ 00022 /* */ 00023 /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ 00024 00025 #ifndef _MV_BLAS1_$TYPE_H_ 00026 #define _MV_BLAS1_$TYPE_H_ 00027 00028 00029 MV_Vector_$TYPE& operator*=(MV_Vector_$TYPE &x, const $TYPE &a); 00030 MV_Vector_$TYPE operator*(const $TYPE &a, const MV_Vector_$TYPE &x); 00031 MV_Vector_$TYPE operator*(const MV_Vector_$TYPE &x, const $TYPE &a); 00032 MV_Vector_$TYPE operator+(const MV_Vector_$TYPE &x, 00033 const MV_Vector_$TYPE &y); 00034 MV_Vector_$TYPE operator-(const MV_Vector_$TYPE &x, 00035 const MV_Vector_$TYPE &y); 00036 MV_Vector_$TYPE& operator+=(MV_Vector_$TYPE &x, const MV_Vector_$TYPE &y); 00037 MV_Vector_$TYPE& operator-=(MV_Vector_$TYPE &x, const MV_Vector_$TYPE &y); 00038 00039 $TYPE dot(const MV_Vector_$TYPE &x, const MV_Vector_$TYPE &y); 00040 $TYPE norm(const MV_Vector_$TYPE &x); 00041 00042 #endif 00043 00044 // _MV_BLAS1_$TYPE_H_