Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

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


  • 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