einsums::tensor_io::rename_entry#

Note

Generated from the C++ headers by apiary --emit-cpp-docs-json.

Defined in header Einsums/TensorIO/Entries.hpp.

void rename_entry(std::string path, std::string old_name, std::string new_name)#

Give the entry old_name of path the name new_name.

Only the file’s entry table changes, so a rename costs the same whatever the entry holds. See TensorFile::rename.

Added in version 2.0.0.

Throws:
  • std::runtime_error – when the file or the entry is missing.

  • std::invalid_argument – when an entry is already named new_name, or no entry can hold it.