Yes, is this ;)

Thanks Dima.

2016-03-21 12:01 GMT-03:00 Dima Pasechnik <[email protected]>:

> for matrices supported by numpy/scipy, you can do the following:
>
> sage: a=matrix([[1,2],[3,4]])
> sage: b=matrix([[2,2],[3,4]])
>
> sage: from scipy.linalg import eig
> sage: eig(a.numpy(), b.numpy())
> (array([-1.+0.j,  1.+0.j]), array([[ -8.00000000e-01,  -7.10542736e-16],
>         [  6.00000000e-01,   1.00000000e+00]]))
>
>
> HTH,
> Dima
>
> On Monday, March 21, 2016 at 1:13:58 PM UTC, slelievre wrote:
>>
>> 2016-03-20 15:25:49 UTC+1, [email protected]:
>>
>> > In Matlab, you can return the eigenvalues
>> > between two arrays (A, B) square in shape:
>> >
>> >  e = eig(A, B)
>> >
>> > How do the sagemath?
>>
>> I don't know if this is available in SageMath,
>> even though it might be provided by some of
>> the libraries shipped by SageMath...
>>
>> For reference, the MATLAB documentation for eig is at:
>>   http://fr.mathworks.com/help/matlab/ref/eig.html
>>
>> A similar question was asked in 2013 on Ask Sage:
>>
>> http://ask.sagemath.org/question/10751/qz-decomposition-for-generalized-eigenvalues/
>> and is still unanswered.
>>
>> Samuel
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/YHJyuy5t2Ek/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
+
-----------------------------------------------------------------------------------
+
  João Marcello Pereira
  Física, matemática, informática e eletrônica UFPI/CTBJ
  skype: jmarcellopereira
  Celular (TIM) / WhatsApp: 61 81239941 89 999394331
+
-----------------------------------------------------------------------------------
+

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to