+1 vote
asked by (450 points)

Is there a way to write a CMatrix type to file? the 'writeToFile' function does not work.

1 Answer

+1 vote
answered by (37k points)

Hi Nick,
This was just something that was missing; I didn't define reading and writing of the "range" type that matrices use to store their column and row size. I just defined that and pushed the change to Github. So if you do "git pull" and recompile ITensor you should now be able to use writeToFile with CMatrix.

Thanks for the bug report!

Best regards,
Miles

Welcome to ITensor Support Q&A, where you can ask questions and receive answers from other members of the community.

Formatting Tips:
  • To format code, indent by four spaces
  • To format inline LaTeX, surround it by @@ on both sides
  • To format LaTeX on its own line, surround it by $$ above and below
  • For LaTeX, it may be necessary to backslash-escape underscore characters to obtain proper formatting. So for example writing \sum\_i to represent a sum over i.
If you cannot register due to firewall issues (e.g. you cannot see the capcha box) please email Miles Stoudenmire to ask for an account.

To report ITensor bugs, please use the issue tracker.

Categories

...