#2216: Vectors: allow seamless interaction with scalar types ---------------------------------+----------------------------------- Reporter: Roland Haas | Type: enhancement Status: new | Priority: minor Milestone: | Component: EinsteinToolkit thorn Version: development version | Keywords: Vectors ---------------------------------+----------------------------------- * Vectors: allow implicit cast from scalar_t * Vectors: provide binary operations with scalars
one needs both {{{ operatorX(T, vectype<T>) }}} and {{{ operatorX(vectype<T>, T) }}} for both commuting and non-commuting operators
Pull request is here: https://bitbucket.org/cactuscode/cactusutils/pull- requests/16/rhaas-inclict-conv/diff
#2216: Vectors: allow seamless interaction with scalar types ------------------------------------+--------------------------------- Reporter: Roland Haas | Owner: (none) Type: enhancement | Status: review Priority: minor | Milestone: Component: EinsteinToolkit thorn | Version: development version Resolution: | Keywords: Vectors ------------------------------------+--------------------------------- Changes (by Roland Haas):
* status: new => review
#2216: Vectors: allow seamless interaction with scalar types ------------------------------------+--------------------------------- Reporter: Roland Haas | Owner: (none) Type: enhancement | Status: review Priority: minor | Milestone: Component: EinsteinToolkit thorn | Version: development version Resolution: | Keywords: Vectors ------------------------------------+---------------------------------
Comment (by Erik Schnetter):
I see you define operators for {{{+}}} and {{{*}}}. What about subtraction and division?
#2216: Vectors: allow seamless interaction with scalar types ------------------------------------+--------------------------------- Reporter: Roland Haas | Owner: (none) Type: enhancement | Status: review Priority: minor | Milestone: Component: EinsteinToolkit thorn | Version: development version Resolution: | Keywords: Vectors ------------------------------------+---------------------------------
Comment (by Roland Haas):
Erik says (offline communication): "please apply".
#2216: Vectors: allow seamless interaction with scalar types ------------------------------------+--------------------------------- Reporter: Roland Haas | Owner: (none) Type: enhancement | Status: reviewed_ok Priority: minor | Milestone: Component: EinsteinToolkit thorn | Version: development version Resolution: | Keywords: Vectors ------------------------------------+--------------------------------- Changes (by Roland Haas):
* status: review => reviewed_ok
#2216: Vectors: allow seamless interaction with scalar types ------------------------------------+--------------------------------- Reporter: Roland Haas | Owner: (none) Type: enhancement | Status: closed Priority: minor | Milestone: Component: EinsteinToolkit thorn | Version: development version Resolution: fixed | Keywords: Vectors ------------------------------------+--------------------------------- Changes (by Roland Haas):
* status: reviewed_ok => closed * resolution: => fixed
Comment:
Applied as git hash cf7053e "Vectors: make all conversion ops templates" of cactusutils.
trac@lists.einsteintoolkit.org