Feature #633
New operations? ScalarProduct(MODULELEM,LIST), MATRIX * MODULELEM
Description
I think that ScalarProduct(MODULELEM,LIST) is OK
but MATRIX * MODULELEM may be ambiguous (row or col?)
For sure we should add examples to the manual
Related issues
History
#1 Updated by Redmine Admin almost 9 years ago
- Target version set to CoCoA-5.?.?
#2 Updated by John Abbott about 7 years ago
If we regard ScalarProduct(A,B)
as being equivalent to sum([A[i]*B[i] | i in 1..len(A)])
then ScalarProduct
should accept LIST (of INT/RAT/RINGELEM) and MODULEELEM. For instance:
F := NewFreeModule(R,3); G := gens(F); L := [1,2,3]; // LIST of INT ScalarProduct(L,G); --> currently gives error L[1]*G[1] + L[2]*G[2] + L[3]*G[3]; --> gives expected answer
#3 Updated by John Abbott about 7 years ago
- Related to Support #1031: ScalarProduct: exact defn and manual page added