Programming languages array operations, Computer Engineering

Assignment Help:

Q. Programming languages array operations?

In programming languages array operations are written in compact form which frequently makes programs more understandable.

Consider the loop:

                s=0

                do i=1,n

                    a(i)=b(i)+c(i)

                     s=s+a(i)

                 end do

It can be written (in Fortran 90 notation) in following manner:

             a (1:n) = b(1:n) +c(1:n)

             s=sum (a(1:n))

Besides Fortran 90 there are numerous languages which provide succinct operations on arrays. A number of the mainly popular are and MATLAB and APL. Even though these languages weren't created for parallel computing relatively for expressiveness they can be used to state parallelism as array operations can be effortlessly executed in parallel. So all arithmetic operations (+, -, * /, **) included in vector expression may be performed in parallel. Intrinsic reduction functions like the sum above can be performed in a parallel too.


Related Discussions:- Programming languages array operations

Define clock rate, Define clock rate? The clock rate is given by, R=1/P...

Define clock rate? The clock rate is given by, R=1/P, where P is the length of single clock cycle.

Computer graphics, raster scan and random display technology

raster scan and random display technology

What is fork, What is Fork Clk gets its value after 1 time unit, rese...

What is Fork Clk gets its value after 1 time unit, reset after 10 time units, enable after 5 time units, data after 3 time units. All the statements are executed in parallel.

Hypertext markup language, Web pages or materials which are in the form of ...

Web pages or materials which are in the form of hypermedia documents accessed through Internet can be located anywhere in world. No matter from where they originated, most Web d

Define assembly, Define Assembly Assembly is a one deployable unit that...

Define Assembly Assembly is a one deployable unit that contains information about the execution of classes, structures and interfaces. it also keeps the information about itsel

Calculate register transfer time, Q. Calculate Register Transfer Time? ...

Q. Calculate Register Transfer Time? A clock isn't included explicitly in any statements discussed above. But it is presumed that all transfers take place during clock edge tra

What is an i/o buffer, What is an I/O buffer? I/O buffer: One ty...

What is an I/O buffer? I/O buffer: One type of input-output requirement arises from devices which have a very high character density as disks and tapes. With these chara

Zero address instruction format, Zero address instruction format is used fo...

Zero address instruction format is used for  (A) RISC architecture.      (B) CISC architecture.  (C) Von-Neuman architecture.   (D) Stack-organized architecture.

Define various types of shift registers, What are various types of Shi...

What are various types of Shift Registers ? Ans: Kinds of Shift Registers: (i) SISO that is Serial-In Serial-Out Shift Register (ii) SIPO that is Serial-In P

Define both fork and vfork, How and when race conditions happen in process ...

How and when race conditions happen in process control? How can it be avoided? b. Differentiate among following functions giving related syntax: (i) fork and vfork (ii) w

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd