On 15/08/20 5:31 am, Stephen J. Turnbull wrote:
It seems to me you could have a Tensor
class whose constructor takes a bool argument 'contravariant' (default
False), and then recommend that users adopt a naming convention to
distinguish covariant Tensors from contravariant Tensors.

You would need a boolean for each axis, since a tensor can
be covariant on some axes and contravariant on others.
Likewise for a naming convention.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/3OYSJJ5JWJJTXTVZCKFFDMT2YBIBMNX2/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to