Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
28% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
8
Posts with Downvotes
3
Downvoting Members
8
3 Commented Posts
0 Endorsements
Ranked #3K
Member Avatar for ztdep

Dear friends: I downloaded the C++ Mathematical Expression Library from the web, and i uploaded it in the attachment. It consists of only one head file. But the compiling process is very slow under opensuse 42.3 with gcc. Could you please give me some advices for that. Regards.

Member Avatar for Gribouillis
0
336
Member Avatar for ztdep

Dear friends: I want to install the Non-Uniform Rational B-Splines (NURBS) curves and surface packate NURBS++ in opensuse linux 13.1. The official web site of NURBS++ is http://libnurbs.sourceforge.net/old/documentation.shtml. and the packate is written based on the c++ template technique. The latest of the package is 3.0.11(2002), the help manual show …

Member Avatar for JasonHippy
0
380
Member Avatar for ztdep

I have a Points class and a Segment class as follows: class Points { double x; double y; int Index=-1; } class Segment { Points Orig; Points End; Segment(const Points& a, const Points& b){Orig=a;End=b} void ChangeGlobalIndex() { do something to change the index of two end points. } } int …

Member Avatar for rubberman
0
122
Member Avatar for ztdep

Dear friends: Do we have a link to find all of my posts started or participated . Regards.

Member Avatar for Dani
0
303
Member Avatar for ztdep

Dear friends: ` The gcc version used in my opensue 42.1 is 4.8, i installed a gcc 6 from the opensuse package download center by "oneclickinstall".` The installation process was sucessful, but the gcc in my system is still 4.8. So how to resolve this problem. Regards

Member Avatar for rubberman
0
182
Member Avatar for ztdep

Dear friends: I need to use a data structure which can start the first index of an array from a nagtive value. I have searched the MTL library, and bltiz lib, but it seems that they doesn't support this kind of vecotr. Could you please give me some suggestions. Regards

Member Avatar for tinstaafl
0
235
Member Avatar for GustavoWoltmann

Hi, I bought a new computer a while ago but my battery seems to be much worse now. Do you have any methods to keep it running as long as possible?

Member Avatar for ztdep
0
209
Member Avatar for Dave Sinkula

With regard to C++ books, I'll just echo the advice here .The following books are recommended; read them in mostly the order listed." Accelerated C++ " Andrew Koenig & Barbara Moo " The C++ Standard Library " Nicolai Josuttis --- a "must have" " Effective C++ ", " More Effective …

Member Avatar for shahidali6
11
10K
Member Avatar for ztdep

Dear friends: i define a function "funtion1", i put the declaration in the "funtion1.h" #ifndef FUNTION1_H_INCLUDED #define FUNTION1_H_INCLUDED #include <stdio.h> #include <stdlib.h> double funtion1(double ,double ); #endif // FUNTION1_H_INCLUDED and write the function body in the file "funtion1.c" The following is my main file, but when i compile it in …

Member Avatar for mike_2000_17
0
133
Member Avatar for ztdep

Dear friends: Could you please give me some information about the parallel performance of TBB on a multicores pc. what is the difference between the tbb and mpi. Regards

Member Avatar for rubberman
0
95
Member Avatar for dhruv_arora

I recently installed Microsoft Visual Studio 2010 on my computer. I wrote a C++ program and I can't find any Build/Compile/Run options in Visual Studio 2010. Please, any one can tell me how can I compile C++ programs in MS Visual Studio 2010.

Member Avatar for Ancient Dragon
0
3K
Member Avatar for ztdep

Dear friends: I compile my procedure with mpicc, it can give correct execute file. mpicc -o testprint testprint.c libptools_ppf.a But when i compile it with mpic++, it gives me some error about undefined reference. Could you please help me out. mpic++ -o testprint testprint.c libptools_ppf.a testprint.c:25:31: warning: deprecated conversion from …

Member Avatar for rubberman
0
390
Member Avatar for ztdep

Dear friends: I write a parallel program with the PETSc, it can compiled sucessfully with the following command. could you please help me to translate it into a cmake file. so i can further develop the code in kdevelop4.4. mpic++ main.cpp -o main -I/home/ztdep/Downloads/petsc-3.3-p6/include -I/home/ztdep/Downloads/petsc-3.3-p6/arch-linux2-cxx-opt/include -Wl,-rpath,/home/ztdep/Downloads/petsc-3.3-p6/arch-linux2-cxx-opt/lib -L/home/ztdep/Downloads/petsc-3.3-p6/arch-linux2-cxx-opt/lib -lpetsc -lX11 -Wl,-rpath,/home/ztdep/Downloads/petsc-3.3-p6/arch-linux2-cxx-opt/lib …

Member Avatar for MonsieurPointer
0
154
Member Avatar for ztdep

*Dear friends: I need a quick algorithm to find the common faces of polyhedrons meshes for the finite volume computation. Each plolyhedron is recorded with the indexes of its six vertices(hexahedron) or four vertices(tetrahedron). Each polyhedron has only one common face with its neighboring polyhdrons. The common face can be …

Member Avatar for ztdep
0
172
Member Avatar for ztdep

#ifndef TINYVEC_HPP #define TINYVEC_HPP #include <iostream> #include<iomanip> using namespace std; template<typename T_numtype, int N_length> class TinyVector { protected: T_numtype data[N_length]; public: ////////////////////////////////////////////////////// // Constructor ////////////////////////////////////////////// TinyVector() { } ~TinyVector() { } TinyVector(const TinyVector<T_numtype,N_length>& x); TinyVector(const T_numtype & initValue); TinyVector(const T_numtype x[]); TinyVector(const T_numtype & x0, const T_numtype & x1); TinyVector(const …

