Way faster to calculate C (i, j) = max (A(i,j), B (i, j))

Hi Ppl,

I just wanted to know, what could be the fastest way to capture the most of element from a 2D array.

That is, I want to implement C (i, j) = max (A(i,j), B (i, j))

I don't want for the index of each item and select the maximum of two, because it would take more time to execute.

I tried the method to implement this below. The problem is, when a NaN value is passed as an input, NaN is returned

output, independently of the other entry. I don't want that to happen.

The one you suggest a better method to implement this...?

Use the Max and Min primitive to the range of comparison. He accepts arrays and will ignore same NaN.

Tags: NI Software

Similar Questions

  • Calculate the IOPS / s max for our MD3220i

    We have a MD3220i with two controllers and 16 900 GB 10 k SAS drives.

    Is there a way to calculate our theoretical IOPs max?  I read http://www.principledtechnologies.com/Dell/MD3220i_email_db_0610.pdf that shows a 18 k IOPs.  But of course, which is based on this exact config.  With readers less I guess that we will support less IOPS / s.

    We are moving on a different storage device, so I know that our current Ops ARE / s, and I want to assure you that the new device will support it.

    If the system is already configured I download and run a tool like IOMeter. There are far too many factors that weigh to be able to say with certainty how many IOPS / s the system will. By running the tool will break down all for you. For this utility, go to the link below.

    http://www.iometer.org/

    Please let me know if you have problems running this utility.

  • Is there a way to dynamically calculate the values for the IN operator?

    I want to know if there is a way to dynamically calculate the criteria to include within an IN operator in the WHERE clause. "For example when I try to run the following I get an Oracle error message ' OR!-01722: invalid number." The script below is just an example to help illistrate the problem, I don't want to hardcode the values assigned to the v_test directly within the IN operator because the values of v_test will change from user to user.

    DECLARE

    v_test VARCHAR2 (10): = '1,15,25,55';
    v_tmp VARCHAR2 (50): = NULL;

    BEGIN
    SELECT d.metric_title IN the tbl_health_metric_definition v_tmp d
    WHERE d.metric_status = 'Active' AND d.metric_id IN (v_test);
    END;

    You can convert the string "1,15,25,55" online like this

    SQL> select regexp_substr('1,15,25,55' ,'[^,]+', 1, level) list
      2    from dual
      3  connect by level <= NVL( LENGTH( REGEXP_REPLACE( '1,15,25,55' , '[^,]+', NULL ) ), 0 ) + 1
      4  /
    
    LIST
    ----------
    1
    15
    25
    55
    

    and use this selection in your IN clause.

  • Adobe can create a way faster to change highlight colors and framed?

    Our office has strongly uses Acrobat to its ability to change the color of the text boxes and comments.

    Each color means a certain element of action, or the group who needs to work on it. To change colors frequently as changes in status.

    The procedure to achieve this is to right-click on an existing highlight, select Properties, click on the square of color, select the color palate, select the new color, close mouth color and click "OK". This is clearly not optimal, and it was much easier in earlier versions of Acrobat.

    Would it be possible to Adobe to create faster with the right button functionality to change the color of highlighting or text box?

    Mr Bernd soon,Bernd at

    That's great - thanks for the reply!

    I wonder why this feature so deeply hidden in Acrobat...?

    It should not require post on a forum and 3 days to find!

    Thanks again,

    Michael

  • How to calculate the load time, max - min date query

      CREATE TABLE TEST ( GID VARCHAR2(100 BYTE), SGID VARCHAR2(100 BYTE), PID VARCHAR2(100 BYTE), DATES TIMESTAMP (6) );
    
    REM INSERTING into TEST
    SET DEFINE OFF;
    Insert into TEST (GID,SGID,PID,DATES) values ('1','1000','ABC',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('1','1001','BCD',to_timestamp('24-AUG-13 05.21.46.491000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('1','1002','CDE',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1004','EDF',to_timestamp('23-AUG-13 05.22.20.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1003','FEG',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1001','GHI',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('2','1006','JKL',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('3','1007','LMN',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into TEST (GID,SGID,PID,DATES) values ('3','1001','OPQ',to_timestamp('24-AUG-13 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));
    

    Hello

    I need a sql query which gives me the time taken to load the records ie., Max date less date min. I ran a query that gives me the result "0 23:59:26.491" below.

    select (max(DATES) - min(DATES)) from test;
    

    When I apply the same logic in Peoplesoft enterprise manager, it generates the sub query and throw me the "ORA-01722: invalid number" error.

    select max(TO_CHAR(cast((DATES) as timestamp),'YYYY-MM-DD-HH24.MI.SS.FF'))
    -min(TO_CHAR(cast((DATES) as timestamp),'YYYY-MM-DD-HH24.MI.SS.FF'))
    from test; 
    

    Can you please modify the above query?

    user11872870 wrote:

    1. CREATE TABLE TEST (VARCHAR2(100 BYTE), VARCHAR2(100 BYTE), PID VARCHAR2 (100 BYTE) SGID GID, DATES TIMESTAMP (6));
    2. INSERTION of REM in TEST
    3. TOGETHER TO DEFINE
    4. Insert into TEST (GID, SGID, PID, DATES) values ('1 ', ' 1000', 'ABC', to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    5. Insert into TEST (GID, SGID, PID, DATES) values ('1 ', ' 1001', "BCD", to_timestamp (24 August 13 05.21.46.491000000 PM ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    6. Insert into TEST (GID, SGID, PID, DATES) values ('1 ', ' 1002', "COE", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    7. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1004', "EDF", to_timestamp (05.22.20.000000000 PM Aug 23, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    8. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1003', "FEG", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    9. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1001', 'GHI', to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    10. Insert into TEST (GID, SGID, PID, DATES) values ('2 ', ' 1006', 'JKL', to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    11. Insert into TEST (GID, SGID, PID, DATES) values ('3 ', ' 1007', "LMN", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));
    12. Insert into TEST (GID, SGID, PID, DATES) values ('3 ', ' 1001', "Professions", to_timestamp (12.00.00.000000000 AM Aug 24, 13 ',' DD-MON-RR HH.MI.)) SS. AM FF '));

    Hello

    I need a sql query which gives me the time taken to load the records ie., Max date less date min. I ran a query that gives me the result "0 23:59:26.491" below.

    1. Select (max (DATES) - min (DATES)) of the test;

    When I apply the same logic in Peoplesoft enterprise manager, it generates the sub query and throw me the "ORA-01722: invalid number" error.

    1. Select max (TO_CHAR (cast ((DATES) as timestamp),'YYYY-MM-DD - HH24.MI.)) SS. FF'))
    2. -min (to_char (Cast ((dates) as timestamp),'YYYY-MM-DD - HH24.MI.)) SS. FF'))
    3. of the test;

    Can you please modify the above query?

    1. SELECT max (cast (DATE) as date)-mIN (cast (DATE) as date) test;
  • Best way to re - calculate the performance of rule

    Hello

    I have a scenario where is used the OPA determine the benefits to the people.

    Lets say a person is eligible using $100 per month and was paid in Jan, Feb, Mar, April $100 every month.

    However, a change in the rule, retroactive to March changed the payment of $110, and now, the person should be paid $130 in May (110 for March May + 10 + 10 April), then 110 over the following months. . and now the retro calculation is required.

    What features in OPA are useful here?

    How changes are tracked in OPA?

    Thank you very much...

    Modification of the rules is not tracked in a takeover bid of modules.  However, you may have two versions of the same rulebases representing rules at different times and use a process outside the OPA for the monthly payment of the 'old' and the 'update' modules and work out differences.

    Within a module, you can watch the reasoning from time to manage overtime for different payment amounts, however, real world rule changes are generally more complex that a simple value change over time.

  • A way to group controls and indicators on the Front Panel and that they can be made Visible or not as a group?

    I would like to combine several orders and LEDs on the front panel in a group in a way that allows me to do the whole group Visible or not.

    I tried to use a Cluster, but it has a side effect that all elements must be inside the controls or indicators, but not mixed.

    Is there any graphic element, like a panel that can contain other controls and indicators on the inside and make them Visible or not as a group regardless of whether they are commands or the LEDs?

    Good suggestions on how to do this?

    Thank you.

    The tab control is still not my favorite, appearance but it's a way fast and effective to show and hide groups of controls and indicators.

  • Eccentric MAX program?

    Sorry if wrong forum. I tried digital I/o, but no answer & I can't find a forum for MAX.

    I have a problem with a client computer which houses PCI-6071e & PCI-6043. In MAX test panels.

    I have lines of encoder quadrature clinging to PFI0 & PFI1. If I go to the counters, for number of edge, trigger = PFI0 (or PFI1) I count when I turn the encoder. But if I go into digital I/o I get no response from the encoder. All 8 lights remain lit.

    Tried it on another machine (with USB-6211) it works fine.

    MAX or drivers are right divide? Not possible to have good counters and signals through the PFI is bad, right?

    Walter donovan,

    I think you misquoted your second DAQ device model number - I do not think that we do a 6043.

    If you want to use a map of series E (6071E) with a quadrature encoder, you will have to plug a little differently. Most of quadrature encoders have at least two signals of the pulse output (and possibly a third, which is the output of the index). These two impulses, A and B, must be connected on the DAQ counter input source (PFI3 for PFI8 for Ctr Ctr 1 or 0) and the P0.6 of entry respectively. So I recommend that you configure a fast edge counting task to the MAX to verify that this configuration works ("outwardly controlled" use for management).

    The reason for which he worked a litte differently with your other card (USB-6211, M series) may be that the two card counters are different. M series supports the features of NOR-TIO meter, such as the separation of the two edges and quadrature encoding, and E series does not (for other differences, see this article). However, you can still use your card in the E series with a quadrature encoder as I've described. For more information,.

    The use of quadrature encoders with DAQ of E cards series

    I don't think that anything that is wrong with MAX or your drivers. The lights may or may not reflect the signal on your digital inputs according to the speed of the train of pulses from your encoder.

  • Easiest way to do this calculation

    If (phase > 180.0F) phase phase = - 360.0F;
    If (phase< -180.0f)="" phase="">
    Phase = phase;

    I keep ending up with a nested case or case structures or serialized structure selects trying to do the math above. Is there a way I can calculate phase in a more concise State?

    To wrap the phase I would add 180, divide by 360 with Q & R, subtract 180 from the rest.

  • How LabVIEW calculates the Euler Angles of the Direction cosine matrix?

    I am looking to clean my block diagram by converting mathematical functions LabVIEW Mathscript; However, I can't know exactly what convention of rotation is used to calculate the Direction cosine matrix Euler angles. Any ideas?

    Here is what I use now (see below)... the angle phi is the only one (of three angles) not correct as mathematical LabVIEW functions. I've also attached the .vi illustrating the calculation in two ways.

    % calculate the angles of Euler of DCM

    % "DCM" is a 3 x 3 direction cosine matrix

    Phi = atan ((DCM (2,3)) / (DCM (3.3)));

    Theta = acos (DCM (3.3));

    lb/po2 = atan2 (DCM (1,3), DCM (2,3));


  • Communication through MAX with equipment series

    I use a converter RS 232 to USB to communicate with a gas Analyzer. I want to communicate using the C-link protocol to communcate with the Analyzer, but I cannot do this through Labview and MAX. In the manual of the machine, it is said that control of the aircraft have first the ASCII, code 128 character and its id to the instrument, which, in my case, is 43, which means that the command should start with ASCII character code 171. Then, each statement must end with a carriage return. I tried several different ways to send these commands but in MAX, I get an error in time-out for the series in Labview and VISA Communicater, I get an error on the property node (I used the basic series write read provided vi).

    Can someone help me on? I'm not really sure how to send these commands properly to the analysers.

    You send the characters 'C' and 'R '. This isn't at all the same that the CR control code. You might have used the cast to send hexagonal 0d, you can use the constant CR on the palette of the chain, you could set the string to display hexadecimal constant and send D 0, you can use the constant string defined for '-' display the Codes and \r to send.

  • Quick way to switch between desktop applications

    Hello.

    From what I understand, the "move to the top left corner, click and move down the left edge"Win8 maneuver only works with modern applications. "

    Using desktop for most applications, I often find it difficult to move quickly from one to the other. The taskbar or desecration bar (alt + tab) are much too crowded.

    Is there a way faster and more efficient?

    Oh and by the way, what happens to the spinning wheel (Win + tab key)?

    What Windows Key + Tab

    There also 3rd party software to change your Alt + Tab completely as VistaSwitcher (I think it is compatible with Windows 8)
    The task bar are a good way to switch between desktop applications too
    You can the software in the taskbar next to the line and proceed with the Windows key + 1,2,3,4
  • PS has a fast and guided mode? Or can I add this mode?

    I am beginner. I have not used ps before. I tried ps elements and it is very good.

    But considering that I will update this sw annually, photoshop cc may be better in terms of prices.

    So I have a question.

    Is there a way fast and guided Potoshop cc? Or can I add this mode?

    No, Photoshop doesn't have a quick and guided modes. It is not organizing in Photoshop either, but you have Adobe Bridge instead.

  • Quick way to assign the IDs table header cells to data?

    Acrobat X (10.1.9)

    For the accessibility of tables with complex headers, is there a quick way to assign the ID of the header cells to data associated with them?  I have not found a way faster than go to one cell at a time.

    All tags already have an ID, this question is how quickly assign the ID of header cells to all data cells in a row or a column.

    Better yet, is there a function or plugin that looks like to a table column and line and automatically assigns the headers for all data cells?

    I used the Table Inspector in Acrobat and several years of the CommonLook plug-in version. Both allow you to set several properties for all the cells in a selection. And they act as if they fortunately put header IDs for multiple cells, but after clicking OK and watch the cell properties, TI is not set for any of them, and CL only sets it to the first cell that has been selected.

    I prepare a PDF file of scientific reports for Section 508 compliance. Often, they are hundreds of pages long and got the results of large tables. Some clients insist on complex headers. Cell by cell is surprisingly long.

    I am running the latest version of CommonLook and manages to assign very well identification tags.  You can select multiple cells and assign them to a header.  You can also select the same cells and assign them to another heading using "Append". This will add the new header, without deleting the header already assigned.  In earlier versions Append has not worked for me.   That's what you need, if you have complex tables for a long time.  If you get the latest version and this isn't the case call Technical Support, as the plugin does not work correctly.  The Touch Up reading order tool does not.

    I sometimes create a white/hidden text for the header text that spans several columns and then create individual to keep them, but I wouldn't rely on it for long tables or use it as my main method. It's a pretty quick solution in some cases - or if your author likes to let in line 1, column 1 white, you can create your own invisible header for the screen reader.  But it is too difficult to verify, and not the best route to follow. Also the hidden text is considered a no-no by some as it is supposed to be a drop out / drop behind or mistake to layout.

  • Problem Windows 7 SSD

    I have a SSD 120 gb hard drive with windows 7. Everything has been fine for over 2 years. I followed several tips to prevent fill such as disabling hibernation, since I never disable. A month ago I noticed that my drive was fast filling and getting close to maxing out even if I was not downloading anything him or install new programs. I cleaned my trash and done a disk space cleanup, but the problem persists. About two weeks ago, I got 22 GB of free, three days ago I was at 14 GB free and today I am to 11 GB free. I ran a program called WinDirStat , and he gave me a reading where all my all my data has been allocated. The strange thing is that none of these figures have changed enough to account for the data that you will eat upward and yet there are 11GB I can't explain. The figures for the high data pigs look like this Windows 26.4 GB 24.7 today in two weeks. 14 GB users two weeks ago 10 today. Data from the program 8.4 yesterday and today. Program files x 86 and program files showed no change at 7.9 and 6.5 respectively. So according to this, I should have less data used throughout. Any other accounting for less than 2 GB, and certainly nothing seems to explain 11 GB of free space just by disappearing like that.

    I ran Malware Bytes and HiJackThis are as well as several nothing works antivirus scans. I'm puzzled. Advice or do I just need to reformat and start over my hard drive is on it's way back in red? Let me know if you need more info.

    Thank you.

    W

    I would check with an application called Jam software treesize.  He will show you things like the amount of information that windirstat can not.

Maybe you are looking for

  • Microsoft Office 365 does not work after update of El Capitan 10.11.4 March 27

    I've upgraded to El Capitan 10.11.4 March 27 and my Microsoft Office 365, specifically the word & excel stopped working properly. Files can be opened, but when you save the new content, and then close the document, it does not record properly (and no

  • Get rid of windows search for a solution, box of

    Tried to download the game gamevance.  I stopped in the Middle, now I get this on my screen "gamevance32.exe has stopped working.  A problem caused the blocking of the program works correctly.  Windows will close the program and notify you if a solut

  • 6000v2.0 wireless keyboard with Windows 7

    My Microsoft wireless keyboard 6000v2.0 does not always work with my Windows 7.  Is my questions compatible?  The mouse works fine, but I wonder about the keyboard.  It has new batteries and tried to synchronize but the green light does not illuminat

  • Taskbar stays above all, when it isn't supposed to!-2015!

    Well here we are in 2015 and a common bug in 2012 is alive and well. I have the taskbar on the left side - which I like. When I maximize browser window, the taskbar autohide do often, blocking the arrow to the left of the browser window. Whenever thi

  • Netflix appearing does not in media center on windows 7 ultimate 64-bit edition

    I have windows 7 Ultimate 64-bit.  I try to get the netflix option if displayed in Media Center, but do not have a chance.  I ran the command prompt commands to try to make it work that I found on the internet (http://support.microsoft.com/kb/972496)