Macaulay2 Engine
Loading...
Searching...
No Matches

◆ getRealVector()

PointArray::RealVector getRealVector ( const MutableMatrix * M,
int col )

Definition at line 1062 of file matrix.cpp.

1063{
1065 auto MC = dynamic_cast<const MutableMat<DMat<M2::ARingCC> > *>(M);
1066 // if (MC == nullptr)
1067 if (MC == nullptr)
1068 {
1069 throw exc::engine_error("expected mutable matrix over CC");
1070 }
1071
1072 for (size_t r = 0; r < MC->getMat().numRows(); ++r)
1073 {
1074 result.push_back(MC->getMat().entry(r, col).re);
1075 result.push_back(MC->getMat().entry(r, col).im);
1076 }
1077 return result;
1078}
std::vector< double > RealVector
Definition NAG.hpp:114
VALGRIND_MAKE_MEM_DEFINED & result(result)

References result().

Referenced by rawPointArrayLookup(), and rawPointArrayLookupOrAppend().