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

Method SetScalar

linalg/basevector.cpp:1030–1041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1028 }
1029
1030 void BaseVectorPtrMV :: SetScalar (double s)
1031 {
1032 static Timer t("BaseVector-MV :: SetScalar");
1033 RegionTimer reg(t);
1034
1035 ParallelForRange
1036 (refvec->FVDouble().Size(), [&] (IntRange myrange)
1037 {
1038 for (int i = 0; i < Size(); i++)
1039 vecs[i]->FVDouble().Range(myrange) = s;
1040 });
1041 }
1042
1043 void BaseVectorPtrMV :: Add (const MultiVector & v2, FlatMatrix<double> mat)
1044 {

Callers

nothing calls this directly

Calls 4

FVDoubleMethod · 0.80
SizeFunction · 0.70
SizeMethod · 0.45
RangeMethod · 0.45

Tested by

no test coverage detected