Changeset 544


Ignore:
Timestamp:
Oct 14, 2005 2:14:20 PM (14 years ago)
Author:
andreasw
Message:

fixed calculation of 2-norm in CalculatedQuantities?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/Algorithm/IpIpoptCalculatedQuantities.cpp

    r526 r544  
    20782078      return vec1.Asum() + vec2.Asum();
    20792079      case NORM_2 :
    2080       return sqrt(vec1.Nrm2()*vec2.Nrm2());
     2080      return sqrt(pow(vec1.Nrm2(),2) + pow(vec2.Nrm2(),2));
    20812081      case NORM_MAX :
    20822082      return Max(vec1.Amax(), vec2.Amax());
Note: See TracChangeset for help on using the changeset viewer.