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

Method getExpPos

kernel/numeric/mpr_base.cc:578–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578int pointSet::getExpPos( const poly p )
579{
580 int * vert;
581 int i,j;
582
583 // hier unschoen...
584 vert= (int *)omAlloc( (dim+1) * sizeof(int) );
585
586 p_GetExpV( p, vert, currRing );
587 for ( i= 1; i <= num; i++ )
588 {
589 for ( j= 1; j <= dim; j++ )
590 if ( points[i]->point[j] != (Coord_t) vert[j] ) break;
591 if ( j > dim ) break;
592 }
593 omFreeSize( (void *) vert, (dim+1) * sizeof(int) );
594
595 if ( i > num ) return 0;
596 else return i;
597}
598
599void pointSet::getRowMP( const int indx, int * vert )
600{

Callers 1

createMatrixMethod · 0.80

Calls 1

p_GetExpVFunction · 0.85

Tested by

no test coverage detected