MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / CreateDeviceVector

Method CreateDeviceVector

linalg/basevector.cpp:663–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661 }
662
663 shared_ptr<BaseVector> BaseVector :: CreateDeviceVector(bool unified) const
664 {
665 auto it = devveccreator.find(typeid(*this));
666 if (it == devveccreator.end())
667 {
668 cout << IM(1) << "No device creator function, creating host vector";
669 cout << IM(7) << ", type = " << typeid(*this).name();
670 cout << IM(1) << endl;
671 return CreateVector();
672 }
673 cout << IM(7) << "DeviceVector creator function for type " << typeid(*this).name() << endl;
674 return (*it).second(*this, unified);
675 }
676
677
678 /**

Callers

nothing calls this directly

Calls 4

IMClass · 0.85
findMethod · 0.80
CreateVectorFunction · 0.70
endMethod · 0.45

Tested by

no test coverage detected