Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Two questions related to Arrays

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113313] Re: Two questions related to Arrays
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Sat, 23 Oct 2010 07:05:51 -0400 (EDT)

Are you confounding..

   (1) Array, which is a built-in object in Mathematica that can be used 
to produce lists as its results; with

  (3) "array" as the term is often used?

The first argument is a List, not an Array, albeit a nested list.

On 10/22/2010 1:35 AM, Sam Takoy wrote:
> Hi,
>
> First, why doesn't the following return the first two elements of the
> outer list:
>
>
> Cases[{{{1}, {2}}, {3, 4}, {{5}, 6}}, _Array]
>
>
>
> Second, I'm looking for help writing a function
>
> f[t__]:=
>
> that returns Outer[Times, u] where u only includes the input variables
> that are Arrays.
>
>
> Many thanks in advance,
>
> Sam
>

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: From list to list of arguments
  • Next by Date: How to "soft-code" a Block?
  • Previous by thread: Re: Two questions related to Arrays
  • Next by thread: Replacement in a held function