Changeset 5757:1d3a668c8723
- Timestamp:
- 08/13/07 05:39:28 (6 years ago)
- Branch:
- default
- Parents:
- 5754:463ada82e212 (diff), 5756:746b9b507839 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
-
sage/libs/pari/gen.pyx (modified) (3 diffs)
-
sage/libs/pari/gen.pyx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sage/libs/pari/gen.pyx
r5630 r5757 568 568 569 569 ########################################### 570 # comparis ions570 # comparisons 571 571 # I had to put the call to gcmp in another 572 572 # function since otherwise I can't trap … … 632 632 def copy(gen self): 633 633 return P.new_gen(forcecopy(self.g)) 634 635 634 636 635 ########################################### … … 936 935 return t 937 936 937 def hclassno(gen n): 938 _sig_on 939 return P.new_gen(hclassno(n.g)) 940 938 941 def ispseudoprime(gen self, flag=0): 939 942 """ -
sage/libs/pari/gen.pyx
r5756 r5757 4725 4725 t0GEN(B) 4726 4726 return self.new_gen(qfrep0(self.g,t0,flag)) 4727 4728 def matsolve(self, B): 4729 """ 4730 matsolve(B): Solve the linear system Mx=B for an invertible matrix M 4731 4732 matsolve(B) uses gaussian elimination to solve Mx=B, where M is 4733 invertible and B is a column vector. 4734 4735 The corresponding pari library routine is gauss. The gp-interface 4736 name matsolve has been given preference here. 4737 4738 INPUT: 4739 B -- a column vector of the same dimension as the square matrix self 4740 4741 EXAMPLES: 4742 sage: pari('[1,1;1,-1]').matsolve(pari('[1;0]')) 4743 [1/2; 1/2] 4744 """ 4745 _sig_on 4746 t0GEN(B) 4747 return self.new_gen(gauss(self.g,t0)) 4727 4748 4728 4749 def matker(self, long flag=0):
Note: See TracChangeset
for help on using the changeset viewer.
