Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving Data in Memory Part II



On Fri, 22 Oct 2004, Gohara, David  wrote:

> Regarding a 3D array this is similar to my last question regarding
> transposing a 2D array.  Except this time I was wondering if it's
> possible to do this across the third dimension (that is all values in
> the third direction would become a stride of 1).  I thought about this a
> while now, but I've now gotten myself completely confused and am asking
> for help.  Previously I took the easy way and used mtrans() as was
> kindly suggested.
>
Well, if you have a solution for 2D, you can generalize it to 3D by
regarding the volume as a stack of slices parallel to the XZ plane,
stacked along the Y axis.

The primary stride of those slices would be 1, and the secondary stride
would be along Z (i.e. index += width*height) rather than along Y (i.e.
index =+ width).

You could transpose each slice exactly the way you did in 2D. Or is there
another complication?

  Holger

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
PerfOptimization-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/perfoptimization-dev/email@hidden

This email sent to email@hidden

References: 
 >Moving Data in Memory Part II (From: "Gohara, David " <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.