Return to standard_floating_two_norms.ads CVS log | Up to [local] / OpenXM_contrib / PHC / Ada / Math_Lib / Matrices |
File: [local] / OpenXM_contrib / PHC / Ada / Math_Lib / Matrices / standard_floating_two_norms.ads (download)
Revision 1.1.1.1 (vendor branch), Sun Oct 29 17:45:24 2000 UTC (23 years, 8 months ago) by maekawa
Import the second public release of PHCpack. OKed by Jan Verschelde. |
with Standard_Floating_Numbers; use Standard_Floating_Numbers; with Standard_Floating_Vectors; use Standard_Floating_Vectors; with Standard_Floating_VecVecs; use Standard_Floating_VecVecs; package Standard_Floating_Two_Norms is -- DESCRIPTION : -- Provides implementation of 2-norm of standard-floating point vectors. function Norm2 ( v : Vector ) return double_float; -- DESCRIPTION : -- Returns the 2-norm of the vector. procedure Normalize ( v : in out Vector ); -- DESCRIPTION : -- Divides every component of v by the 2-norm of v. procedure Normalize ( v : in out VecVec ); -- DESCRIPTION : -- Normalizes every vector in v. end Standard_Floating_Two_Norms;