Thank you Matthias.
It works perfectly!
BR,
Ihsan
On Sunday, January 5, 2020 at 3:41:38 PM UTC+1, Matthias Maier wrote:
>
>
> On Sun, Jan 5, 2020, at 07:15 CST, "A.Z Ihsan" > wrote:
>
> > Tensor<1, 3> b();
>
> If you write this then you declare a function "b" returning a
> Tensor<1,3>. Dec
On Sun, Jan 5, 2020, at 07:15 CST, "A.Z Ihsan" wrote:
> Tensor<1, 3> b();
If you write this then you declare a function "b" returning a
Tensor<1,3>. Declare the tensor without the parentheses:
Tensor<1, 3> b;
You can access individual elements of the tensor via operator[]:
b[0] = 1;
Hi there,
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();
i read a documentation we can use array_type as a parameter construction,
but still i aml confused how to use it.
any idea how to use it?
BR,
Ihsan
--
The dea