Text archives Help
- From: David Weinstein <dmw@sci.utah.edu>
- To: Chris Butson <butson@sci.utah.edu>
- Cc: scirun-users@sci.utah.edu
- Subject: Re: [SCIRUN-USERS] eigenvalues in LinearAlgebra
- Date: Thu, 12 Jan 2006 10:51:39 -0700
Hi Chris,
If you have SCIRun compiled with LAPACK, then you can get the
eigenvalues / eigenvectors from any DenseMatrix:
DenseMatrix *dm;
ColumnMatrix *R, *I;
DenseMatrix *Vecs;
...
dm->eigenvectors(*R, *I, Vecs);
-- see SCIRun/src/Core/Datatypes/DenseMatrix.{cc,h} for details.
If you have a 3x3 Tensor, then there's an easier way:
Tensor t;
t.build_eigens_from_mat();
Vector v1=t->get_eigenvector1();
-- see SCIRun/src/Core/Geometry/Tensor.{cc,h} for details.
Cheers,
Dave
On Jan 12, 2006, at 9:02 AM, Chris Butson wrote:
Is anyone aware of a function that is available in LinearAlgebra
(or any other scirun module except MatlabInterface) that will
calculate the eigenvalues of a matrix?
Thanks,
Chris
======================================================================
=====
== The SCIRun Users mailing list: send email to
majordomo@sci.utah.edu ==
== for more
details. ==
== Please acknowledge use of SCIRun in your papers and
reports: ==
== see http://software.sci.utah.edu/scirun-
biopse_citation.bib ==
======================================================================
=====
===========================================================================
== The SCIRun Users mailing list: send email to majordomo@sci.utah.edu ==
== for more details. ==
== Please acknowledge use of SCIRun in your papers and reports: ==
== see
http://software.sci.utah.edu/scirun-biopse_citation.bib ==
===========================================================================
Archive powered by MHonArc 2.6.16.