|
inline |
Parse a rank-1 tensor from an input stream.
Only use this when text files are absolutely necessary, normally, use the serialisation functions.
Input format is the same as the output format generated by operator<<(std::ostream&, DenseTensor<1, Scalar>&)
, i.e.:
for a rank-1 tensor of three complex elements. Note that anything that can be parsed into the scalar type of the tensor is accepted there.
References syten::DenseTensor< rank, Scalar >::dim(), read(), std::istream::setstate(), std::string::size(), std::stol(), and std::string::substr().