! ! Copyright (C) 2003-2005 Quantum ESPRESSO 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 . ! ! !---------------------------------------------------------------------------- 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. ! ! ... List of public methods : ! ! x .dot. y dot product between vectors ( ) ! x .ext. y external (vector) product between vectors ( ) ! norm( x ) norm of a vector ( SQRT() ) ! A .times. x matrix-vector multiplication ( A|x> ) ! x .times. A vector-matrix multiplication (