[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Matrix initialisation
From: |
Søren Hauberg |
Subject: |
Matrix initialisation |
Date: |
Mon, 27 Dec 2010 16:53:40 +0100 |
Hi
I just got a bug report for the image package, where the fix boiled down
to changing (in C++)
Matrix J (bins_length, thetas_length);
to
Matrix J (bins_length, thetas_length, 0.0);
i.e. initialise the matrix to contain zeros. I always thought that if
you did not provide an initial value when constructing a matrix, it
would default to zero. Has this ever been the case or is it just
something I made up?
Søren
- Matrix initialisation,
Søren Hauberg <=