<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color:rgb(255, 255, 255);display:inline !important">scitbx.linalg.eigensystem?</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
&gt;&gt;&gt; from scitbx.array_family import flex
<div>&gt;&gt;&gt; from scitbx.linalg import eigensystem</div>
<div>&gt;&gt;&gt; m = flex.double((-2, -4, 2, -2, 1, 2, 4, 2, 5))</div>
<div>&gt;&gt;&gt; m.reshape(flex.grid(3,3))</div>
<div>&gt;&gt;&gt; es = eigensystem.real_symmetric(m)</div>
<div>&gt;&gt;&gt; list(es.values())<br>
</div>
<div>[6.999999999999998, 2.0, -5.0]</div>
<div>&gt;&gt;&gt; list(es.vectors())</div>
<div>[0.36514837167011327, 0.18257418583505025, 0.9128709291752769, -0.4472135954999558, 0.8944271909999169, 5.177854513745429e-15, 0.816496580927726, 0.4082482904638631, -0.40824829046386296]</div>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Dr Richard Gildea</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt; background-color:white">Data Analysis Scientist</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Tel: +441235 77 8078</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt">&nbsp;</span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Diamond Light Source Ltd.</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Diamond House</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Harwell Science &amp; Innovation Campus</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Didcot</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Oxfordshire</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">OX11 0DE</span></font></span></font></div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> cctbxbb-bounces@phenix-online.org &lt;cctbxbb-bounces@phenix-online.org&gt; on behalf of Robert Oeffner &lt;rdo20@cam.ac.uk&gt;<br>
<b>Sent:</b> 10 December 2020 14:57<br>
<b>To:</b> cctbx mailing list &lt;cctbxbb@phenix-online.org&gt;<br>
<b>Subject:</b> [cctbxbb] alternative to scipy.linalg.eig</font>
<div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">scipy.linalg.eig is useful for diagonalising a 3x3 matrix to find
<br>
eigenvalues and eigenvectors. Does anybody know if there is code in <br>
CCTBX which can also do this?<br>
<br>
<br>
Rob<br>
<br>
<br>
-- <br>
This email has been checked for viruses by AVG.<br>
<a href="https://www.avg.com">https://www.avg.com</a><br>
<br>
_______________________________________________<br>
cctbxbb mailing list<br>
cctbxbb@phenix-online.org<br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
</div>
</span></font></div>
<p align="justify">&nbsp;</p>
<p align="justify">--&nbsp;</p>
<p align="justify">This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.<br />Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. <br />Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.<br />Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom<br />&nbsp;</p></body>
</html>