Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documentation:language_reference:objects:start [2016/10/10 09:41] – external edit 127.0.0.1documentation:language_reference:objects:start [2024/09/16 11:51] (current) Maurits W. Haverkort
Line 1: Line 1:
 +{{indexmenu_n>999}}
 ====== Objects ====== ====== Objects ======
  
Line 4: Line 5:
 Besides functions Quanty defines several objects. The objects included are Complex numbers, Operators, Wavefunctions, Spectra, and TightBinding definitions. Each object comes with a small library (with the same name as the object) that defines several functions specific to the object. Objects furthermore can have several methods and or properties. Besides functions Quanty defines several objects. The objects included are Complex numbers, Operators, Wavefunctions, Spectra, and TightBinding definitions. Each object comes with a small library (with the same name as the object) that defines several functions specific to the object. Objects furthermore can have several methods and or properties.
 When possible implementations are such that functions do not change the values of their argument, whereas methods act on the object they belong to. i.e. B=Chop(A) will not alter A but return a new object B that is the chopped version of A. A.Chop() will change A to its chopped version. A.Chop() uses less memory as it only stores one copy of A. When possible implementations are such that functions do not change the values of their argument, whereas methods act on the object they belong to. i.e. B=Chop(A) will not alter A but return a new object B that is the chopped version of A. A.Chop() will change A to its chopped version. A.Chop() uses less memory as it only stores one copy of A.
 +###
  
 ### ###
Print/export