Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*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 2006

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

Search the Archive

Re: Thread function over matrix elements?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69891] Re: Thread function over matrix elements?
  • From: dimmechan at yahoo.com
  • Date: Wed, 27 Sep 2006 06:03:42 -0400 (EDT)
  • References: <efacnv$1v0$1@smc.vnet.net>

mat = Table[i + j, {i, 0, 2}, {j, 0, 2}]

Map[f, mat, {2}]
{{f[0], f[1], f[2]}, {f[1], f[2], f[3]}, {f[2], f[3], f[4]}}

See

http://documents.wolfram.com/mathematica/functions/Level
http://documents.wolfram.com/mathematica/book/section-2.1.7

Regards
Dimitris


  • Prev by Date: conversion to InputForm without spaces
  • Next by Date: Re: ArcTan[-Infinity, y] always returning 0?
  • Previous by thread: Re: Thread function over matrix elements?
  • Next by thread: RE: Thread function over matrix elements?