***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: DotNumerics.ODE.DVodeAssembly: DWSIM.MathOps.DotNumerics (in DWSIM.MathOps.DotNumerics.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public double Run(
int N,
double[] V,
int offset_v,
double[] W,
int offset_w
)
Public Function Run (
N As Integer,
V As Double(),
offset_v As Integer,
W As Double(),
offset_w As Integer
) As Double
Request Example
View SourceParameters
- N Int32
-
- V Double
-
- offset_v Int32
-
- W Double
-
- offset_w Int32
-
Return Value
DoubleSee Also