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.

Copy semantic

inline jltensor(const self_type&)

The copy constructor.

inline self_type &operator=(const self_type&)

The assignment operator.

Extended copy semantic

template<class E>
inline jltensor(const xexpression<E> &e)

The extended copy constructor.

template<class E>
inline auto operator=(const xexpression<E> &e) -> self_type&

The extended assignment operator.