Changeset 5757:1d3a668c8723


Ignore:
Timestamp:
08/13/07 05:39:28 (6 years ago)
Author:
William Stein <wstein@…>
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.
Message:

merge

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sage/libs/pari/gen.pyx

    r5630 r5757  
    568568 
    569569    ########################################### 
    570     # comparisions 
     570    # comparisons 
    571571    # I had to put the call to gcmp in another 
    572572    # function since otherwise I can't trap 
     
    632632    def copy(gen self): 
    633633        return P.new_gen(forcecopy(self.g)) 
    634  
    635634 
    636635    ########################################### 
     
    936935        return t 
    937936 
     937    def hclassno(gen n): 
     938        _sig_on 
     939        return P.new_gen(hclassno(n.g)) 
     940 
    938941    def ispseudoprime(gen self, flag=0): 
    939942        """ 
  • sage/libs/pari/gen.pyx

    r5756 r5757  
    47254725        t0GEN(B) 
    47264726        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)) 
    47274748        
    47284749    def matker(self, long flag=0): 
Note: See TracChangeset for help on using the changeset viewer.