jltensor¶
-
template<class T, std::size_t N>
class jltensor : public xt::jlcontainer<jltensor<T, N>>, public xcontainer_semantic<jltensor<T, N>>¶ Constructors
-
inline jltensor()¶
Allocates a jltensor that holds 1 element.
-
inline jltensor(nested_initializer_list_t<T, N> t)¶
Allocates a jltensor with a nested initializer list.
-
inline explicit jltensor(const shape_type &shape)¶
Allocates an uninitialized jltensor with the specified shape and layout.
- Parameters
shape – the shape of the jltensor
-
inline explicit jltensor(const shape_type &shape, const_reference value)¶
Allocates a jltensor with the specified shape and layout.
Elements are initialized to the specified value.
- Parameters
shape – the shape of the jltensor
value – the value of the elements
-
inline jltensor(jl_array_t *jl)¶
Allocates a jltensor that holds 1 element.
-
inline jltensor()¶