Changeset 3ab391 in git


Ignore:
Timestamp:
Jan 16, 2009, 3:21:09 AM (15 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
1378915d904a163ade5fd8be0a96eb3e73bac75c
Parents:
2653d3c2809f0b96d6da699e54066fdb07623b92
Message:
*motsak: jacob for modules


git-svn-id: file:///usr/local/Singular/svn/trunk@11323 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r2653d3 r3ab391  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.491 2009-01-15 17:22:02 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.492 2009-01-16 02:21:09 motsak Exp $ */
    55
    66/*
     
    40454045  return FALSE;
    40464046}
     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 */
     4054static 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
    40474077static BOOLEAN jjKBASE(leftv res, leftv v)
    40484078{
     
    50845114,{jjJACOB_P,    JACOB_CMD,       IDEAL_CMD,      POLY_CMD       ALLOW_PLURAL}
    50855115,{mpJacobi,     JACOB_CMD,       MATRIX_CMD,     IDEAL_CMD      ALLOW_PLURAL}
     5116,{jjJACOB_M,    JACOB_CMD,       MODUL_CMD,      MODUL_CMD      ALLOW_PLURAL}
    50865117,{jjJanetBasis, JANET_CMD,       IDEAL_CMD,      IDEAL_CMD      ALLOW_PLURAL}
    50875118,{jjKBASE,      KBASE_CMD,       IDEAL_CMD,      IDEAL_CMD      ALLOW_PLURAL}
Note: See TracChangeset for help on using the changeset viewer.