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

Function idSubstPar

Singular/maps_ip.cc:385–396  ·  view source on GitHub ↗

2 * substitute the n-th parameter by the poly e in id * does not destroy id and e */

Source from the content-addressed store, hash-verified

383* does not destroy id and e
384*/
385ideal idSubstPar(ideal id, int n, poly e)
386{
387 int k=MATROWS((matrix)id)*MATCOLS((matrix)id);
388 ideal res=(ideal)mpNew(MATROWS((matrix)id),MATCOLS((matrix)id));
389
390 res->rank = id->rank;
391 for(k--;k>=0;k--)
392 {
393 res->m[k]=pSubstPar(id->m[k],n,e);
394 }
395 return res;
396}
397
398/*2
399* substitutes the variable var (from 1..N) by image,

Callers 1

jjSUBST_IdFunction · 0.85

Calls 2

mpNewFunction · 0.85
pSubstParFunction · 0.85

Tested by

no test coverage detected