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

Method operator/

DEVELOPER/core/Vector.cpp:886–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884// are return(i) = theData[i]/fact; Exits if divide-by-zero error.
885
886Vector
887Vector::operator/(double fact) const
888{
889 if (fact == 0.0)
890 opserr << "Vector::operator/(double fact) - divide-by-zero error coming\n";
891
892 Vector result(*this);
893 if (result.Size() != sz)
894 opserr << "Vector::operator/(double) - ran out of memory for new Vector\n";
895
896 result /= fact;
897 return result;
898}
899
900
901

Callers

nothing calls this directly

Calls 4

SizeMethod · 0.45
noRowsMethod · 0.45
noColsMethod · 0.45
SolveMethod · 0.45

Tested by

no test coverage detected