/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#include <stdio.h>
#include "xbt/sysdep.h"
#include "xbt/log.h"
#include "xbt/matrix.h"
xbt_matrix_t xbt_matrix_double_new_zeros(int lines, int rows) {
xbt_matrix_t res = xbt_matrix_new(lines, rows,sizeof(double),NULL);
- memset(res->data,0,sizeof(res->data));
+ memset(res->data,0, res->elmsize * res->lines * res->rows);
return res;
}