Public Types | Public Member Functions | 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>

Public Types

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

Public Member Functions

void set_nB_T (tensor_grid3<> &tg3, size_t iYe)
 Set the slice to correspond to a matrix in the form $ (n_B,T) $.
 
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) $.
 
void set_T_Ye (tensor_grid3<> &tg3, size_t inB)
 Set the slice to correspond to a matrix in the form $ (T,Y_e) $.
 

Public Attributes

data_t data
 Data object in the form of a matrix.
 
interp2_direct< ubvector, data_t, matrix_row_gen< data_t >, matrix_column_gen< data_t > > it
 The interpolation object.
 
Grid vectors
ubvector grid_x
 
ubvector grid_y
 

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 351 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).