[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] how to find the defintions of such functions as igraph_vect
From: |
Gabor Csardi |
Subject: |
Re: [igraph] how to find the defintions of such functions as igraph_vector_search |
Date: |
Mon, 24 Sep 2007 12:04:38 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
And just to be polite, let's mention that this technique (hack?)
was "stolen" from the GNU Scientific Library. Thanks to them!
Gabor
On Mon, Sep 24, 2007 at 11:50:36AM +0200, Tamas Nepusz wrote:
> Dear Zhongmin Xiong,
>
> > But i have compiled community.c(it can be passed!),and cannot find the
> > definitions of these functions such as igraph_vector_search(neip, 0,
> > maxedge, &pos). I only found its decalration in vector.h as
> > follows:igraph_bool_t FUNCTION(igraph_vector,search)(const TYPE
> > (igraph_vector) *v, long int from, BASE what, long int *pos). I tried
> > to find it by looking for the string like "igraph_bool_t
> > igraph_vector_search" in all files, but still cannot f
> > ind its definition.
> igraph uses a technique similar to C++ templates but "emulated" in C.
> The C core of igraph contains multiple vector-like types that are only
> different in the base data type they are able to store. The common
> "core" of the implementation is stored in a file called vector.pmt or
> vector_pmt.hc (don't know which one we have used in 0.4.3), "pmt"
> standing for "poor man's template". You'll have to look for a line
> starting like this:
>
> igraph_bool_t FUNCTION(igraph_vector,search)
>
> Please check whether vector.pmt or vector_pmt.hc is included in the
> source distribution you downloaded. If not, you'll be able to find
> them in the C source distribution downloadable from
> http://cneurocvs.rmki.kfki.hu/igraph/
>
> Best regards,
> --
> Tamas Nepusz
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
--
Csardi Gabor <address@hidden> MTA RMKI, ELTE TTK