Thanks to all for replys,
I want to know wheater allocating temporary variables inside loop takes more cpu cycles(since pushing each time the varible in to stack and deleting when the scope is...
Type: Posts; User: babu198649
Thanks to all for replys,
I want to know wheater allocating temporary variables inside loop takes more cpu cycles(since pushing each time the varible in to stack and deleting when the scope is...
I had tried creating an int variable inside a for loop ,storing a value in the variable and then print it.But every time the program takes different time to complete execution.
creating a...
hi
Does creating temporary variable inside for loop affects the execution speed.
If there are n-cases in a switch,at each time in a loop ,one of the cases is executed,after all the n-cases are executed,if the default-case takes the control out of the while-loop ,the code would...
hi
If a switch-case is inside a while-loop how to get out of while-loop without using if- conditional statement(using break inside switch gets only out of switch).
i am unable to make it work by value or by const reference.
As i know mutable variables can be altered by const functions,Is this what Mutable in the above statement mean or something else(I am...
Please post a simple working code,i tried to do it but i am unable to make work
Thank u
If a constructor takes a pointer as an argument then new operator can be passed as the argument( new ClassName ) to create a object with out creating object name.
In the same...
Thanks for reply
i for got to tell u that nrange is defined as
long unsigned int nrange = 4;
Even if nrange is an unsigned int object, does the compiler sees co as a function.
Also with the...
Thanks to all
i have found the error:),As we can see in the below template definition the typename T is assigned with the default type( T = VSIP_DEFAULT_VALUE_TYPE/*typedef of float */ ). ...
hi
The below code compiles
typedef Correlation<vsip::Vector,support_full,value_type> cor;
Domain<1> aa(nrange);
cor co(aa,aa);
But if i modify the same code like below i get error
i use gcc 3.4.4.But i have compiled u r code and it worked.Is the error with the Convolution class
yes
Actually there are many constructors for Vector,i wanted to show the template arguments and hence i have not shown the Vector i have used.
The below constructor is one of the Vectors...
Thank u ,i never thought about it.
The error is
ds.cpp:106: error: no matching function for call to `vsip::Convolution<vsip::Vector, nonsym, support_full, vsip::VSIP_DEFAULT_VALUE_TYPE, 0u, ...
hi
i wnt to create a template object which takes templates as arguments .
The below code gives me error
length_type nrange = 4;
typedef Convolution<vsip::Vector,nonsym,support_full>...
till u type quit u will be asked questions
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char quest [100000];
u have to use loop(while or for),post u r code ,lets see where to modify
Thank u king mir,
That solved all my doubts(I was thiniking too much about class templates ,that i forgot to see that vmmul is actually a function template).
Is it compulsary to provide atleast one template argument.(Because without any template arguments i get error).
Also without creating the object arguments are passed to the constructor,how could...
Thanks for reply
But there is no default values specified at the template arguments
hi
i have a working code which uses templates.But the number of template arguments mismatch with the call to template object. please explain the code below.
In the below statement one...
Thank u anon
you r right .It is overloaded operator().
hi
I found two statements in a working program which calls constructor twice.
The first statement creates an object by calling two argument constructor.
In the second statement the same...
Thanks for the keyword "interthread communication" i will search more ,implement and then will post the problems.
linux(RHEL4)
[babu@localhost aaff]$ uname -a
Linux localhost.localdomain 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:32:14 EDT 2005 i686 i686 i386 GNU/Linux