NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links


vect_prod


Returns the vectorial product of two vectors.


Location in HEALPix directory tree: src/f90/mod/pix_tools.f90


FORMAT

call vect_prod( v1, v2, v3 )


ARGUMENTS

name&dimensionality kind in/out description
       
v1(3) DP IN cartesian vector ${\bf v}_1$.
v2(3) DP IN cartesian vector ${\bf v}_2$.
v3(3) DP OUT cartesian vector ${\bf v}_3 = {\bf v}_1 \times {\bf v}_2$


EXAMPLE:

use healpix_types
use pix_tools, only : vect_prod
real(DP), dimension(3) :: vec
real(DP) :: one = 1.0_dp
call vect_prod((/2,0,0/)*one, (/0,1,0/)*one, vec)
print*, vec

will return : 0.00E+000 0.00E+000 2.00


RELATED ROUTINES

This section lists the routines related to vect_prod


angdist
computes the angular distance between 2 vectors

Eric Hivon 2010-06-18
Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650