On 1/5/20 6:15 AM, A.Z Ihsan wrote:
> just a small question.
>
> suppose we want to construct a rank-1 tensor in 3 dim with values (1, 1, 0) :
> Tensor<1, 3> b();
In addition the other answer, you can also initialize the tensor like this:
Tensor<1,3> t2({1., 1., 0.});
or
Tensor<1,3> t4{{1., 1., 0.}};
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.colostate.edu/~bangerth/
--
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/a5b0028f-6cb1-dd90-38db-48d9cbd06318%40colostate.edu.