I need to view the description/definition of these functions(how they are written/implemented, i.e the actual code.)
In general, you cannot, because the dynamic library might be proprietary (this is the case for many GUI related libraries on MacOSX, read about Aqua).
If the library is free software, or if by some (legal) means you've got its source code (perhaps after signing some NDA and having paid some money), you might study its source code. Then you'll better build that library from source code (to be sure that the binary library and the source code matches), otherwise you need to trust the provider of the binary library that it corresponds exactly to the source code you've got.
BTW, xlearn is free software. Perhaps it is the same as your binary dynamic library (but you need to check). I recommend to be able to build it from its source code (in a terminal, using commands). See its installation guide, section: installing from source code.