***PURPOSE Weighted root-mean-square vector norm.
***TYPE DOUBLE PRECISION (SVNORM-S, DVNORM-D)
***AUTHOR Hindmarsh, Alan C., (LLNL)
***DESCRIPTION
This function routine computes the weighted root-mean-square norm
of the vector of length N contained in the array V, with weights
contained in the array W of length N:
DVNORM = SQRT( (1/N) * SUM( V(i)*W(i) )**2 )
***SEE ALSO DLSODE
***ROUTINES CALLED (NONE)
***REVISION HISTORY (YYMMDD)
791129 DATE WRITTEN
890501 Modified prologue to SLATEC/LDOC format. (FNF)
890503 Minor cosmetic changes. (FNF)
930809 Renamed to allow single/double precision versions. (ACH)
***END PROLOGUE DVNORM
**End
***FIRST EXECUTABLE STATEMENT DVNORM
Namespace: Altaxo.Calc.Ode.Obsolete.DVodeAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic double Run(
int N,
double[] V,
int offset_v,
double[] W,
int offset_w
)
Parameters
- N Int32
- The number of elements.
- V Double
- The value vector.
- offset_v Int32
- The offset into V.
- W Double
- The weight vector.
- offset_w Int32
- The offset into W.
Return Value
DoubleThe weighted root-mean-square norm of the vector.
See Also