03-15-2012
I changed the call of
transform algorithm to this:
PHP Code:
transform(vec1.begin(),vec1.end(),vec2.begin(),vec1.begin(),suma);
and it worked. Also vec2 has to be of size 5.
This User Gave Thanks to santiagorf For This Post:
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello. I'm trying to use the awk command to convert certains fields to lgo base 2, not base 10.
I'm trying command lines like:
awk '$2 $5 $7 {print log(2)($2), log(2)($5), $7) filein.txt > fileout.txt
I'm trying to make a deadline.
Thanks for helping a newbie. Here's some fresh karma... (1 Reply)
Discussion started by: jmzcal
1 Replies
2. Programming
Hi there,
I am using the STL map and I print the map using:
map <string, float> ngram_token_index ;
map <string, float>::iterator map_iter ;
//read the map
...
// print the map
for ( map_iter = ngram_token_index.begin() ; map_iter != ngram_token_index.end() ; map_iter++ )
cout << ... (2 Replies)
Discussion started by: superuser84
2 Replies
3. Shell Programming and Scripting
Hi all,
I'm fairly new to shell scripting. My problem: I'm getting a string, "$XXOGL_TOP", from a database table. I then want to get the value of this variable in the shell script (which is a search path). But it doesn't dissolve but remains a string "$XXOGL_TOP". Any ideas on how to get the... (3 Replies)
Discussion started by: Kerstin
3 Replies
4. Programming
Help me please with STL source code that works on Windows
I've found on Inet STL MRU Cache (it compiles fine with Studio 2008), but when trying to build it with Kdevelop (g++ is the compiler) I've got a series of error. One of them I've placed in the source code. If it's important I can post here... (0 Replies)
Discussion started by: Orlando_ua
0 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I'm using RHEL 5.3, I need to compile C++ code and I'd like to know which rpm contains the STL library.
Thanks:) (3 Replies)
Discussion started by: pppswing
3 Replies
6. Programming
class tst
{
public:
tst() {
cout<<"ctor tst()\n";
}
tst(const tst& ob) {
cout<<"cp ctor tst()\n";
}
~tst()
{
cout<<"dtor tst()\n";
}
};
map<string,tst> mp;
int main(void)
{
mp;
//mp=tst();
} (1 Reply)
Discussion started by: johnbach
1 Replies
7. Shell Programming and Scripting
The following code transform the matrix to columns. Is it possible to do it other way around ( get the input from the output) ?
input
y1 y2 y3 y4 y5
x1 0.3 0.5 2.3 3.1 5.1
x2 1.2 4.1 3.5 1.7 1.2
x3 3.1 2.1 1.0 4.1 2.1
x4 5.0 4.0 6.0 7.0 1.1
output
x1 y1 0.3
x2 y1 1.2
x3... (1 Reply)
Discussion started by: quincyjones
1 Replies
LEARN ABOUT SUSE
transform
transform(1) GNU Triangulated Surface utils transform(1)
NAME
transform - apply geometric transformations to the input.
SYNOPSIS
transform [OPTIONS] < file.gts
DESCRIPTION
This manual page documents briefly the transform command.
OPTIONS
This program follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
-r ANGLE, --rx=ANGLE
Rotate around x-axis (ANGLE in degrees).
-m ANGLE, --ry=ANGLE
Rotate around y-axis.
-m ANGLE, --rz=ANGLE
Rotate around z-axis.
-s FACTOR, --scale=FACTOR
Scale by FACTOR.
-R FACTOR, --sx=FACTOR
Scale x-axis by FACTOR.
-M FACTOR, --sy=FACTOR
Scale y-axis by FACTOR.
-N FACTOR, --sz=FACTOR
Scale z-axis by FACTOR.
-t V, --tx=V
Translate of V along x-axis.
-u V, --ty=V
Translate of V along y-axis.
-w V, --tz=V
Translate of V along z-axis.
-i, --revert
Turn surface inside out.
-o, --normalize
Fit the resulting surface in a cube of size 1 centered at the origin.
-v, --verbose
Print statistics about the surface.
-h, --help
Display the help and exit.
AUTHOR
transform was written by Stephane Popinet <popinet@users.sourceforge.net>.
This manual page was written by Ruben Molina <rmolina@udea.edu.co>, for the Debian project (but may be used by others).
June 2, 2008 transform(1)