Révision 90 pobysoPythonSage/src/sageSLZ/sagePolynomialOperations.sage

sagePolynomialOperations.sage (revision 90)
357 357
    return ((protoMatrixRows, knownMonomials))
358 358
# End spo_polynomial_to_proto_matrix
359 359

  
360
def spo_proto_to_column_matrix(protoMatrixColumns):
360
def spo_proto_to_column_matrix(protoMatrixColumns, \
361
                               knownMonomialsList, \
362
                               boundVar1, \
363
                               boundVar2):
361 364
    """
362 365
    Create a column (each row holds the coefficients of one monomial) matrix.
363 366
    protoMatrixRows.
......
376 379
    baseMatrix = matrix(ZZ, numRows, numColumns)
377 380
    for colIndex in xrange(0, numColumns):
378 381
        for rowIndex in xrange(0, len(protoMatrixColumns[colIndex])):
379
            baseMatrix[rowIndex, colIndex] = \
380
            protoMatrixColumns[colIndex][rowIndex]
382
            if protoMatrixColumns[colIndex][rowIndex] != 0:
383
                baseMatrix[rowIndex, colIndex] = \
384
                    protoMatrixColumns[colIndex][rowIndex] * \
385
                    knownMonomialsList[rowIndex](boundVar1, boundVar2)
381 386
    return baseMatrix
382 387
# End spo_proto_to_column_matrix.
383 388
#
......
386 391
                            boundVar1, \
387 392
                            boundVar2):
388 393
    """
389
    Create a row (each column holds the coefficients of one monomial) matrix.
394
    Create a row (each column holds the evaluation one monomial at boundVar1 and
395
    boundVar2 values) matrix.
390 396
    protoMatrixRows.
391 397
    
392 398
    Parameters

Formats disponibles : Unified diff