prdk_day2b - A d v a n c e d P r o g r a m m i n g i n Q u...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: A d v a n c e d P r o g r a m m i n g i n Q u a n t i t a t i v e E c o n o m i c s Introduction, structure, and advanced programming techniques 17 – 21 August 2009, Aarhus, Denmark Charles Bos cbos@feweb.vu.nl VU University Amsterdam Tinbergen Institute Advanced Programming in Quantitative Economics – p. 1 Tutorial Day 2 - Afternoon 14.30P Tutorial ◦ Exercises HB ◦ Data duration model 16.00 End Advanced Programming in Quantitative Economics – p. 2 Rows or columns Does it make a difference to use rows or columns, for the speed of your program? Find this out... • Make a program which fills a n x n matrix with random numbers. • Do this either 1. at once, using rann(iN, iN); 2. filling mX row by row, mX[i]= rann(1, iN); 3. filling mX column by column, mX[i]= rann(iN, 1); • Measure the time each of these takes. Use the dTime= timer(); and println (timespan(dTime)); to measure. • If your computer is too quick, repeat the filling say S = 10 or S = 1000 times, or more, until you see which one works better....
View Full Document

Page1 / 9

prdk_day2b - A d v a n c e d P r o g r a m m i n g i n Q u...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online