Re: Packed Arrays in version 4
- To: mathgroup at smc.vnet.net
- Subject: [mg19014] Re: Packed Arrays in version 4
- From: Bruno Daniel <bruno.daniel at hadiko.de>
- Date: Tue, 3 Aug 1999 13:44:49 -0400
- Organization: University of Karlsruhe
- References: <7nrevk$idr@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
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