MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / JudgeNoneZero

Function JudgeNoneZero

Applications/HHL_Algorithm/BasicFunctionByOrigin.cpp:326–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324
325
326bool JudgeNoneZero(VectorXd& clos) {
327 int size = clos.size();
328 bool NoZero = false;
329 for (int i = 0; i < size; i++) {
330 if (clos(i) != 0) {
331 NoZero = true;
332 break;
333 }
334 }
335 return NoZero;
336}
337
338vector<int> getNZeroIndex(int* Sp, int size) {
339 //int size = Sp.size();

Callers 1

getSubMatrixFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected