Changeset 3ab391 in git
- Timestamp:
- Jan 16, 2009, 3:21:09 AM (14 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 1378915d904a163ade5fd8be0a96eb3e73bac75c
- Parents:
- 2653d3c2809f0b96d6da699e54066fdb07623b92
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r2653d3 r3ab391 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.49 1 2009-01-15 17:22:02 SingularExp $ */4 /* $Id: iparith.cc,v 1.492 2009-01-16 02:21:09 motsak Exp $ */ 5 5 6 6 /* … … 4045 4045 return FALSE; 4046 4046 } 4047 /*2 4048 * compute Jacobi matrix of a module/matrix 4049 * Jacobi(M) := ( diff(Mt,var(1))|, ... ,| diff(Mt,var(pVariables)) ), 4050 * where Mt := transpose(M) 4051 * Note that this is consistent with the current conventions for jacob in Singular, 4052 * whereas M2 computes its transposed. 4053 */ 4054 static BOOLEAN jjJACOB_M(leftv res, leftv a) 4055 { 4056 4057 ideal id = (ideal)a->Data(); 4058 id = idTransp(id); 4059 int W = IDELEMS(id); 4060 4061 ideal result = idInit(W * pVariables, id->rank); 4062 poly *p = result->m; 4063 4064 for( int v = 1; v <= pVariables; v++ ) 4065 { 4066 poly* q = id->m; 4067 for( int i = 0; i < W; i++, p++, q++ ) 4068 *p = pDiff( *q, v ); 4069 } 4070 idDelete(&id); 4071 4072 res->data = (char *)result; 4073 return FALSE; 4074 } 4075 4076 4047 4077 static BOOLEAN jjKBASE(leftv res, leftv v) 4048 4078 { … … 5084 5114 ,{jjJACOB_P, JACOB_CMD, IDEAL_CMD, POLY_CMD ALLOW_PLURAL} 5085 5115 ,{mpJacobi, JACOB_CMD, MATRIX_CMD, IDEAL_CMD ALLOW_PLURAL} 5116 ,{jjJACOB_M, JACOB_CMD, MODUL_CMD, MODUL_CMD ALLOW_PLURAL} 5086 5117 ,{jjJanetBasis, JANET_CMD, IDEAL_CMD, IDEAL_CMD ALLOW_PLURAL} 5087 5118 ,{jjKBASE, KBASE_CMD, IDEAL_CMD, IDEAL_CMD ALLOW_PLURAL}
Note: See TracChangeset
for help on using the changeset viewer.