Member Avatar for ztdep
0
226
Member Avatar for ztdep

Dear friends: I am trying to convert a double to string format using the std::to_string function, but it gives me the following error message. i do not understand why the functgion does not support the double format. i use the vs2010. > error C2668: 'std::to_string' : ambiguous call to overloaded …

Member Avatar for tinstaafl
0
941
Member Avatar for ztdep

typedef double (*sizefn_t) (double *); sizefn_t sizefn = userSizeFace; Dear friends: Could you pleaset tell me what is the meaning of the code, what does sizefn_t represent. what is the meaning typedef.

Member Avatar for deceptikon
0
117
Member Avatar for ztdep

Dear friends: I download a c packge for my computation work. there is a function " aft2boundar(int *, double *)" in it. i write a "main.cpp" with vs2010, when i compile, it gives me the following error unresolved external symbol "int __cdecl aft2dboundary(int *, double*) but i have include the …

Member Avatar for ztdep
0
153
Member Avatar for ztdep

#include <iostream> #include<iomanip> using namespace std; #pragma warning(disable: 4800) #include "mpirxx.h" #pragma warning(default: 4800) int main (int argc, char *argv[]) { mpf_class sum(0.000000000000000000000000000000000000000000000000000000000000000,200); mpf_class con(0.0000001000000000000000000000000000000000000000000000000000000000,200); for(int i=0;i<10;i++) { sum=sum+con; cout <<scientific<<setprecision(50)<<sum<<" "<<endl; } the out put: 9.99999999999999954748111825886258685613938723690808e-08 1.99999999999999990949622365177251737122787744738162e-07 2.99999999999999986424433547765877605684181617107242e-07 3.99999999999999981899244730354503474245575489476323e-07 4.99999999999999977374055912943129342806969361845404e-07 5.99999999999999972848867095531755211368363234214485e-07 6.99999999999999968323678278120381079929757106583565e-07 7.99999999999999963798489460709006948491150978952646e-07 8.99999999999999959273300643297632817052544851321727e-07 9.99999999999999954748111825886258685613938723690808e-07 9.999999999999999547481118258862586856139387236908078193664551e-07 Dear friends: I …

0
62
Member Avatar for ztdep

Dear friends: I check the value range of double and long double with vs2010, but it gives me the same value. could you please tell me how to use the long double format in vs2010. Regards

Member Avatar for Ancient Dragon
0
975
Member Avatar for ztdep

Dear friends: i have a data file, the structure of the file is as follows: // data.txt $Elements 1 1 2.5 2 2 1.0 2.0 3 2 3.0 4.0 4 4 1.0 3.2 2.7 1.6 $EndElements In the data.txt, the fisrt column is the row number, and the second column …

Member Avatar for Branickiod
0
111
Member Avatar for swissknife007

I am trying to implement a program to solve 20 + equations . what algo should i use

Member Avatar for Gribouillis
0
146
Member Avatar for ztdep

[CODE]#ifndef PARTICLE_H #define PARTICLE_H #include<vector> #include<iostream> using namespace std; class Particle { protected: public: Particle(); Particle(const int aDim); int dimension; vector<double> velocity; vector<double> position; vector<double> pBest; double pBestFitness; double fitness; bool valid; bool operator<(const Particle& aP2) const; ~Particle(void); }; #endif[/CODE] [CODE]#define SWARM_H #include"Particle.h" #include<vector> #include <Algorithm> #include<iostream> #include<stdexcept> using namespace …

Member Avatar for jaskij
0
94
Member Avatar for ztdep

Dear friends: I use the numerical libraray Seldon in the vs2010, and the libraray was written in C++ templates. but the VS 2010 can not show the class view in the Seldon, it does show the classes written by myself. could you please tell me how to set the vs2010 …

Member Avatar for thines01
0
68
Member Avatar for ztdep

Dear friends: I am using " Seldon c++ libary for linear algebra, http://seldon.sourceforge.net/" in my heat transfer code. the paltform is vs2010. I use the Seldon::Vector<double> in my class mesh to store the x y coordinates. I include the "Mesh.h" in my main.cpp.but it gave me some error about seldon …

Member Avatar for ztdep
0
264
Member Avatar for ztdep

Dear friends: I wrote my c++ console program with vs2008, and everthing is ok. But i open it with vs 2010, the consol window dispear after the code run.I can not see the output resutls in console window. could you please help me out. Regards

Member Avatar for Ancient Dragon
0
44
Member Avatar for ztdep

Dear friends: I need the vector computation as follows, for example: A=[1,2,3], B=[3,4,5] C=A+B; C=A-B;C=A+alphs*B; Could you please suggest me a C++ numerical library for this kind of computation. Regards

Member Avatar for ztdep
0
172
Member Avatar for ztdep

Dear friends: I download a software in *.bin mirror file. Could you please tell me how to mount it in opensuse linux. Regards.

Member Avatar for JasonHippy
0
239
Member Avatar for ztdep

Dear friends: I want to draw the sparse matrix sturucture to a file. The attachment shows an example. Could you please suggest me some methods to achieve this goal. Regards. Your Sincerely

Member Avatar for bkenwright
0
303
Member Avatar for ztdep

Dear friends: Could you please tell me how to set the tab in vs2008 so as to use multiple rows of tabs in vs2008. I could not fint it in setting. Regards

Member Avatar for jonsca
0
167