Class tensor1 (o2scl)¶
-
template<class
data_t
= double, classvec_t
= std::vector<data_t>, classvec_size_t
= std::vector<size_t>>
classo2scl
::
tensor1
: public o2scl::tensor<double, std::vector<double>, std::vector<size_t>>¶ Rank 1 tensor.
Method to check for valid object
-
void
is_valid
() const¶ Check that the o2scl::tensor1 object is valid.
Specialized get and set functions
-
template<class
size_vec_t
>
voidset
(const size_vec_t &index, data_t val)¶ Set the element indexed by
index
to valueval
.(We have to explicitly provide this version since the set() function is overloaded in this child of tensor.)
Specialized operator functions
-
void