mxvdif Subroutine

public pure subroutine mxvdif(n, x, y, z)

vector difference.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n

vector dimension.

real(kind=wp), intent(in) :: x(*)

x(n) input vector.

real(kind=wp), intent(in) :: y(*)

y(n) input vector.

real(kind=wp), intent(out) :: z(*)

z(n) output vector where z:= x - y.


Called by

proc~~mxvdif~~CalledByGraph proc~mxvdif mxvdif proc~bfgs_variable_metric_update bfgs_variable_metric_update proc~bfgs_variable_metric_update->proc~mxvdif proc~dual_range_space_qp dual_range_space_qp proc~dual_range_space_qp->proc~mxvdif proc~psqp psqp_class%psqp proc~psqp->proc~bfgs_variable_metric_update proc~psqp->proc~dual_range_space_qp proc~psqpn psqp_class%psqpn proc~psqpn->proc~psqp

Source Code

      pure subroutine mxvdif(n,x,y,z)

      integer,intent(in) :: n  !! vector dimension.
      real(wp),intent(in) :: x(*)  !! x(n)  input vector.
      real(wp),intent(in) :: y(*)  !! y(n)  input vector.
      real(wp),intent(out) :: z(*)  !! z(n)  output vector where `z:= x - y`.

      integer :: i

      do i = 1 , n
         z(i) = x(i) - y(i)
      end do

      end subroutine mxvdif