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

Function RegisterDeviceVectorCreator

linalg/basevector.hpp:319–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317 virtual shared_ptr<BaseVector> CreateDeviceVector(bool unified) const;
318 static std::map<type_index, function<shared_ptr<BaseVector>(const BaseVector&,bool)>> devveccreator;
319 static void RegisterDeviceVectorCreator (type_index type,
320 function<shared_ptr<BaseVector>(const BaseVector&,bool)> creator)
321 {
322 devveccreator[type] = creator;
323 }
324
325
326 const MemoryTracer& GetMemoryTracer() const { return mt; }

Callers 1

InitCuLinalgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected