MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / Norm

Method Norm

SRC/matrix/Vector.cpp:608–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606// Method to return the norm of vector. (non-const as may save norm for later)
607
608double
609Vector::Norm(void) const
610{
611 double value = 0;
612 for (int i=0; i<sz; i++) {
613 double data = theData[i];
614 value += data*data;
615 }
616 return sqrt(value);
617}
618
619double
620Vector::pNorm(int p) const

Callers 15

invIsoMappingFunction · 0.45
setDomainMethod · 0.45
updateBaseMethod · 0.45
getIntJacobianMethod · 0.45
projectMethod · 0.45
setDomainMethod · 0.45
setDomainMethod · 0.45
revertToStartMethod · 0.45
updateMethod · 0.45
ProjectMethod · 0.45
UpdateBaseMethod · 0.45
setDomainMethod · 0.45

Calls

no outgoing calls

Tested by 2

checkMethod · 0.36
checkMethod · 0.36