SyTen

◆ readTabulatedReal()

template<typename Scalar , Rank rank>
void syten::readTabulatedReal ( std::istream in,
DenseTensor< rank, Scalar > &  t 
)

Reads tabulated real data into a pre-sized dense tensor.

Each line corresponds to one entry of the tensor in the format:

[coord1] [coord2] [...] [coordN] [re]

Ignores lines starting with #.

References std::getline(), makeZero(), rank(), std::string::size(), and SYTEN_ASSERT_MSG.

+ Here is the call graph for this function: