I have line which is read from xml doc. I want to put this line into hash(perl variable). find line below and how i want to put this in hash
<font size="10" type="int" name="ABC" >
hash key should be size, type and name with corresponding value
I doing as below:-
$line =~ s/\s*.*?\s//;... (3 Replies)
I have a script with dynamic hash of hashes , and I want to print the entire hash (with all other hashes).
Itried to do it recursively by checking if the current key is a hash and if yes call the current function again with refference to the sub hash.
Most of the printing seems to be OK but in... (1 Reply)
Hi i am reading one file and creating Hash from the contents of it my issue is there are 3 different files in 3 different locations having same structure so for parsing these files i have one subroutine which returns hash after reading all the 3 files i need to create consolidated hash from three... (2 Replies)
Hi,
Now i work in a code that
1-get data stored in the database in the form of hash table with a key
field which is the " Name"
2-in the same time i open a txt file and loop through it word by word
3- which i have a problem in is that :
I need to loop word by word and check if it is a... (0 Replies)
Hi,
The task i have to do is to
1- create a database contains the Names .run the query and store results in hash make the Name field is the hash key
2- in the same time i have a txt which i will loop through it word by word and check for each word if a hash key ( compare it with the Names in... (0 Replies)
Hello,
I have a hash in hsh. I need to assign it to another hash globalHsh. I think the below statement does not work
$globalHsh{$id} = %hsh;
What is the right way to assign it?
Thanks (3 Replies)
Can Someone explain me why even using Tie::IxHash I can not get the output data in the same order that it was inserted? See code below.
#!/usr/bin/perl
use warnings;
use Tie::IxHash;
use strict;
tie (my %programs, "Tie::IxHash");
while (my $line = <DATA>) {
chomp $line;
my(... (1 Reply)
Hi,
I have an hashes of hash, where hash is dynamic, it can be n number of hash. i need to compare data_count values of all .
my %result (
$abc => {
'data_count' => '10',
'ID' => 'ABC122',
}
$def => {
'data_count' => '20',
'ID' => 'defASe',
... (1 Reply)
Hi, I have a hash of hash where it has
name, activities and count
i have data like this -
$result->{$name}->{$activities} = $value;
content of that are -
name - robert tom cat peter
activities - running, eating, sleeping , drinking, work
i need to print output as below
... (3 Replies)
Discussion started by: asak
3 Replies
LEARN ABOUT OSX
mpi_group_range_incl
MPI_Group_range_incl(3OpenMPI)MPI_Group_range_incl(3OpenMPI)NAME
MPI_Group_range_incl - Creates a new group from ranges of ranks in an existing group.
SYNTAX C Syntax
#include <mpi.h>
int MPI_Group_range_incl(MPI_Group group, int n, int ranges[][3],
MPI_Group *newgroup)
Fortran Syntax
INCLUDE 'mpif.h'
MPI_GROUP_RANGE_INCL(GROUP, N, RANGES, NEWGROUP, IERROR)
INTEGER GROUP, N, RANGES(3,*), NEWGROUP, IERROR
C++ Syntax
#include <mpi.h>
Group Group::Range_incl(int n, const int ranges[][3]) const
INPUT PARAMETERS
group Group (handle).
n Number of triplets in array ranges (integer).
ranges A one-dimensional array of integer triplets, of the form (first rank, last rank, stride) indicating ranks in group or processes
to be included in newgroup.
OUTPUT PARAMETERS
newgroup New group derived from above, in the order defined by ranges (handle).
IERROR Fortran only: Error status (integer).
DESCRIPTION
If ranges consist of the triplets
(first1, last1, stride1), ..., (firstn, lastn, striden)
then newgroup consists of the sequence of processes in group with ranks
last(1)-first(1)first(1), first(1) + stride(1),..., first(1) + ----------------stride(1),...
stride(1)
last(n)-first(n)
first(n), first(n) + stride(n),..., first(n) + ---------------- stride(n).
stride(n)
Each computed rank must be a valid rank in group and all computed ranks must be distinct, or else the program is erroneous. Note that we
may have first(i) > last(i), and stride(i) may be negative, but cannot be zero.
The functionality of this routine is specified to be equivalent to expanding the array of ranges to an array of the included ranks and
passing the resulting array of ranks and other arguments to MPI_Group_incl. A call to MPI_Group_incl is equivalent to a call to
MPI_Group_range_incl with each rank i in ranks replaced by the triplet (i,i,1) in the argument ranges.
NOTE
This implementation does not currently check to see that the list of ranges to include are valid ranks in the group.
ERRORS
Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ func-
tions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism
will be used to throw an MPI:Exception object.
Before the error value is returned, the current MPI error handler is called. By default, this error handler aborts the MPI job, except for
I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be
used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error.
SEE ALSO
MPI_Group_incl
MPI_Group_free
Open MPI 1.2 September 2006 MPI_Group_range_incl(3OpenMPI)