Jpp 20.0.0-rc.2
the software that should make you happy
|
1D table with arithmetic capabilities. More...
#include <JTable1D.hh>
Public Types | |
typedef JData_t | data_type |
Public Member Functions | |
JTable1D () | |
Default constructor. | |
const data_type & | operator[] (int entry) const |
Get entry data. | |
data_type & | operator[] (int entry) |
Get entry data. | |
JTable1D & | negate () |
Negate table. | |
JTable1D & | add (const JTable1D &table) |
Add table. | |
JTable1D & | sub (const JTable1D &table) |
Subtract table. | |
JTable1D & | mul (const double factor) |
Scale table. | |
JTable1D & | div (const double factor) |
Scale table. | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. | |
Static Public Member Functions | |
static int | getNX () |
Get number of entries. | |
Protected Attributes | |
data_type | data [NX] |
Friends | |
JReader & | operator>> (JReader &in, JTable1D &table) |
Read table from input. | |
JWriter & | operator<< (JWriter &out, const JTable1D &table) |
Write table to output. | |
1D table with arithmetic capabilities.
Definition at line 27 of file JTable1D.hh.
JData_t JTOOLS::JTable1D< NX, JData_t >::data_type |
Definition at line 30 of file JTable1D.hh.
|
inline |
Default constructor.
Definition at line 35 of file JTable1D.hh.
|
inlinestatic |
Get number of entries.
Definition at line 48 of file JTable1D.hh.
|
inline |
Get entry data.
entry | entry number |
Definition at line 60 of file JTable1D.hh.
|
inline |
Get entry data.
entry | entry number |
Definition at line 72 of file JTable1D.hh.
|
inline |
|
inline |
Add table.
table | table |
Definition at line 99 of file JTable1D.hh.
|
inline |
Subtract table.
table | table |
Definition at line 115 of file JTable1D.hh.
|
inline |
Scale table.
factor | multiplication factor |
Definition at line 130 of file JTable1D.hh.
|
inline |
Scale table.
factor | division factor |
Definition at line 146 of file JTable1D.hh.
|
inlineinherited |
|
friend |
Read table from input.
in | reader |
table | table |
Definition at line 163 of file JTable1D.hh.
|
friend |
Write table to output.
out | writer |
table | table |
Definition at line 180 of file JTable1D.hh.
|
protected |
Definition at line 191 of file JTable1D.hh.