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

◆ rankProfile() [2/2]

void ffpackInterface::rankProfile ( const DMatZZpFFPACK & A,
bool row_profile,
std::vector< size_t > & result_profile )

Definition at line 266 of file dmat.cpp.

270{
271 DMatZZpFFPACK N(mat);
272
273 size_t* prof; // this is where the result will be placed
274 size_t rk;
275 if (row_profile)
276 rk = FFPACK::RowRankProfile(mat.ring().field(),
277 mat.numRows(),
278 mat.numColumns(),
279 N.rowMajorArray(),
280 mat.numColumns(),
281 prof);
282 else
283 rk = FFPACK::ColumnRankProfile(mat.ring().field(),
284 mat.numRows(),
285 mat.numColumns(),
286 N.rowMajorArray(),
287 mat.numColumns(),
288 prof);
289
290 result_profile.resize(0);
291 for (size_t i = 0; i < rk; i++) result_profile.push_back(prof[i]);
292
293 delete[] prof;
294}
#define DMatZZpFFPACK

References DMatZZpFFPACK.