! ! Copyright (C) 2003 PWSCF group ! This file is distributed under the terms of the ! GNU General Public License. See the file `License' ! in the root directory of the present distribution, ! or http://www.gnu.org/copyleft/gpl.txt . ! #undef __NOBLAS #include "f_defs.h" ! !---------------------------------------------------------------------------- MODULE basic_algebra_routines !---------------------------------------------------------------------------- ! ! ... Written by Carlo Sbraccia ( 16/12/2003 ) ! ! ... This module contains a limited number of functions and operators ! ... for vectorial algebra. Wherever possible the appropriate BLAS routine ! ... ( always the double precision version ) is used. ! ... If BLAS are not available compile this module with the -D__NOBLAS ! ... precompiler option. ! ! ... List of public methods : ! ! x .dot. y implements the dot product between vectors ( ) ! norm( x ) computes the norm of a vector ( SQRT() ) ! A .times. x implements the matrix-vector multiplication ( A|x> ) ! x .times. A implements the vector-matrix multiplication (