~ubuntu-branches/ubuntu/karmic/python-scipy/karmic

« back to all changes in this revision

Viewing changes to Lib/integrate/odepack/vmnorm.f

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T. Chen (new)
  • Date: 2005-03-16 02:15:29 UTC
  • Revision ID: james.westby@ubuntu.com-20050316021529-xrjlowsejs0cijig
Tags: upstream-0.3.2
ImportĀ upstreamĀ versionĀ 0.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
      double precision function vmnorm (n, v, w)
 
2
clll. optimize
 
3
c-----------------------------------------------------------------------
 
4
c this function routine computes the weighted max-norm
 
5
c of the vector of length n contained in the array v, with weights
 
6
c contained in the array w of length n..
 
7
c   vmnorm = max(i=1,...,n) abs(v(i))*w(i)
 
8
c-----------------------------------------------------------------------
 
9
      integer n,   i
 
10
      double precision v, w,   vm
 
11
      dimension v(n), w(n)
 
12
      vm = 0.0d0
 
13
      do 10 i = 1,n
 
14
 10     vm = dmax1(vm,dabs(v(i))*w(i))
 
15
      vmnorm = vm
 
16
      return
 
17
c----------------------- end of function vmnorm ------------------------
 
18
      end