I have an array containing distances in ascending order, for example:
I have a number, let's say v = 170 and a variation value, let's say var = 100 . I want to return the array indexes for which the distances cover the range (v - var) to (v + var).
For example if var = 200, want to find the indexes in the array that cover
Here is an example of a file I am working with:
C 4704 CB 1318 ASP 115 BGRF 1 weak 0.0% 4.33
C 4720 OD 1322 ASP 115 BGRF 1 weak 0.0% 3.71
O 4723 OD 1322 ASP 115 BGRF 1 weak 0.0% 3.48
O 4723 CG 1321 ASP 115 BGRF 1 weak 0.0% 4.34... (3 Replies)
Hi,
I have a file with the below like values with integers only in sorted order (May or may not be in sequence)
Eg: File1.txt
-----------
1
2
3
4
5
6
.
.
.
.
.
10000
My requirement here is to create a range of values out put to a temp k (4 Replies)
Hi All,
I'm writing a nagios check that will see if our ldap servers are in sync...
I got the status data into a nested array, I would like to search key of each array and if "OK" is NOT present, echo other key=>values in the current array to a variable
so...eg...let take the single array... (1 Reply)
I have an two arrays. One array BINDIST consists of fences. I have another array XOFFS.
Eg
BINDIST = 0 10 20 30 40 50 60
XOFFS = 2 3 4 23 25 28 55 58
I want to find to find the indices of values in XOFFS that are closest to each BINDIST.
My idea is to do as follows
I create array... (7 Replies)
hi,
I want to store from 102 character to 128 character to a variable of header record which can be identified as 'HDR' which is the first 3 characters in the same line of a same.txt file.
Please advise.
Thanks (4 Replies)
I need to return all records in a file starting with
a row that says
TABLE: <tabl name>
lists of hexadecimal records
TABLE: <some table>
TABLe is a key word in the file. I know the name of the table I want to start with. I do not know the name of the table that I will end with. I just... (4 Replies)
Hi All,
Thanks in advance
File is generated with following format
31000000.xml to 48999999.xml
74000000.xml to 88999999.xml
Above range should be find and moved into the folder named abc
and below is another range should should be find and moved into folder named xyz
... (1 Reply)
Hello,
I am looking for some help on GAWK script. I have a list of phone numbers as below.
I need to sort these in the range of first 6 digits.
2402170338
2402170387
2402170478
2402170744
2403100025
2403100026
2403100027
2403100028
So for the above sample data, I require an output... (9 Replies)
I have a list of columns with values that I need to transform into a row containing the range of each column. For example:
"Column A"
1
2
3
4
10
12
14
15
16
17
18
"Column B"
1
4
5
6 (4 Replies)
Gents,
It is possible to generate a range of values according to column 1 and count the total of rows in the range.
example
input
15.3
15.5
15.8
15.9
16.0
16.1
16.8
17.0
17.5
18.0
output desired
15.0 - 15.9 = 4 (10 Replies)
Discussion started by: jiam912
10 Replies
LEARN ABOUT DEBIAN
hwloc_distances_s
hwloc_distances_s(3) Hardware Locality (hwloc) hwloc_distances_s(3)NAME
hwloc_distances_s -
SYNOPSIS
#include <hwloc.h>
Data Fields
unsigned relative_depth
unsigned nbobjs
float * latency
float latency_max
float latency_base
Detailed Description
Distances between objects.
One object may contain a distance structure describing distances between all its descendants at a given relative depth. If the containing
object is the root object of the topology, then the distances are available for all objects in the machine.
If the latency pointer is not NULL, the pointed array contains memory latencies (non-zero values), as defined by the ACPI SLIT
specification.
In the future, some other types of distances may be considered. In these cases, latency may be NULL.
Field Documentation
float* hwloc_distances_s::latency
Matrix of latencies between objects, stored as a one-dimension array. May be NULL if the distances considered here are not latencies.
Values are normalized to get 1.0 as the minimal value in the matrix. Latency from i-th to j-th object is stored in slot i*nbobjs+j.
float hwloc_distances_s::latency_base
The multiplier that should be applied to latency matrix to retrieve the original OS-provided latencies. Usually 10 on Linux since ACPI SLIT
uses 10 for local latency.
float hwloc_distances_s::latency_max
The maximal value in the latency matrix.
unsigned hwloc_distances_s::nbobjs
Number of objects considered in the matrix. It is the number of descendant objects at relative_depth below the containing object. It
corresponds to the result of hwloc_get_nbobjs_inside_cpuset_by_depth.
unsigned hwloc_distances_s::relative_depth
Relative depth of the considered objects below the object containing this distance information.
Author
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
Version 1.4.1 Mon Feb 27 2012 hwloc_distances_s(3)