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)
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)
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)
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)
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 CENTOS
papi_set_domain
PAPI_set_domain(3) PAPI PAPI_set_domain(3)NAME
PAPI_set_domain -
Set the default counting domain for new event sets bound to the cpu component.
SYNOPSIS Detailed Description
@par C Prototype:
int PAPI_set_domain( int domain );
@param domain one of the following constants as defined in the papi.h header file
@arg PAPI_DOM_USER User context counted
@arg PAPI_DOM_KERNEL Kernel/OS context counted
@arg PAPI_DOM_OTHER Exception/transient mode counted
@arg PAPI_DOM_SUPERVISOR Supervisor/hypervisor context counted
@arg PAPI_DOM_ALL All above contexts counted
@arg PAPI_DOM_MIN The smallest available context
@arg PAPI_DOM_MAX The largest available context
Return values:
PAPI_OK
PAPI_EINVAL One or more of the arguments is invalid.
PAPI_set_domain sets the default counting domain for all new event sets created by PAPI_create_eventset in all threads. This call
implicitly sets the domain for the cpu component (component 0) and is included to preserve backward compatibility.
Example:
int ret;
// Initialize the library
ret = PAPI_library_init(PAPI_VER_CURRENT);
if (ret > 0 && ret != PAPI_VER_CURRENT) {
fprintf(stderr,"PAPI library version mismatch!0);
exit(1);
}
if (ret < 0) handle_error(ret);
// Set the default domain for the cpu component
ret = PAPI_set_domain(PAPI_DOM_KERNEL);
if (ret != PAPI_OK) handle_error(ret);
ret = PAPI_create_eventset(&EventSet);
if (ret != PAPI_OK) handle_error(ret);
*
See Also:
PAPI_set_cmp_domain PAPI_set_granularity PAPI_set_opt PAPI_get_opt
Author
Generated automatically by Doxygen for PAPI from the source code.
Version 5.2.0.0 Tue Jun 17 2014 PAPI_set_domain(3)