ones
full name: tenpy.linalg.np_conserved.ones
parent module:
tenpy.linalg.np_conservedtype: function
- tenpy.linalg.np_conserved.ones(legcharges, dtype=<class 'numpy.float64'>, qtotal=None, labels=None)[source]
Short-hand for
Array.from_func()with functionnumpy.ones().Warning
For non-trivial charges, only blocks with compatible charges are filled with ones!