A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some new functions to this. Bloatware, here we come.
[simgrid.git]
/
include
/
xbt
/
matrix.h
diff --git
a/include/xbt/matrix.h
b/include/xbt/matrix.h
index
1ffab4b
..
ce20717
100644
(file)
--- a/
include/xbt/matrix.h
+++ b/
include/xbt/matrix.h
@@
-36,10
+36,20
@@
typedef struct {
xbt_matrix_t xbt_matrix_new(int lines, int rows,
const unsigned long elmsize,
void_f_pvoid_t * const free_f);
xbt_matrix_t xbt_matrix_new(int lines, int rows,
const unsigned long elmsize,
void_f_pvoid_t * const free_f);
+xbt_matrix_t xbt_matrix_new_sub(xbt_matrix_t from,
+ int lsize, int rsize,
+ int lpos, int rpos,
+ pvoid_f_pvoid_t *const cpy_f);
void xbt_matrix_free(xbt_matrix_t matrix);
void xbt_matrix_free_voidp(void *d);
void xbt_matrix_free(xbt_matrix_t matrix);
void xbt_matrix_free_voidp(void *d);
+void xbt_matrix_copy_values(xbt_matrix_t dest, xbt_matrix_t src,
+ int lsize, int rsize,
+ int lpos_dst,int rpos_dst,
+ int lpos_src,int rpos_src,
+ pvoid_f_pvoid_t *const cpy_f);
+
void xbt_matrix_dump(xbt_matrix_t matrix, const char *name, int coords,
void_f_pvoid_t display_fun);
void xbt_matrix_dump_display_double(void*d);
void xbt_matrix_dump(xbt_matrix_t matrix, const char *name, int coords,
void_f_pvoid_t display_fun);
void xbt_matrix_dump_display_double(void*d);
@@
-48,7
+58,10
@@
void xbt_matrix_dump_display_double(void*d);
xbt_matrix_t xbt_matrix_double_new_zeros(int lines, int rows);
xbt_matrix_t xbt_matrix_double_new_id(int lines, int rows);
xbt_matrix_t xbt_matrix_double_new_rand(int lines, int rows);
xbt_matrix_t xbt_matrix_double_new_zeros(int lines, int rows);
xbt_matrix_t xbt_matrix_double_new_id(int lines, int rows);
xbt_matrix_t xbt_matrix_double_new_rand(int lines, int rows);
+xbt_matrix_t xbt_matrix_double_new_seq(int lines, int rows);
xbt_matrix_t xbt_matrix_double_new_mult(xbt_matrix_t A,xbt_matrix_t B);
xbt_matrix_t xbt_matrix_double_new_mult(xbt_matrix_t A,xbt_matrix_t B);
+void xbt_matrix_double_addmult(xbt_matrix_t A,xbt_matrix_t B,
+ /*OUT*/ xbt_matrix_t C);
SG_END_DECL()
SG_END_DECL()