lib_ex_pour_HZpp/Partie_2/algebre_lineaire/sparselib++/sp1_5c/include/tblas1.h

1 line
3 KiB
C
Raw Normal View History

/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ /* ******** *** SparseLib++ */ /* ******* ** *** *** *** v. 1.5c */ /* ***** *** ******** ******** */ /* ***** *** ******** ******** R. Pozo */ /* ** ******* *** ** *** *** K. Remington */ /* ******** ******** A. Lumsdaine */ /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ /* */ /* */ /* SparseLib++ : Sparse Matrix Library */ /* */ /* National Institute of Standards and Technology */ /* University of Notre Dame */ /* Authors: R. Pozo, K. Remington, A. Lumsdaine */ /* */ /* NOTICE */ /* */ /* Permission to use, copy, modify, and distribute this software and */ /* its documentation for any purpose and without fee is hereby granted */ /* provided that the above notice appear in all copies and supporting */ /* documentation. */ /* */ /* Neither the Institutions (National Institute of Standards and Technology, */ /* University of Notre Dame) nor the Authors make any representations about */ /* the suitability of this software for any purpose. This software is */ /* provided ``as is'' without expressed or implied warranty. */ /* */ /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ #ifndef _MV_BLAS1_TYPE_H_ #define _MV_BLAS1_TYPE_H_ #include <math.h> #include <stdlib.h> MV_Vector_TYPE& operator*=(MV_Vector_TYPE &x, const TYPE &a); MV_Vector_TYPE operator*(const TYPE &a, const MV_Vector_TYPE &x); MV_Vector_TYPE operator*(const MV_Vector_TYPE &x, const TYPE &a); MV_Vector_TYPE operator+(const MV_Vector_TYPE &x, const MV_Vector_TYPE &y); MV_Vector_TYPE operator-(const MV_Vector_TYPE &x, const MV_Vector_TYPE &y); MV_Vector_TYPE& operator+=(MV_Vector_TYPE &x, const MV_Vector_TYPE &y); MV_Vector_TYPE& operator-=(MV_Vector_TYPE &x, const MV_Vector_TYPE &y); TYPE dot(const MV_Vector_TYPE &x, const MV_Vector_TYPE &y); TYPE norm(const MV_Vector_TYPE &x); #endif // _MV_BLAS1_TYPE_H_