MCPcopy Create free account
hub / github.com/Geant4/geant4 / apply

Method apply

source/error_propagation/src/G4ErrorSymMatrix.cc:592–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592G4ErrorSymMatrix G4ErrorSymMatrix::apply(G4double (*f)(G4double, G4int,
593 G4int)) const
594{
595 G4ErrorSymMatrix mret(num_row());
596 G4ErrorMatrixConstIter a = m.cbegin();
597 G4ErrorMatrixIter b = mret.m.begin();
598 for(G4int ir = 1; ir <= num_row(); ++ir)
599 {
600 for(G4int ic = 1; ic <= ir; ++ic)
601 {
602 *(b++) = (*f)(*(a++), ir, ic);
603 }
604 }
605 return mret;
606}
607
608void G4ErrorSymMatrix::assign(const G4ErrorMatrix& mat1)
609{

Callers 15

mouseoverCBMethod · 0.80
findAndSetRefPathMethod · 0.80
getSceneElementsMethod · 0.80
sortElementsMethod · 0.80
LookAtSceneElementCBMethod · 0.80
FileSaveSceneGraphCBMethod · 0.80
mouseoverCBMethod · 0.80
findAndSetRefPathMethod · 0.80
getSceneElementsMethod · 0.80
sortElementsMethod · 0.80

Calls 2

cbeginMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected