looked
into the /usr/local/lib folder and have found the files you have mentioned.
If I use now the command g++ -L/usr/local/lib -lgsl -lgslcblas -lm blub.cpp
I still get the old error.
Might it be possible that I need another package which might be necessary?
--
John D Lamb
more here? What is actually needed by C++ users?
--
John D Lamb
: gsl_spmatrix_complex_float_scale_rows[30,30](CSR) [3855]
--
John D Lamb
maintaining the original code in C.
I realise it is possible to do some sort of conversion/casting in C++.
But this is not likely efficient.
--
John D Lamb
containers. What’s needed?
4. Would you like to see a quick release of GSL v2.0, or are you content
to work off the git repository?
git is fine for now.
--
John D Lamb
covered in the standard template library.
There are some minor features to add, notably conditionally-compiled
noexcept specifiers for some C++11 move constructors and move assignment
operators. But the wrappers should be regarded as working code.
--
John D Lamb
ht want to install GNU make:
<http://www.gnu.org/software/make/
<http://www.gnu.org/software/make/>>make[1]: *** [gsl-ref.info
<http://gsl-ref.info>] Error 127make[1]: Leaving directory
`/usr/local/gls/gsl-1.16/doc'make: *** [install-recursive] Error 1*
Could you tell me how to fix this problem.
--
John D Lamb
//o2scl.sourceforge.net/
which has similar functionality.
--
John D Lamb
e a small test program and see that it gives
the result I expect before using this.
--
John D Lamb
lts against other independently-written software. The benefit of
GSL is that if there is a discrepancy, I can check the source code.
--
John D Lamb
he code is designed to use member functions with a parameter
gsl::vector& rather than gsl_vector*, but it should be reasonably
straightforward to adapt it.
If you use this kind of approach I’d recommend you use header files for
all the wrappers so that the compiler can optimise away all the details.
--
John D Lamb
tion involving zeta and sigma to get
a unique solution.
--
John D Lamb
( s.vector ).
--
John D Lamb
___
Help-gsl mailing list
Help-gsl@gnu.org
https://lists.gnu.org/mailman/listinfo/help-gsl
reference (http://sourceforge.net/projects/ccgsl/) is to wrap
the gsl functions using headers so that you can pass C++-style
arguments. But I haven’t yet tried this with root-finding and the like.
--
John D Lamb
___
Help-gsl mailing list
Help-gsl@gnu.
On Fri, 2011-04-08 at 19:49 -0400, Yi Cao wrote:
> Hello everyone,
>
> I am now trying to generate some gauss random numbers (about size of
> 30,000).
> I found the following function in GSL, but I am not clear how to use
> this function.
> 0. can I just call this function in my C++ co
On Thu, 2010-12-02 at 20:16 +, Matt wrote:
> Hi, Will GSL install on Ubuntu? The configure script seems not to work.
Yes. If you have the Maverick Meerkat then I believe the latest version
of GSL is already available with the distribution. So installing GSL by
hand is only necessary if you wan
On Tue, 2010-06-22 at 13:04 +0200, Sumit Adhikari wrote:
> P gauss_rand = sigma*y*sqrt(-2.0*log(rad)/rad) ;
> return (gauss_rand);
The code looks correct. If you want a quick, simple test generate a few
hundred pairs of variates and produce a scatter plot.
The code is, however, not particu
I have some C++ wrappers I use. I could publish them if anyone is
interested in using them.
Essentially I’m not interested in changing GSL. I just want to take
advantage of some features of C++:
1. Objects can be created as shared-pointer-like handles (avoiding
new/delete/malloc/free) and runtime
On Fri, 2010-04-02 at 14:27 +1100, Srimal Jayawardena wrote:
> One way I can think of is to use,
>
> gsl_linalg_LU_solve (&m.matrix, p, &b.vector, x);
>
> as explained in
>
> http://www.gnu.org/software/gsl/manual/html_node/Linear-Algebra-Examples.html
>
> I would need to find the solution ve
On Sun, 2010-03-28 at 11:07 +0200, Jordi wrote:
> I am quite new to maths and gsl I would like to get the angle between two
> vectors.
In C it should be something like the following. (You may have to check
where acos is defined, check norm_u * norm_v != 0; and you may want a
direction with the an
On Sun, 2009-09-06 at 23:29 +0800, Hongzheng Wang wrote:
> If I really need a C++ style vector/matrix library, I would refer to
> boost uBlas + bindings. But for daily normal numerical work I
> encountered, gsl is easily used and better because vector/matrix
> support is not the whole world; we us
On Mon, 2009-08-31 at 09:05 -0500, Rodney Sparapani wrote:
> Jordi Gutiérrez Hermos wrote:
> > If you're still interested, I may be interested too in writing a C++
> > wrapper for the GSL or in taking up maintenance of one of the existing
> > ones. I ended up writing my own wrappers anyways for mos
On Sat, 2008-07-12 at 20:56 +0800, Hongzheng Wang wrote:
> My question is, if the function
> is known only on a set of points, how can the integration be
> calculated conveniently?
I may not have understood your question. But ...
If you have a function f and know its values at points x_1,...,x_n
On Wed, 2007-05-02 at 11:58 +0100, Joseph Wakeling wrote:
> I'm building a small simulation library that makes use of some GSL
> functions. However, I'm a novice with autotools and I'm having some
> trouble working out how to check that GSL is installed and its header
> files are in place.
>
> Wh
On Fri, 2007-03-02 at 09:15 +0200, Keymone wrote:
> question is not how to decompose matrix
> gsl_linalg_LU_decomp stores LU decomposition into matrix A
> and i'm asking how to restore previous matrix without copying it before
> decomposition
I don't think there's an explicit function to do this.
On Thu, 2007-03-01 at 18:57 +0200, Keymone wrote:
> hello
>
> is there some function to LU "recompose" decomposed matrix?
> or i have to calculate it myself
>
gsl_linalg_LU_decomp()
You can find the details in the manual.
--
JDL
___
Help-gsl mail
On Sun, 2007-02-11 at 02:28 -0500, Peter Jay Salzman wrote:
> Just discovered GSL a few hours ago. Very neat!
> I've been trying to figure out how to multiply a vector and matrix. How is
> one supposed to compute something like
>
>A x
>
> given a gsl_matrix A and a gsl_vector x? Does x n
Marco Maggi wrote:
> I am thinking about replacing 'gsl_complex_arccosh()' (and
> some other functions) with my own implementation, but I
> would like to know if there is a specific reason for the
> different choice in GSL.
GSL implements the BSD math versions of trig and hyperbolic trig
Manu Hack wrote:
> I ran an example using GSL. I added the path after -I when I compiled
> it. I kept getting error. The error message was: undefined reference
> to 'gsl_pow_2.
>
> I could use those constants like M_LOG2E though.
>
> Am I missing anything? Thanks!
Probably the flags -lgsl -lgsl
James Bergstra wrote:
> On Sat, Jul 08, 2006 at 08:43:54AM +0200, Petr Ent wrote:
>
>> hi,
>> i am pretty new user of gsl, so please sory for this question...
>> what is the easiest\fastest way to fit few points with an exponential
>> function? i found example of non-linear least squares fitti
Joe wrote:
> I have a simple question. Do I need a seperate random number generator
> instance for each distribution I use? E.g, I have two different
> simulation
> parameters, one exponential, the other poisson distributed.
>
> Basically, right now, my RNG is wrapped within a singleton class meani
skull0 wrote:
> Hi there, does someone know if there is a project, scrip, or similar
> program in development or accomplished to resize images using the gsl?
> Thanks folks.
>
No. But ImageMagick (http://www.imagemagick.org/script/index.php) is a
library that does all these things.
--
JDL
_
Brian Gough wrote:
> Jochen Küpper writes:
> > > I checked the source code for gsl_matrix_free and it will fail if passed
> > > a null pointer.
> >
> > Shouldn't the GSL free-routines be changed like the following patch?
>
> My thinking on that was that for most people calling the free()
> fun
Jochen Küpper wrote:
>> gsl_matrix_alloc and gsl_matrix free behave like alloc and free and
>> so I guess gsl_matrix_alloc returns 0 on failure and gsl_matrix_free
>> should not be called with a null pointer.
>>
>
> Actually it should be ok to call free with NULL, just not with any
> other inv
Jochen Küpper wrote:
> John D Lamb <[EMAIL PROTECTED]> writes:
>
>
>> gsl_matrix_free( b );
>>
>
> [...]
>
>
>> Exceptions are only really designed to handle the third case.
>>
>
> Will "free" really thro
[EMAIL PROTECTED] wrote:
> Hey All:
>
> Is there a way we can avoid Segmentation fault error when we try to free a
> gsl_matrix that was never allocated, or that has already been freed?
>
If you don't allocate the matrix b when you declare it, try using
gsl_matrix b = 0;
Then you can free it
Joseph Wakeling wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
John D Lamb wrote:
There is nothing to stop you using two random number generators, though
you probably only need one. If you use two random number generators with
the same seed and call them equally often then the results
John Gehman wrote:
if you like check out R.W. Hamming "Numerical Methods for Scientists
and Engineers", -- you can generate a gaussian random number by
summing 12 uniform random numbers and subtract 6.0. There's a subtle
caveat which explains that this isn't perfect, but in most cases is
a
Shell wrote:
Hi,
I am writing up a report in which i have used gsl functions, and need to
include the definitions of what the particular GSL functions are used for. I
was woondering if you could help me with this as i am having trouble finding
the definitions. The GSL functions I have used ar
James Bergstra wrote:
>>I want to use gsl to do power of a vector (eg vectorA^0.8) and
>>also exponent of a vector (eg. exp(vectorA)). How can I do this without
>>using loops?
>
> I've written an extension that has exp, and other math.h-ish functions for
> vectors and
> matrices.
>
>
Hodgess, Erin wrote:
> C:\Program Files\GnuWin32\bin>gcc -c example.c -lgsl -lgslcblas -lm
> gcc -c example.c -lgsl -lgslcblas -lm
> example.c:2:31: gsl/gsl_sf_bessel.h: No such file or directory
>
>
> I've added Gnuwin32/include/gsl to my path.
>
gcc searches the directories in $CPATH fo
Mohan R Kalagotla (Student) wrote:
> Hi,
> This is Mohan Reddy Kalagotla,Research Assisstant at Western
> Kentucky University.I have faced a problem with GSL.Actually when i
> am installing Gadget i got an error saying that it cannot open the
> shared file libgsl.so.0 file.But i d
Eric Germaneau wrote:
> Hello everyone,
>
> I'm wondering whether gsl provides a function which computes the nth
> root .
You could use
r = std::exp( std::log( x ) / n )
If you want greater accuracy, try looking at the chapter on
1-dimensional root finding. If you want the complex roots,
gs
Luis Cardenas wrote:
> Hi
>
> My name is Guillermo Cardenas and I'm a Phd candidate in the Polytechnic
> University of Valencia in Spain.
> I've been using GSL to fit data to some distributions provided by the
> library.
> The issue is that Log-Logistic distribution is not included in the
> librar
鄭宗誠 wrote:
> My OS is Fedora LINUX.
>
>
>
> My program includes gsl_math.h, gsl_sf_bessel.h, gsl_matrix.h, gsl_linalg.h,
> gsl_permutation.h, gsl_blas.h, and gsl_eigen.h.
>
> And I can compile the program to filmname.o. ( gcc –I/usr/local/include –c
> filmname.c)
>
> And then, what kinds of l
Nicolás Quesada wrote:
> Hi . I have a problem with GSL: when I try to make a program that uses
> any function defined in the package I receive this message in the shell:
>
> /tmp/ccxeGO35.o(.text+0x39): En la función `main':
> : undefined reference to `gsl_poly_complex_workspace_alloc'
> /tmp/ccx
Brian Gough wrote:
> John D Lamb writes:
> > Can you tell me whether anything's happened with the Gamma generator,
> > also due to Marsaglia-Tsang? It would be good to implement that too.
> >
> > I'm happy to test and or write any of this.
>
> If
Brian Gough wrote:
> Thanks for your email. Yes, I am interested in adding the Ziggurat
> method. First step would be for you to make a webpage for your .c
> file so that people can try it out--I'll make a link to it from the
> main GSL page. Also some way of stress testing it or example of
> ho
Maxime Boissonneault wrote:
> Hello,
> In the documentation, I read that polynomial equations can be solved
> exactly up to the fourth ordrer. However, I found nothing in GSL that
> allows this solution to be found, there are only the solutions up to
> third order.
>
> Is there a way, other than a
49 matches
Mail list logo