MathGroup Archive 1999

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

Search the Archive

Re: Packed Arrays in version 4


Hi John

You could use contexts: Define a new context "Efficient`" and put it
in front of "System`" in the context search path. Then you can 
define your own "Transpose" etc inside this context and use the
built-in "Transpose" by fully qualifying it (System`Transpose) in
the implementation of your "Transpose".

Here's an example how this can be done in the context "Global`":

In[1]:= Global`Transpose[x_]:= System`Transpose[x] + a
In[2]:= Transpose[{{c,d,e}}]
Out[2]:= {{a+c},{a+d},{a+e}}

Yours sincerely
  Bruno


  • Prev by Date: Re: HELP : Mathematica v4 producing erroneous results ! Mathematica3 worked fine...
  • Next by Date: Re: HELP : Mathematica v4 producing erroneous results ! Mathematica3 worked fine...
  • Previous by thread: RE: Packed Arrays in version 4
  • Next by thread: Re: Packed Arrays in version 4