milkyklim

About indices

If you ask me

What is Master Program in Simulation Sciences about?

I will answer

It’s about getting you indices right. That’s what I am doing the whole days.

Here is a quick and useful hint:

\[\texttt{#define idx2D(i, j) (j + n_j*i)}\]

\[\texttt{#define idx3D(i, j, k) (k + n_k*(j + n_j*i))}\]

where \(\texttt{n_j}\) and \(\texttt{n_k}\) are the dimensions of a matrix in \(\texttt{j}\) and \(\texttt{k}\) directions, respectively.

With these formulas you can use 2D (3D) indexing while the array is stored in a 1D fashion. All you have to do is to make some small changes to your code:

\[\texttt{a[i][j]} \rightarrow \texttt{a[idx2D(i, j)]}\]

\[\texttt{a[i][j][k]} \rightarrow \texttt{a[idx3D(i, j, k)]}\]

I was in Berlin this weekend. And that was the best trip ever, despite the fact that, it took me more than 9 hours to get to Berlin by car (By the way, I didn’t know how awesome the Volkswagen mini-van looks from the inside).

I reached Ira’s home only at 3:30 am on Saturday and fell asleep soon.

We visited our favorite book shop "Dussmann" next morning. I bought the most useful book I could ever buy - SAS Survival Guide. :)

- Because you never know.

After that we ate burgers at "Hans im Glück" (which is in my opinion too expensive and where waitresses are extremely annoying) and got some cheap but good clothes from Cheap Monday.

…The best Saturday part was “Ichiban Karaoke”! The weirdest place I have ever seen. We sang a lot, especially songs I could hardly remember (like Mr. President - Coco Jambo). :)

Enter this place at you own risk and remember

- What is queer today is not queer tomorrow.

О любимой Пупырке

Скоро любимая Пупырка приедет в Аахен. Будем наслаждаться отличными выходными и отмечать наш маленький праздник!

image

Let’s be honest, you can hardly find something more inspiring than meeting the inventor of you favorite software. I had a chance to talk to Cleve Moler, who actually started MATLAB.

- Why did you decide to include the ‘why’-function in MATLAB?
- And why not?

Let’s be honest, you can hardly find something more inspiring than meeting the inventor of you favorite software. I had a chance to talk to Cleve Moler, who actually started MATLAB.

- Why did you decide to include the ‘why’-function in MATLAB?

- And why not?

About teamwork

I actually don’t have anything against teamwork. But the message I got from my “teammate” tonight pissed me off.

- sorry Klim, I’m not able to do the homework

- as so far I didn’t contributed much to the work, and as I am not sure wether I would be able to contribute in future, you may search for another parther for the homework. I don’t want to push you back too

I don’t think that the task to finish the report is something really difficult, especially, when you have the results and just have to brush those up…

I hate when people can’t simply say “no” at the beginning because that implies double-work and deadline extensions.

Choose the proper people.

I can’t put the tank into my room

– Because it is about 30 m2.