Home Online Manual
Top
Back: diagonalizeVecField
Forward: decomposeVecField
FastBack:
FastForward:
Up: VecField_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.15.19.7 vecFieldToMatrix

Procedure from library VecField.lib (see VecField_lib).

Usage:
vecFieldToMatrix(VecField V,ideal W)

Return:
the matrix representation of V restricted to span(W), in the basis specified by W.

Example:
 
LIB "VecField.lib";
int oldp = printlevel;
printlevel = 1;
ring r = 0, (x, y, z),ds;
vector v = [-1,-1,-1];
VecField V = v;
V.precision = 4;
map phi = r, x-2y2+z3,2y+y3+z,z;
VecField W = changeCoordinates(V,phi);
matrix m = vecFieldToMatrix(W,maxideal(2));
printlevel = oldp;