Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-08-2004, 02:19 AM   #1
Registered: Sep 2003
Location: Thessaloniki Greece
Distribution: KUbuntu
Posts: 35

Rep: Reputation: 15
Numerical recipes in C++

I just received the Numerical Recipes in C++ (Cambridge) and i have this question
How can i return one vector allocated using the NR.H ?
Let's say i have this class


class foo:

float *func1 {return xvec;}
float **func2 {return xvec2;}


Vec_DP *xvec_p;
Mat_DP **xvec2_p;



Vec_DP &xvec=*xvec_p;
Mat_DP &xvec2=**xvec2_p;


This doesn't work. The compiler syar thar can't convert *Mat_DP to **Mat_DP.

Can anyone have the same problem?

P.S. I don't want to hear using othel library like GSL


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Food recipes programs mickeyboa Fedora 2 09-25-2005 12:31 PM
The maximum numerical value of the user's ID ken80 Linux - Newbie 3 03-26-2005 11:36 AM
rrdtool cookbook recipes for daily, weekly, monthly, yearly averages? slacky Linux - Software 1 03-18-2005 06:34 PM
Numerical keypad Craqon Linux - General 2 12-15-2004 12:42 AM
C++ and C# Parse a string into a numerical type exodist Programming 8 02-23-2004 06:15 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration