Class tensor_grid3 (o2scl)¶
-
template<class
vec_t
= std::vector<double>, classvec_size_t
= std::vector<size_t>>
classo2scl
::
tensor_grid3
: public o2scl::tensor_grid<std::vector<double>, std::vector<size_t>>¶ Rank 3 tensor with a grid.
Public Functions
-
tensor_grid3
()¶ Create an empty tensor.
-
tensor_grid3
(size_t sz, size_t sz2, size_t sz3)¶ Create a rank 3 tensor of size
(sz,sz2,sz3)
-
~tensor_grid3
()¶
-
double &
get
(size_t ix1, size_t ix2, size_t ix3)¶ Get the element indexed by
(ix1,ix2,ix3)
-
const double &
get
(size_t ix1, size_t ix2, size_t ix3) const¶ Get the element indexed by
(ix1,ix2,ix3)
-
void
set
(size_t ix1, size_t ix2, size_t ix3, double val)¶ Set the element indexed by
(ix1,ix2,ix3) to value
val
.
-
template<class
range_t
= ub_range, classdata_range_t
= ubvector_range, classindex_range_t
= ubvector_size_t_range>
doubleinterp
(double x, double y, double z)¶ Interpolate
(x,y,z) and return the results.
-
double
interp_linear
(double x, double y, double z)¶ Interpolate
(x,y,z) and return the results.
-