I have been doing this for a while using some modifications to the
dense_matrix class.

Attached are three files dense_matrix header and source, and the
dense_matrix_blas_lapack to facilitate the multiplication of real matrix
with complex vector.

Hope this helps.

Manav

On Tue, Jul 23, 2013 at 12:15 PM, John Peterson <[email protected]>wrote:

> On Tue, Jul 23, 2013 at 10:10 AM, Kathrin Smetana <[email protected]>
> wrote:
>
> > Hi all,
> >
> > I am working on a elastodynamics-problem with a complex-valued
> > displacement field. Hence I want to multiply a dense matrix of type real
> > with a vector of type number. As the DenseMatrix class only allows
> > multiplication of a matrix and a vector of the same type, I was wondering
> > if there might be a more elegant to do this than always changing the type
> > of the matrix before applying the function vector_mult.
> >
>
> More elegant to me would just be to use DenseVector<Number> instead of
> whatever you are currently using.
>
> Multiplication is defined between two members of R or two members of C, but
> not one of each :-)
>
> --
> John
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Libmesh-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-users
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to