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 #include <math.h> 00029 #include <stdlib.h> 00030 00031 00032 MV_Vector_TYPE& operator*=(MV_Vector_TYPE &x, const TYPE &a); 00033 MV_Vector_TYPE operator*(const TYPE &a, const MV_Vector_TYPE &x); 00034 MV_Vector_TYPE operator*(const MV_Vector_TYPE &x, const TYPE &a); 00035 MV_Vector_TYPE operator+(const MV_Vector_TYPE &x, 00036 const MV_Vector_TYPE &y); 00037 MV_Vector_TYPE operator-(const MV_Vector_TYPE &x, 00038 const MV_Vector_TYPE &y); 00039 MV_Vector_TYPE& operator+=(MV_Vector_TYPE &x, const MV_Vector_TYPE &y); 00040 MV_Vector_TYPE& operator-=(MV_Vector_TYPE &x, const MV_Vector_TYPE &y); 00041 00042 TYPE dot(const MV_Vector_TYPE &x, const MV_Vector_TYPE &y); 00043 TYPE norm(const MV_Vector_TYPE &x); 00044 00045 #endif 00046 // _MV_BLAS1_TYPE_H_