ensign.cp_decomp.write_cp_decomp_dir¶
-
write_cp_decomp_dir
(decomp_dir, decomp, write_tensor=False)[source]¶ Writes a CP decomposition to the filesystem.
- Parameters
- decomp_dirstr
Path to the destination directory of the CP decomposition. This directory will be created if nonexistent and will be erased and overwritten if it exists.
- decompCPDecomp
The decomposition to be written.
- write_tensorbool
Write the tensor_data.txt and map_mode_<x>.txt files.
- Raises
- Exception
If the decomposition could not be written.
See also
ensign.cp_decomp.CPDecomp
CP decomposition class