Loop(block)

plz pay attention to question especially(masijade. ) i won't ask u for childdish code
sry for that.
one more error
the code u give me doesn't work for the subblock which is 2x2 and more than 2 dimension
how to write the code
to multiply each processor block using multithreading
for example,
A
1 2 3 4 5 6 7 8
3 4 5 6 7 8 9 10
5 6 7 8 1 2 3 4
7 8 9 10 3 4 5 6
B
5 6 7 8
7 8 9 10
1 2 3 4
3 4 5 6
subblock 1 from A
1 2
3 4
multiply with subblock 1 from B
5 6
7 8
result
A(1)*B(1)
each multiplication of processor runs on one processor
how do i do that?
how to write the loop for that?
Besides after each run, i need to shift A to left by one block and B to up by one block
until (i=0;i<s;i++)
i is just a counter
s is sqrt(p) <<<where p stands for number of processors
for reference

you will understand it without the original thread.
A=[block1 block2]
[block3 block4]
A
1 2 3 4
3 4 5 6
5 6 7 8
7 8 9 10
B
5 6 7 8
7 8 9 10
1 2 3 4
3 4 5 6
subblock 1 from A
1 2
3 4
multiply with subblock 1 from B
5 6
7 8
result:[19 22]
[43 50]
again
do it for subblock2
if the subblock is 1x1, i can do it by writing the code below
for(i=0;i<m;i++) {
for(k=0;k<m;k++) {
C[i][k] += A[i][k]*B[i][k]; // you said c(0,1) + a(0,1) * b(0,1)
// I assume this may wind up being done multiple times, or something?
for 2x2 matrix, i is 2 instead of initial one..so i need to do some work there
don't know how to do it..
just simple like that
no need to know the previous thread.
thanks
subblock 2 from A get multiplied with subblock2 from B

Similar Messages

  • BPM finishes when reaching exception in loop block

    Hi everybody,
    we got a loop block in BMP. In the loop block we catch mapping errors by using an exception branch.
    What we can see is that when an exception is thrown the process steps into the exception branch an than is leaving the loop block!! So the remaining single messages are not processed!
    Is there a workaround?
    Regards Mario

    Hi Mario,
    Have you used the local correlation for block step.
    Can you please give steps you used in BPM, also try to see the below threads
    What is the use of block step in BPM? Please help!
    BPM ParforEach Loop
    BPM loop
    also,
    BPM Block step
    Using BPM (Blocks) when Incoming message has multilple rows
    Doubt in BPM
    BPM: Block Processing: ParForEach
    Regards
    Chilla

  • Getting a mapping error to propogate from loop block within I.P.

    OK I kinda asked the question as a sub topic under a different heading SXMB_MONI_BPE -> Message Payload not visible in container but didnt really get an answer I'm happy with, so here goes as a main topic!
    The short description:
    I have a mapping step that must reside in a loop block, any mapping errors I want propogated back up to the main container so that they error and appear in the trace within SXMB_MONI in the same visibly obvious way as a mapping step that is not inside a block does.
    The long description:
    I have an Integration Process which splits a source message, then maps the individual messages produced within a forEach block. Unfortunately when there is a mapping error within the block, it does not propogate any meaningful information back to the message trace. Instead it just fails in smq2 with permanent error in inbound bpe processing.
    When I search in SXMB_MONI_BPE there are no process steps returned, as though the  IP was never called by the BPE.
    When I put the whole thing inside a block with an exception path that has an alert step, I do get process steps returned in sxmb_moni_bpe. When I examine the list with technical details I cannot see any "payload" under the table of messages that has been split out, therefor I cannot debug the mappings of individual messages I am looping on.  I have LOGGING, LOGGING_PROPOGATION and LOGGING_SYNC set to 1, and TRACE_LEVEL set to 3 for my IE.
    I have 2 scenarios/requirements:
    1) I put the uncaught mapping exception in the loop blook, and the error is propogated back up and the smq2 error is subsequently not produced (like it would behave if the mapping step was not inside any blocks).
    2) I catch exceptions and raise an alert and then the logging is enhanced sufficiently to enable the individual messages the loop block is looping on to be viewed within the container in sxmb_moni_bpe->list with technical details. 
    The only place I can see the error is in the defaultTrace log file, which is obviously not a suitable method for productive use.  Any solution needs to be usable in day-to-day administration of a production system, even though this is a dev issue at present!
    Thanks,
    James.

    James
    I have used this for throwing smart exceptions in SXMB_MONI
    http://agportal.goldeye.info/index.php?option=com_content&task=view&id=30&Itemid=40
    Not sure if it would work in this instance...
    Barry @ Axon!

  • Multilevel dynamic approval process using precondition loop block

    HI,
    I am trying to create a multivel dynamic approval process using a precondition loop block. The structure of my process is,
    Process->1)Sequential Block containing requestor action->processor of requestor action is initiator
                2)Precondition Loop Block containing
                        i)Loop Decision action containing a business logic callable object
                        ii)Loop Body Block containing Approver action-processor of approver action is filled from context parameter
    The loop decision action implements the logic for loop decision. Can anybody help me by suggesting the proper target of each of these actions, and the processor for loop decision action?
    Whenever I am initiating the process, the requestor action is getting executed,  On completion of this action I am getting a message "No activity is currently selected", that is, it is not entering the precondition loop block.
    Please guide me with the proper process flow of this and how to adjust the roles and parameters
    Thanks,
    Swaralipi

    Posted another thread on the same issue

  • GP - post condition loop block

    Hi there,
    I developed two web dynpro applications that implement the Callable object interface. Let's say they are called wdpA and wdpB.
    wdpA has  output parameter id with multiplicity (0..1)
    wdpB has input parameter id with multiplicty (0...n = list)
    Is it possible to do wdpA in a post condition loop block (execute it at least once) and after that block go to the next block that contains wdpB. In going from wdpA (possibly executed multiple times) to wdpB, i want to consolidate wdpA-output_id to and wdpB-input_id so that the id's that were generated in the loop can be processed in wdpB.
    Kind regards,
    J.

    Hi Joren,
    I don't think it's too difficult. You can find a description and an example here:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/82/0e6f4132f15b58e10000000a1550b0/frameset.htm">Implementing Callable Objects for Background Execution</a>
    In any case you need some references/public parts to determined GP DCs, if you have a NWDI, than it should no problem to reference to them. If not, perhaps the following blog describes a good workaround:
    <a href="/people/andre.truong/blog/2006/06/26/working-with-the-apis-of-caf-guided-procedures-nwdi-or-local-development">Working with the APIs of CAF Guided Procedures: NWDI or Local Development?</a>
    Regards,
      Jan

  • [FPGA] Loop rate very slow: Do FPGA I/O nodes in parallel loops block each other?

    Hi,
    I am using cRIO-9075. Mod1 is NI 9263, Mod2 is NI 9227, Mod3 is 9215.
    Please see my VI attached or the given screenshot.
    The FPGA code is based on the "NI CompactRIO Waveform Reference Library" (it's the lower loop).
    The upper loop was added by me and is writing a waveform from blockmemory to the NI 9263 module (Mod 1).
    The data sampled in the lower loop is running at 1 kHz. The control "AO Update Period" for the upper loop has a value of (for example) 10 (=uS).
    The problem is, that this loop is running much much slower than it should. Once I disable the FPGA I/O node in the lower loop (as done in the attachments), it's running as fast as it should.
    It seems to me, that the FPGA I/O nodes are blocking each other. I tried to figure it out by reading through serveral NI documents, but until now I have no idea how to solve that.
    Can you give me some advices? Some general tipps about the VI?
    Thanks!
    Attachments:
    FPGA Loop Rate.PNG ‏72 KB
    FPGA Main.vi ‏251 KB

    Hi, thanks so far.
    Originally the control was inside the loop. Then I tried if it makes a difference if it's outside.
    Ok, i really seems to be that default value of "100000" for "AO Update Period".
    Starting the VI directly woks like expected. Having "AO Update period" inside the loop makes it possible to control it as it's running.
    But, please see the attachment. When starting the FPGA through RT and setting the appropiate value, it does not seem to work. The oscilloscope show's the same behavior like "AO Update Period" was 100000.
    But when reading the value of "AO Update Period" afterwards (while the FPGA is running), it shows the expected value of "10".
    Having changed the default value to 10 works so far, but I am not able to changed it (see attachment).
    So the problem is: Why is "Read/Write control" not working here? Why is still the default value used?
    Attachments:
    FPGA Loop Rate 2.PNG ‏5 KB

  • Event Loop in SO and failover

    Hi, All Forte Experts
    I have 2 questions:
    1. Would any one tell me where can I put the event loop block in a
    Service Object?
    I tried to put it in the Init to get a timer.tick event, but the SO
    hanged to wait there.
    How can I do this to let the SO do something at certain time?
    2. I have SO doing failover. Can one sleeping SO get any kind of
    information when it becomes alive
    after the running SO dies?
    Thanks a lot for your help.
    Alex
    Carpe Diem, Seize the Day !
    Alex Lee (Li Zhongling)
    Forte, Java/CORBA Group
    International Business Corporation
    Bangalore 560010, India
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi,
    Thank you all a lot for your help.
    For the second question, I explain the situation here. I have a failover
    LockManager SO which contains a LockList. When the first running SO dies, I
    want the second one to become alive and restore the state of the first one( I
    mean the LockList should not be lost). Then I tried to do it in this way:
    1. As Daniel Nguyen suggested in Re:Retaining state on failover of SO
    (Jan.19,1999), I put one shared object holding one Locklist on the Router
    partition. Let the running SO always refresh its contents.
    2. I make the SO Transactionaln with Transaction Dialog Duration. On the
    client, every time I start a transaction to add or remove lock through SO, I
    try to catch the exception "AbortException" (which means the SO dies). To
    handle the exception, I use Releaseconnection, then force the backup SO get the
    locklist from the shared object on Router partition. In this way, the backup SO
    becomes alive and also restore the state.
    I think this works. I will also try your suggestion ASAP. However, would you
    please tell me how to control the secondary SO not to start and later to start
    it? Every time I try to run the app, all the partition will start. And I guess,
    I can not new it.
    Thanks.
    Rds
    Alex
    Alex,
    1) as Arpad mentioned in his posting, you can start task a method which
    contains your event loop from the init method.
    as for
    2), what I've done in the past is to start both primary and secondary SOs,
    where the primary SO's event loop begins at start up, but the secondary SO
    is dormant.. I created a "monitoring" SO which listens for remote access
    exceptions (or distributed access exceptions) and on the death of the first
    SO, the second SO's event loop is started. The other option is to not start
    the secondary SO until the primary one fails, but there is a lag time for
    the SO to come up.
    j
    Carpe Diem, Seize the Day !
    Alex Lee (Li Zhongling)
    Forte, Java/CORBA Group
    International Business Corporation
    Bangalore 560010, India
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Preconditional Loop - with Roles through context not working

    I have created a Pre conditional loop block with action getting user id from output parameters. I am assigning the same action to the next user based on Input_parameters->User using block's Roles tab to the action.
    But the user is not assigned to the action , instead the action is getting repeated in the loop for the old user.
    action should execute like User1, User2, User3.. but the action is assigned to User1 onlly all the time.
    I have grouped Output_parameters and Input_Parameters of the same action to get the users passed from output to input correctly.
    Please let me know if I need to do any configuration in GP for this action/block to accept the Roles to context?
    I am using the blog for example:/people/dipankar.saha3/blog/2007/05/31/how-to-create-dynamic-approval-process-using-conditional-loop-block-in-guided-procedure

    Try this,
    var myDocument = app.activeDocument;
    for (a=1; a < myDocument.allParagraphStyles.length; a++) {
        if(myDocument.allParagraphStyles[a].appliedFont.fontFamily == "Times New Roman (OTF)") {alert()}
    for (b=1; b < myDocument.allCharacterStyles.length; b++) {
        if(myDocument.allCharacterStyles[b].appliedFont.fontFamily == "Times New Roman (OTF)") {alert()}
    Regards,
    Chinna

  • Send(synchronous) step in a loop of A BPM

    Hi
    I am using a send(synchronous) step in a BPM ,  i set it at the beginnig  of a loop but it stops .
    When it is out of loop it is working fine. The result of the response is not a value that ends the loop.
    Do you have any idea what is the problem?
    Thanks
    Antonis

    Insert the send step at the required position in the process definition.
    Do not insert the send step in a loop, block, or fork.
    Defining Sync/Async Communication
    http://help.sap.com/saphelp_nw04/helpdata/en/43/65d4dab39b0398e10000000a1553f6/content.htm

  • WEBUTIL_FILE.FILE_MULTI_SELECTION_DIALOG - Capturing results in Block?

    PROCEDURE P_MULTI_FILE IS
    vFile WEBUTIL_FILE.FILE_LIST;
    BEGIN
    vFile := WEBUTIL_FILE.FILE_MULTI_SELECTION_DIALOG ('C:\', '', 'FMB Files (*.fmb)|*.fmb|', NULL, OPEN_FILE, TRUE);
    END;
    I want to know how to interact with the results from WEBUTIL_FILE.FILE_MULTI_SELECTION_DIALOG. Following through the debugger I can see that each file is stored as an extension of the return variable
    i.e. vFile(1) C:\Temp\AUTH.fmb, vFile(2) C:\Temp\SRCE.fmb
    How can I tell how many items the User has selected? I want to be able to insert these values into a multi record block on the form. Any help would be greatly appreciated....

    If anyone is interested I managed to figure it out:
    DECLARE
      vFile  WEBUTIL_FILE.FILE_LIST;
      i  INTEGER := 1;
    BEGIN
      WHILE vFile(i) IS NOT NULL LOOP
       :BLOCK.ITEM := vFile(i);
       i := i+1;
       CREATE_RECORD;
      END LOOP;
    EXCEPTION
      WHEN no_data_found THEN
        DELETE_RECORD;
    END;

  • How To Set the Resultstate of Business Logic CO for Loop Decision Action

    Hi,
    I'm using a pre-conditional loop block in my GP process and using a Business Logic CO for the loop decision action. My expectation is the business logic CO should be executed at background and based on its resultstate the loop flow will happen. I've 2 resultstates in the loop decision (bus logic CO) - Continue and Break. I'm setting these two resultstates in the following way :
    Continue : BOOL(@currentLevel < @totalLevel)
    Break : !BOOL(@currentLevel < @totalLevel)
    currentLevel and totalLevel are the two input parameters (unsigned int type) of the business logic CO. If I test the CO it works fine and displays the correct resultstate. But at runtime the process gets paused at the loop decision action CO. I see the loop decision action link in my GP workcenter and UWL and on clicking of it nothing happens. If I refresh the screen still it's there as before.
    Anybody who can throw any light on this issue will be highly appreciated. And reward points guranteed for any help to solve the issue
    Thanks in advance,
    Dipankar

    Hi,
    Well I solved this issue myself ! After lot of research I found out that the resultstates should be in all small case <b>continue</b> and <b>break</b> and NOT Continue or Break.
    But now I've a different issue:
    I've an initial action under a sequential block. Then the pre-conditional loop block with a loop decision action and a loop body block(seq block).
    The expectation is initially the decision action should get the output param passed by the initial action and then in the iterations it will get the values passed by the output params of the loop body action. To achieve that I have mapped the output param of the initial action to the input param of the decision action and the input and output param of the loop body action. But it seems that the loop decision action though mapped to both the output of the initial action and the loop body action takes the value only from the initial action over the iterations and the values from the loop body action are not getting passed to the loop decision action. The context parameter value of the loop decision action remains static and it becomes an infinite loop.
    Any help to resolve this issue will be highly appreciated.
    Thanks,
    Dipankar

  • Multiline container, block, transform step ... HELP !!!!!

    Hi everyone.
    I'm trying to create a 'Block' in order to send N IDOCS. The info is contained in a 'container'. This container is of type A and is the one which has the XML file. It's not defined as multiline because if not i'll get an error.
    The question is that i don't know how can i use this 'Block' in order to transform my XML file with N rows into N IDOC, one per row of the XML file.
    I think this couldn't be so difficult but i'm getting several problems when i try to configure the 'Block', the 'transformation step' and the containers.
    Can anyone tell me how to do it?
    Thanks

    Hi Inigo,
    you need first a tranformation step where you have a source message with n lines and n target messages with one line (multi line container).
    Next you can define a loop block for all entries of that container.
    Regards,
    Udo

  • What is the best way   for writing cursors in while loops

    i just chage my flatform from visual foxpro to sql
    for every report part using query analyser i have to make report on any tables
    suppose : - mastempno wise report
    so i heve to use cursor or store procedure in while loop
    for searching in transaction table
    so sometime i get confunsion of using cursors two times in while loop for fetching the values
    so help me for writing some simple codes for using cusrors in while loop while can fetch all values in transaction table

    Is this what u r looking for
    A Simple Cursor Example Which gives all records
    from Employee table
    Declare
    Cursor Emp is
    Select Empno,Ename
    FRom Employee;
    Begin
    For x in Emp Loop
    :block.empname := x.ename;
    End Loop;
    End;
    Regards,
    Ashutosh

  • Step loops

    Hi Friends,
    I wanted to do some modification on step loops. But the option for step loop is disable mode in user dialog.
    Anybody will tell me how to enable the option for step loop?
    Plz tell me the navigation also.

    STEP LOOPS
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/80236c454211d189710000e8322d00/frameset.htm
    Step Loops are type of screen table as already mentioned. Step loops are repeated blocks of field in a screen. Each block contains one or more fields and these blocks are repeated. Step loops aren’t like actual table. You can scroll vertically but not horizontally. Three steps are associated with creation of step loops:
    • Creation of step loops on screen, which includes declaring fields on the screen and then defining the step, loops for these fields.
    • Passing data to the step loop is exactly similar to the passing of data to table controls.
    • In step loop, you don’t need to define the step loop as such in the module pool program but the cursor needs to be defined in the program.
    Types of Step Loops
    • Static – Static Step Loop (SSL) have fixed size that cannot be changed during the runtime. If user resizes the window, the size of the static step loop is not changed.
    • Dynamic – Dynamic Step Loop (DSL) is variable in size. When the user resizes the window, the system increases or decreases the number of the step loop blocks.
    You can have only one dynamic step loop and can have as many static loops in your transaction.
    Programming with the Static and dynamic step loop is exactly same. For the system or for the user it doesn’t make any difference whether it is static or dynamic step loop. Only attribute, which you fix during designing of the step loop, is type attribute for step loop F for fixed i.e static and V for variable i.e. dynamic.
    Writing code for Step Loop in the flow logic.
    PBO.
    Loop at itab cursor cl.
    Module set.
    Endloop.
    PAI.
    Loop at itab.
    Endloop.
    Empty loop is must for both table control and step loop
    LOOP AT statement for step loops and Table controls is similar. Loop At statement transfers the data to screen table. You need to have the Module to assign the values for the screen table.
    In module pool program you need to define the cursor.
    Date: CL TYPE i.
    Cursor parameter tells which line of step loop display should start.
    “Module Set” in module pool program assigns the values to step loop fields, which is similar to table controls.

  • Problem with "Blocked Plug-in"?

    All of a sudden, any graphics from any website display a blank screen that says: "Blocked plug-in", and routes me to request an update from Adobe Flash player. When I install, I go back into a loop > Blocked plug-in > install update etc. I have a Mac OSX with Safari 5.1. Also, my email service, GMail tells me that my current version of Safari is no longer supported and to upgrade but with no info as to how.
    What to do?

    1. System Preferences >  Flash Player > Advanced >  Delete  All
         Press the "Delete All" button
         Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
       Download it first.
       The next step is important.
       Click Safari in the menubar and select “Quit Safari”.
        Follow the prompts and install it.
        Restart computer. Relaunch Safari.
    2.  Allow  Plug-ins
        Safari > Preferences > Security
        Internet Plug-ins >  "Allow  plug-ins"
        Enable it.
        Press " Manage Website Settings" button for more options.
    3. Safari > Preferences > Privacy
        Press the button “ Remove All Website Data”.

Maybe you are looking for

  • Clustered listener gets nothing back from APEX after upgrade to 4.1.1

    Hi, I'm not sure if that subject is entirely accurate, but that appears to be the effect we are experiencing. We have had an SR open for this since April and seem to have the engineers stumped. Maybe someone on here has some insight that may help...

  • Display shortcuts stop working

    Display shortcuts stop working. Reboot starts everything up again.

  • ASA 5520 revert from 9.1.2 to 8.4.6

    Dear All, I want to know if we can revert back from 9.1.2 to 8.4.6 or any 8.4.x version . If yes , what are the steps we need to follow ( or what care should be taken )  before upgrading to 9.1.2 and what are the steps to downgrade to 8.4.x . Any inp

  • Tables for production order number for material and Batch combination

    Dear Experts, Please suggest the table names for finding the production order for material and batch combination . Thanks in advance for your help... Best regards Nitishj

  • Where can I find my add ons

    In the past, when I opened the Add Ons area, it showed me the ones I've already got. I can't find that at all. I've tried to load one a couple of times, but I can't tell if it's installed or not. I'm looking for an auto fill add on. I'm using Firefox