outerprod_r Function

public function outerprod_r(a, b)

Arguments

Type IntentOptional AttributesName
real(kind=SP), intent(in), DIMENSION(:):: a
real(kind=SP), intent(in), DIMENSION(:):: b

Return Value real(kind=SP), DIMENSION(size(a),size(b))


Called by

proc~~outerprod_r~~CalledByGraph proc~outerprod_r outerprod_r interface~outerprod outerprod interface~outerprod->proc~outerprod_r

Contents

Source Code


Source Code

	FUNCTION outerprod_r(a,b)
	REAL(SP), DIMENSION(:), INTENT(IN) :: a,b
	REAL(SP), DIMENSION(size(a),size(b)) :: outerprod_r
	outerprod_r = spread(a,dim=2,ncopies=size(b)) * &
		spread(b,dim=1,ncopies=size(a))
	END FUNCTION outerprod_r