|
[Date Index]
[Thread Index]
[Author Index]
Re: Summing all the elements along a dimension in a matrix
- To: mathgroup at smc.vnet.net
- Subject: [mg104303] Re: [mg104288] Summing all the elements along a dimension in a matrix
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Tue, 27 Oct 2009 04:57:25 -0500 (EST)
- References: <200910260425.XAA18560@smc.vnet.net>
- Reply-to: murray at math.umass.edu
A matrix is 2-dimensional and has no "third dimension". Are you trying
to sum along the 3rd row? Along the 3rd column?
Or are you talking about a higher-dimensional array?
CuppoJava wrote:
> Hi,
> I just started using Mathematica after a year of experience with
> another system, and I have a question regarding how to handle matrices.
>
> What is the equivalent code for doing
> sum(A,3) in mathematica?
> This sums all the elements A along the third dimension.
>
> I'm having a hard time finding it in the documentation.
>
> Thanks a lot for your help
> -Patrick
>
--
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: Using "/@" Effectively
Next by Date:
Re: Using "/@" Effectively
Previous by thread:
Summing all the elements along a dimension in a matrix
Next by thread:
Re: Summing all the elements along a dimension in a matrix
|