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

Function unitVector

Singular/dyn_modules/python/Poly.h:630–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628 return erg;
629}
630inline Vector unitVector(int i,ring r=currRing){
631 poly p=p_ISet(1,r);
632 p_SetComp(p,i,r);
633 return Vector(p,r,0);
634}
635inline Poly operator*(const Number& n, const Poly & p){
636 Poly res=p;
637 res*=n;

Callers 1

unitVector0Function · 0.70

Calls 3

p_ISetFunction · 0.85
p_SetCompFunction · 0.85
VectorClass · 0.70

Tested by

no test coverage detected