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

Method CreateVector

parallel/parallel_matrices.cpp:604–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602 }
603
604 AutoVector ParallelMatrix :: CreateVector () const
605 {
606 if(row_paralleldofs != col_paralleldofs) {
607 throw Exception("ParallelMatrix::CreateVector called for nonsymmetric case (use CreateRowVector of CreateColVector)!");
608 }
609 if (IsComplex()) {
610 return make_unique<S_ParallelBaseVectorPtr<Complex>>
611 (mat->Width(), paralleldofs->GetEntrySize(), paralleldofs, DISTRIBUTED);
612 }
613 else {
614 return make_unique<S_ParallelBaseVectorPtr<double>>
615 (mat->Width(), paralleldofs->GetEntrySize(), paralleldofs, DISTRIBUTED);
616 }
617 }
618
619 ostream & ParallelMatrix :: Print (ostream & ost) const
620 {

Callers

nothing calls this directly

Calls 3

GetEntrySizeMethod · 0.80
IsComplexFunction · 0.50
WidthMethod · 0.45

Tested by

no test coverage detected