Révision 89
| pobysoPythonSage/src/sageSLZ/sagePolynomialOperations.sage (revision 89) | ||
|---|---|---|
| 402 | 402 |
baseMatrix = matrix(ZZ, numRows, numColumns) |
| 403 | 403 |
for rowIndex in xrange(0, numRows): |
| 404 | 404 |
for colIndex in xrange(0, len(protoMatrixRows[rowIndex])): |
| 405 |
baseMatrix[rowIndex, colIndex] = protoMatrixRows[rowIndex][colIndex] |
|
| 406 |
print knownMonomialsList[colIndex] |
|
| 405 |
if protoMatrixRows[rowIndex][colIndex] != 0: |
|
| 406 |
baseMatrix[rowIndex, colIndex] = \ |
|
| 407 |
protoMatrixRows[rowIndex][colIndex] * \ |
|
| 408 |
knownMonomialsList[colIndex](boundVar1,boundVar2) |
|
| 409 |
#print rowIndex, colIndex, |
|
| 410 |
#print protoMatrixRows[rowIndex][colIndex], |
|
| 411 |
#print knownMonomialsList[colIndex](boundVar1,boundVar2) |
|
| 407 | 412 |
return baseMatrix |
| 408 | 413 |
# End spo_proto_to_row_matrix. |
| 409 | 414 |
# |
Formats disponibles : Unified diff