*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> f90/dot_product (3)              
Title
Content
Arch
Section
 

Contents


DOT_PRODUCT(3I)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     DOT_PRODUCT - Performs dot-product	multiplication of numeric or
     logical vectors

SYNOPSIS    [Toc]    [Back]

     DOT_PRODUCT ([VECTOR_A=]vector_a, [VECTOR_B=]vector_b)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The DOT_PRODUCT intrinsic function	performs dot-product multiplication
     of	numeric	or logical vectors.  It	accepts	the following arguments:

     vector_a  Must be of numeric type (integer, real, or complex) or of
	       logical type.  It must be array valued and of rank one.

     vector_b  Must be of numeric type if vector_a is of numeric type or of
	       type logical if vector_a	is of type logical.  It	must be
	       array valued and	of rank	one.  It must be of the	same size
	       as vector_a.

     DOT_PRODUCT is a transformational function.  The name of this
     intrinsic cannot be passed	as an argument.

RETURN VALUES    [Toc]    [Back]

     If	the arguments are of numeric type, the type and	kind type parameter
     of	the result are those of	the expression vector_a	* vector_b,
     determined	by the types of	the arguments.	If the arguments are of
     type logical, the result is of type logical with the kind type
     parameter of the expression vector_a .AND.	vector_b.

     The result	is scalar.

     If	vector_a is of type integer or real, the result	has the	value
     SUM( vector_a * vector_b ).  If the vectors have size zero, the result
     has the value 0.

     If	vector_a is of type complex, the result	has the	value
     SUM(CONJG(	vector_a ) * vector_b ).  If the vectors have size zero,
     the result	has the	value 0.

     If	vector_a is of type logical, the result	has the	value
     ANY( vector_a .AND. vector_b ).  If the vectors have size 0, the
     result has	the value FALSE.

EXAMPLES    [Toc]    [Back]

     DOT_PRODUCT((/ 1, 2, 3 /),	(/ 2, 3, 4 /)) has the value 20.

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

DOT_PRODUCT(3I)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     DOT_PRODUCT - Performs dot-product	multiplication of numeric or
     logical vectors

SYNOPSIS    [Toc]    [Back]

     DOT_PRODUCT ([VECTOR_A=]vector_a, [VECTOR_B=]vector_b)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The DOT_PRODUCT intrinsic function	performs dot-product multiplication
     of	numeric	or logical vectors.  It	accepts	the following arguments:

     vector_a  Must be of numeric type (integer, real, or complex) or of
	       logical type.  It must be array valued and of rank one.

     vector_b  Must be of numeric type if vector_a is of numeric type or of
	       type logical if vector_a	is of type logical.  It	must be
	       array valued and	of rank	one.  It must be of the	same size
	       as vector_a.

     DOT_PRODUCT is a transformational function.  The name of this
     intrinsic cannot be passed	as an argument.

RETURN VALUES    [Toc]    [Back]

     If	the arguments are of numeric type, the type and	kind type parameter
     of	the result are those of	the expression vector_a	* vector_b,
     determined	by the types of	the arguments.	If the arguments are of
     type logical, the result is of type logical with the kind type
     parameter of the expression vector_a .AND.	vector_b.

     The result	is scalar.

     If	vector_a is of type integer or real, the result	has the	value
     SUM( vector_a * vector_b ).  If the vectors have size zero, the result
     has the value 0.

     If	vector_a is of type complex, the result	has the	value
     SUM(CONJG(	vector_a ) * vector_b ).  If the vectors have size zero,
     the result	has the	value 0.

     If	vector_a is of type logical, the result	has the	value
     ANY( vector_a .AND. vector_b ).  If the vectors have size 0, the
     result has	the value FALSE.

EXAMPLES    [Toc]    [Back]

     DOT_PRODUCT((/ 1, 2, 3 /),	(/ 2, 3, 4 /)) has the value 20.

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

[ Back ]
 Similar pages
Name OS Title
matmul IRIX Performs matrix multiplication of numeric or logical matrices
volume Tru64 Performs Logical Storage Manager operations on volumes
volwatch Tru64 Monitors the Logical Storage Manager (LSM) for failure events and performs hot sparing
sem_wait Tru64 Performs (or conditionally performs) a semaphore lock (P1003.1b)
sem_trywait Tru64 Performs (or conditionally performs) a semaphore lock (P1003.1b)
lvsplit HP-UX split mirrored LVM logical volume into two logical volumes
lvmerge HP-UX merge two LVM logical volumes into one logical volume
zlapll IRIX two column vectors X and Y, let A = ( X Y )
slapll IRIX two column vectors X and Y, let A = ( X Y )
clapll IRIX two column vectors X and Y, let A = ( X Y )
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service