As I know gingko is good for vessel spasm, esp the cerebral vascular spasm. In cardiology, no one uses it for coronary artery spasm, CCB is DOC, so I don't think it works well for heart disease. For Fructose-1,6-Phosphate, it is used for provision of energy to cardiomyocytes, typically not used for treatment, but nutrition.
double **B won't work if LZ want it works like declaring B[6][6]. The following would work: void myfun(int time, double A[6], double B[6][6]) void myfun(int time, double A[], double B[][6]) void myfun(int time, double *A, double (*B)[6]) Just take a look at http://www.ibiblio.org/pub/languages/fortran/append-c.html
First, this has nothing about C++, it's C Second, in Java there will be no such problems, even for newbies. I basically agree with Linus that C++ is crap, and will always stick to C if I need to program native code. But Java is not C++. Java is much easier to use.
According to LZ, B is a 2D array, doube *B won't work unless you include column size
【在 F****n 的大作中提到】 : use void myfun(int time, double *A, double *B)
z*o
61 楼
GXGX! baozi please
F*n
62 楼
Nobody uses 2D array to pass matrix. Pass it as a pointer and compute the index.
【在 H***a 的大作中提到】 : According to LZ, B is a 2D array, doube *B won't work unless you include : column size
g*9
63 楼
GXGX! baozi please
H*a
64 楼
that's ok, but how to compute the index? There is no column size information from caller, unless you want this function decides for the caller, which will make this function itself not reusable.
【在 F****n 的大作中提到】 : Nobody uses 2D array to pass matrix. Pass it as a pointer and compute the : index.
Well, it's a magic number in LZ's original code. So we can still use that magic number and hopefully the compiler will optimize the multiplication away ...
information from caller, unless you want this reusable.
【在 H***a 的大作中提到】 : that's ok, but how to compute the index? There is no column size information from caller, unless you want this : function decides for the caller, which will make this function itself not reusable.
S*p
69 楼
恭喜!
b*n
70 楼
Why not. It is easier to read than those [i*L+j]
【在 F****n 的大作中提到】 : Nobody uses 2D array to pass matrix. Pass it as a pointer and compute the : index.
g*9
71 楼
恭喜.包子
b*n
72 楼
奇怪了,你要static array做argument的时候2d的不给size怎么行呢。。你冷个头
【在 z****e 的大作中提到】 : 我冷!
g*9
73 楼
恭喜.包子
F*n
74 楼
Oh yeah, you need to pass the column size as parameter if it will be something other than 6.
information from caller, unless you want this reusable.
【在 H***a 的大作中提到】 : that's ok, but how to compute the index? There is no column size information from caller, unless you want this : function decides for the caller, which will make this function itself not reusable.
t*d
75 楼
gx! Bao zi!
F*n
76 楼
Because C arrays are declared and not dynamic, and you need to use pointer to pass arrays of unknown size. Just use &array[0][0] in the function call and pass the dimensions.
【在 b******n 的大作中提到】 : Why not. It is easier to read than those [i*L+j]
g*9
77 楼
恭喜.包子
b*n
78 楼
Or you can pass array[6][6]..come on, it is not that complicated... on what earth it is unknown size anyway, LZ has declared an array and want to use it in a function. Well, I am not interested in it any more...it was just an answer to the suggestion someone made about taking out 6 in the function prototype.
【在 F****n 的大作中提到】 : Because C arrays are declared and not dynamic, and you need to use pointer : to pass arrays of unknown size. Just use &array[0][0] in the function call : and pass the dimensions.