Public Types | Public Attributes | List of all members
o2scl::eos_sn_base::slice Class Reference

A slice of data from eos_sn_base for one index fixed. More...

#include <eos_sn.h>

Detailed Description

This class allows one to easily construct a o2scl::interp2_direct object automatically by fixing one index from one of the o2scl::tensor_grid3 objects in a child of o2scl::eos_sn_base .

Definition at line 358 of file eos_sn.h.

Public Types

typedef std::function< double &(size_t, size_t)> data_t
 Typedef for the matrix type.
 

Public Attributes

data_t data
 Data object in the form of a matrix.
 

Grid vectors

ubvector grid_x
 
ubvector grid_y
 
interp2_direct< ubvector, data_t, matrix_row_gen< data_t >, matrix_column_gen< data_t > > it
 The interpolation object.
 
void set_nB_T (tensor_grid3<> &tg3, size_t iYe)
 Set the slice to correspond to a matrix in the form $ (n_B,T) $. More...
 
void set_nB_Ye (tensor_grid3<> &tg3, size_t iT)
 Set the slice to correspond to a matrix in the form $ (n_B,Y_e) $. More...
 
void set_T_Ye (tensor_grid3<> &tg3, size_t inB)
 Set the slice to correspond to a matrix in the form $ (T,Y_e) $. More...
 

Member Function Documentation

◆ set_nB_T()

void o2scl::eos_sn_base::slice::set_nB_T ( tensor_grid3<> &  tg3,
size_t  iYe 
)
inline

Definition at line 381 of file eos_sn.h.

◆ set_nB_Ye()

void o2scl::eos_sn_base::slice::set_nB_Ye ( tensor_grid3<> &  tg3,
size_t  iT 
)
inline

Definition at line 400 of file eos_sn.h.

◆ set_T_Ye()

void o2scl::eos_sn_base::slice::set_T_Ye ( tensor_grid3<> &  tg3,
size_t  inB 
)
inline

Definition at line 419 of file eos_sn.h.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).