Class tensor_grid4 (o2scl)¶
-
template<class vec_t = std::vector<double>, class vec_size_t = std::vector<size_t>>
class tensor_grid4 : public o2scl::tensor_grid<std::vector<double>, std::vector<size_t>>¶ Rank 4 tensor with a grid.
Public Functions
-
inline tensor_grid4()¶
Create an empty tensor.
-
inline tensor_grid4(size_t sz, size_t sz2, size_t sz3, size_t sz4)¶
Create a rank 4 tensor of size
(sz,sz2,sz3,sz4)
-
inline virtual ~tensor_grid4()¶
-
inline double &get(size_t ix1, size_t ix2, size_t ix3, size_t ix4)¶
Get the element indexed by
(ix1,ix2,ix3,ix4)
-
inline const double &get(size_t ix1, size_t ix2, size_t ix3, size_t ix4) const¶
Get the element indexed by
(ix1,ix2,ix3,ix4)
-
inline void set(size_t ix1, size_t ix2, size_t ix3, size_t ix4, double val)¶
Set the element indexed by
(ix1,ix2,ix3,ix4) to value
val
.
-
template<class range_t = ub_range, class data_range_t = ubvector_range, class index_range_t = ubvector_size_t_range>
inline double interp(double x, double y, double z, double a)¶ Interpolate
(x,y,z,a) and return the results.
-
inline double interp_linear(double x, double y, double z, double a)¶
Interpolate
(x,y,z,a) and return the results.
-
inline tensor_grid4()¶