MCPcopy Create free account
hub / github.com/Singular/Singular / wNorm

Function wNorm

libpolys/polys/weight0.cc:463–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461#endif
462
463void wNorm(int *degw, int *lpol, int npol, double *rel)
464{
465 int i, j, ecu, ec;
466 int *ex;
467 double *r;
468
469 ex = degw;
470 r = rel;
471 for (i = 0; i < npol; i++)
472 {
473 ecu = *ex++;
474 for (j = lpol[i] - 1; j!=0 ; j--)
475 {
476 ec = *ex++;
477 if (ec > ecu)
478 ecu = ec;
479 }
480 *r = (double)1.0 / (double)(ecu * ecu);
481 r++;
482 }
483}

Callers 1

wCallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected