mxvscl Subroutine

public pure subroutine mxvscl(n, a, x, y)

scaling of a vector.

Arguments

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

vector dimension.

real(kind=wp), intent(in) :: a

scaling factor.

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

x(n) input vector.

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

y(n) output vector where y:= a*x.


Called by

proc~~mxvscl~~CalledByGraph proc~mxvscl mxvscl proc~bfgs_variable_metric_update bfgs_variable_metric_update proc~bfgs_variable_metric_update->proc~mxvscl proc~mxdpgu mxdpgu proc~bfgs_variable_metric_update->proc~mxdpgu proc~mxdpgu->proc~mxvscl proc~psqp psqp_class%psqp proc~psqp->proc~bfgs_variable_metric_update proc~psqpn psqp_class%psqpn proc~psqpn->proc~psqp

Source Code

      pure subroutine mxvscl(n,a,x,y)

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

      integer :: i

      do i = 1 , n
         y(i) = a*x(i)
      end do

      end subroutine mxvscl