MathGroup Archive 2010

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

Search the Archive

Re: locally changing Options

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108275] Re: locally changing Options
  • From: Peter Pein <petsie at dordos.net>
  • Date: Fri, 12 Mar 2010 07:11:20 -0500 (EST)
  • References: <hnakgk$5oa$1@smc.vnet.net>

Am 11.03.2010 12:34, schrieb hemmecke:
> In a function I'd like to temporarily say
>
> foo[x_]:=Module[{...},
>    ...
>    SetOptions[RowReduce, Method->OneStepRowReduction];
>    ...
> ]
>
> without affecting the global setting for RowReduce when I call foo.
>
...
>
> Ralf
>


Hi Ralf,

There is a package "BlockOptions" at 
http://library.wolfram.com/infocenter/MathSource/5549/

It is used like (you might want to know before downloading):

BlockOptions[{RowReduce},
   SetOptions[RowReduce, what->ever, you->like];
   ... RowReducing over and over again ...
(*  simply close the bracket and don't worry what you've done to the 
options of any of the functions in the list above *)
]

Peter


  • Prev by Date: Re: ParametricPlot3D with three parameters
  • Next by Date: Re: plot solution derivative
  • Previous by thread: Re: locally changing Options
  • Next by thread: Re: Re: locally changing Options