Re: AW: Compling Error gsu 2.6

2020-07-30 Thread John D Lamb
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

Using GSL with C++

2020-04-11 Thread John D Lamb
more here? What is actually needed by C++ users? -- John D Lamb

Re: [Help-gsl] GNU Scientific Library 2.6 released

2019-09-01 Thread John D Lamb
: gsl_spmatrix_complex_float_scale_rows[30,30](CSR) [3855] -- John D Lamb

Re: [Help-gsl] Why are standard (*, +, etc) operators not overloaded for complex numbers in C++

2018-01-28 Thread 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

Re: [Help-gsl] Linear least squares, webpages and the next release

2015-10-24 Thread 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

Re: [Help-gsl] [Bug-gsl] Wrappers for Java

2014-10-12 Thread 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

Re: [Help-gsl] installation error

2014-07-16 Thread 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

Re: [Help-gsl] How GSL decide the stride of a gsl_vector

2014-02-16 Thread John D Lamb
//o2scl.sourceforge.net/ which has similar functionality. -- John D Lamb

Re: [Help-gsl] Questions about using gsl permutation

2014-02-16 Thread John D Lamb
e a small test program and see that it gives the result I expect before using this. -- John D Lamb

Re: [Help-gsl] absence of warranty

2013-09-25 Thread 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

Re: [Help-gsl] using gsl callback routine from c++ / pointer to member function

2013-02-13 Thread 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

Re: [Help-gsl] Lognormal normal distribution within prescribed range limits

2012-07-04 Thread John D Lamb
tion involving zeta and sigma to get a unique solution. -- John D Lamb

[Help-gsl] gsl_vector_alloc( 0 )

2012-01-10 Thread John D Lamb
( s.vector ). -- John D Lamb ___ Help-gsl mailing list Help-gsl@gnu.org https://lists.gnu.org/mailman/listinfo/help-gsl

Re: [Help-gsl] Lambda functions, member functions, and C++

2011-10-30 Thread John D Lamb
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.

Re: [Help-gsl] about the function " gsl_ran_gaussian ( ) "

2011-04-11 Thread John D Lamb
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

Re: [Help-gsl] Ubuntu

2010-12-07 Thread John D Lamb
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

Re: [Help-gsl] Reg :: My Gaussian Random Number Code

2010-06-22 Thread John D Lamb
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

Re: [Help-gsl] C++ interface/wrapper for gsl

2010-04-26 Thread John D Lamb
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

Re: [Help-gsl] Best way to Calculating inv(A) . B

2010-04-02 Thread John D Lamb
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

Re: [Help-gsl] angle between two vectors

2010-03-28 Thread John D Lamb
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

Re: [Help-gsl] Re: gsl c++ wrapper ?

2009-09-06 Thread John D Lamb
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

Re: [Help-gsl] Re: gsl c++ wrapper ?

2009-09-01 Thread John D Lamb
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

Re: [Help-gsl] Numerical quadrature performed on a set of points

2008-07-12 Thread John D Lamb
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

Re: [Help-gsl] Building a shared library that links with GSL

2007-05-02 Thread John D Lamb
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

Re: [Help-gsl] LU decomposition

2007-03-02 Thread John D Lamb
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.

Re: [Help-gsl] LU decomposition

2007-03-01 Thread John D Lamb
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

Re: [Help-gsl] Matrix / Vector multiplication

2007-02-11 Thread John D Lamb
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

Re: [Help-gsl] acosh, getting consistent results from GSL and Guile

2006-08-12 Thread John D Lamb
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

Re: [Help-gsl] First compiling problem

2006-08-03 Thread John D Lamb
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

Re: [Help-gsl] exponential fitting

2006-07-08 Thread John D Lamb
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

Re: [Help-gsl] How many RNG instances?

2006-07-06 Thread John D Lamb
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

Re: [Help-gsl] info

2006-06-27 Thread John D Lamb
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 _

Re: [Help-gsl] Re: free

2006-06-12 Thread John D Lamb
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

[Help-gsl] Re: free

2006-06-11 Thread John D Lamb
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

Re: [Help-gsl] Help with GSL Matrices

2006-06-11 Thread John D Lamb
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

Re: [Help-gsl] Help with GSL Matrices

2006-06-11 Thread John D Lamb
[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

Re: Fwd: [Help-gsl] random number distributions

2006-05-18 Thread John D Lamb
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

Re: Fwd: [Help-gsl] random number distributions

2006-05-18 Thread John D Lamb
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

Re: [Help-gsl] GSL functions

2006-05-12 Thread John D Lamb
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

Re: [Help-gsl] How to do power and exponent of a vector?

2006-04-07 Thread John D Lamb
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. > >

Re: [Help-gsl] A dumb installation/compile error

2006-03-29 Thread John D Lamb
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

Re: [Help-gsl] Problem with GSL

2006-01-04 Thread John D Lamb
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

Re: [Help-gsl] nth root

2005-12-12 Thread John D Lamb
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

[Help-gsl] Re: Log-Logistic Distribution

2005-11-17 Thread John D Lamb
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

Re: [Help-gsl] How do I run my program in LINUX ?

2005-10-10 Thread John D Lamb
鄭宗誠 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

Re: [Help-gsl] problems running GSL

2005-09-26 Thread John D Lamb
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

Re: [Help-gsl] better generator for gaussian random numbers

2005-07-15 Thread John D Lamb
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

Re: [Help-gsl] better generator for gaussian random numbers

2005-07-08 Thread John D Lamb
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

Re: [Help-gsl] Solve a quartic equation ?

2005-06-28 Thread John D Lamb
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