Mailing Lists: Apple Mailing Lists

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

a bug in vDSP's vsub()



Hi,

Apple's vDSP library ( http://developer.apple.com/hardware/ve/vector_libraries.html ) has a function,

extern void
vsub(
const float input1[],
SInt32 stride1,
const float input2[],
SInt32 stride2,
float result[],
SInt32 strideResult,
UInt32 size)

According to vDSP documentation(included with the sample codes downloaded from the aforementioned URL), result = input1 - input2. However, when I played with it, I got result = input2 - input1, the exact negative of what is documented.

Any thoughts on this?

Thanks

-Fei


-Fei
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.



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.