MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Preventing unwanted threading by Inner

  • To: mathgroup at smc.vnet.net
  • Subject: [mg123545] Re: Preventing unwanted threading by Inner
  • From: Chris Young <cy56 at comcast.net>
  • Date: Sat, 10 Dec 2011 07:31:59 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <jbni23$47f$1@smc.vnet.net> <jbq43r$irr$1@smc.vnet.net>

On 2011-12-08 10:38:51 +0000, Oleksandr Rasputinov said:

> Redefining built-in functions in such a drastic way is seldom a good idea
> because Mathematica makes assumptions about the way these functions
> operate and does not handle alterations gracefully. In this case it seems
> that Inner does not check to see if the Attributes set on Times have been
> changed and instead uses a direct internal (kernel) function call as if it
> had the default Attributes.
> 
> I assume you want this form for display purposes or because you want to
> keep the coordinates as isolated entities. In that case, rather than
> redefining Times, you could use:
> 
> coordinate /: Format[coordinate[pts_List]] := pts
> 
> {a, b, c} . coordinate /@ {{A, \[Alpha]}, {B, \[Beta]}, {C, \[Chi]}}

Thanks, I'm filing this away also.





  • Prev by Date: Re: Function for complex polynomial with variable number of arguments
  • Next by Date: Re: NDSolvie[]
  • Previous by thread: Re: Preventing unwanted threading by Inner
  • Next by thread: Re: Preventing unwanted threading by Inner