Hello everyone,
Is there an developer-intended way to view a Vector<double> object with dim
entries as a Tensor<1, dim> object for ease of multiplication with other
Tensor<1, dim> instances such as normal vectors?
I can do something like:
// dim = 3
Vector<double> vec({4,5,6});
ArrayView<double> view(&a[0], 3);
Tensor<1, 3, double> tensor(view);
but from the documentation this seems to make a copy, and I wondered if
there was a deal.ii way to "view" the Vector<double> as a Tensor object.
This operation is the result of a numerical flux computation and is called
many times during assembly.
Thank you,
Corbin
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/722fb438-322b-4b40-ac21-d76c9cf749d4n%40googlegroups.com.