From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17867 invoked by alias); 13 Dec 2004 18:41:12 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 17683 invoked from network); 13 Dec 2004 18:41:04 -0000 Received: from unknown (HELO e33.co.us.ibm.com) (32.97.110.131) by sourceware.org with SMTP; 13 Dec 2004 18:41:04 -0000 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e33.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id iBDIf3Dr646742 for ; Mon, 13 Dec 2004 13:41:03 -0500 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id iBDIf2as439304 for ; Mon, 13 Dec 2004 11:41:03 -0700 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id iBDIf2DY025662 for ; Mon, 13 Dec 2004 11:41:02 -0700 Received: from austin.ibm.com (netmail2.austin.ibm.com [9.41.248.176]) by d03av02.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id iBDIf2C0025656; Mon, 13 Dec 2004 11:41:02 -0700 Received: from bilge (mail@dyn95394157.austin.ibm.com [9.53.94.157]) by austin.ibm.com (8.12.10/8.12.10) with ESMTP id iBDIf1pi032362; Mon, 13 Dec 2004 12:41:01 -0600 Received: from linas by bilge with local (Exim 3.36 #1 (Debian)) id 1Cdv80-0002QW-00; Mon, 13 Dec 2004 12:41:00 -0600 Date: Mon, 13 Dec 2004 18:41:00 -0000 To: Toan T Nguyen Cc: gsl-discuss@sources.redhat.com Subject: Re: Help: working with large gsl_vector Message-ID: <20041213184100.GM22600@austin.ibm.com> References: <200412102351.20027.ntt@physics.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200412102351.20027.ntt@physics.ucla.edu> User-Agent: Mutt/1.5.6+20040818i From: Linas Vepstas X-SW-Source: 2004-q4/txt/msg00118.txt.bz2 On Fri, Dec 10, 2004 at 11:51:19PM -0800, Toan T Nguyen was heard to remark: > > Hi, > > I'm using the multidimensional minimization procedure in GSL and have problem > with large vectors. The dimensionality of my vectors is 300000 which means my > index variable is of long integer type. gsl_vector, however, works only with > size_t type only. I couldnot even call gsl_vector_alloc(300000) . It says: double-check. size_t is normally a 32-bit int when compiling for a 32-bit libc, and 64 when compiling for a 64-bit libc. You can do this with a printf ("size is=%d\n", sizeof (size_t)); which will print the number of bytes. > gsl: init_source.c:29: ERROR: vector length n must be positive integer > Default GSL error handler invoked. which is not to say there isn't a gsl bug, but you probably should do more due diligence before offering the diagnosis. --linas