This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Is using a built-in function the same as using vectorized code? No. For example, if you write the statement s=sum(v) , you are calling a function and that is not vectorized code. The function sum may or may not use vectorized code to do the summing, but the function call that you write is just that, a function call it does not perform an operation on multiple cells. Be sure to follow instructions on an exam! On some questions we want to see that you have mastered loops and indexing and therefore do not allow vectorized code. Similiarly, we may forbid the use of specific built-in functions on a question. A significant penalty will be applied if you do not follow instructions....
View Full Document
This note was uploaded on 02/15/2008 for the course CS 100 taught by Professor Fan/vanloan during the Fall '07 term at Cornell University (Engineering School).
- Fall '07