20 explicit TensorIO(
const std::filesystem::path &path,
char separator =
',')
21 : _path(std::move(path)), _separator(separator) {};
24 [[deprecated(
"Use class txeo::MatrixIO.")]]
28 [[deprecated(
"Use class txeo::MatrixIO.")]]
32 requires(std::is_floating_point_v<T>)
33 [[deprecated(
"Use class txeo::MatrixIO.")]]
37 [[deprecated(
"Use class txeo::MatrixIO.")]]
39 bool has_header =
false) {
41 Tensor<T> resp{io.read_text_file<T>(has_header)};
46 [[deprecated(
"Use class txeo::MatrixIO.")]]
48 char separator =
',') {
54 requires(std::is_floating_point_v<T>)
55 [[deprecated(
"Use class txeo::MatrixIO.")]]
57 const std::filesystem::path &path,
char separator =
',') {
63 std::filesystem::path _path;
73 using std::runtime_error::runtime_error;
Implements the mathematical concept of tensor, which is a magnitude of multiple order....
Exceptions concerning txeo::TensorIO.
This class is deprecated. Please use class txeo::MatrixIO.
static txeo::Tensor< T > read_textfile(const std::filesystem::path &path, char separator=',', bool has_header=false)
txeo::Tensor< T > read_text_file(bool has_header=false) const
static void write_textfile(const txeo::Tensor< T > &tensor, const std::filesystem::path &path, char separator=',')
void write_text_file(const txeo::Tensor< T > &tensor) const
TensorIO(const std::filesystem::path &path, char separator=',')
static void write_textfile(const txeo::Tensor< T > &tensor, size_t precision, const std::filesystem::path &path, char separator=',')
void write_text_file(const txeo::Tensor< T > &tensor, size_t precision) const