LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-08-2004, 02:19 AM   #1
marios_auth
Member
 
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

foo.h

class foo:
{
public:


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


private:

Vec_DP *xvec_p;
Mat_DP **xvec2_p;

}

foo.cpp

foo::foo()
{
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
 
  


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:37 PM.

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