Programming languages array operations, Computer Engineering

Q. Programming languages array operations?

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

Consider the loop:


                do i=1,n



                 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.

Posted Date: 7/13/2013 2:37:32 AM | Location : United States

Related Discussions:- Programming languages array operations, Assignment Help, Ask Question on Programming languages array operations, Get Answer, Expert's Help, Programming languages array operations Discussions

Write discussion on Programming languages array operations
Your posts are moderated
Related Questions
Classify data networks. Data Network Classifications: Data Networks are classified as per to their geographical coverage: - Wide area networks (WANs) - Metropolitan ar

Write a short note on pointer operators in c Pointers (that is, pointer values) are generated with the ''address-of'' operator &, which we can also think of as the ''pointer-to

Knowledge Representation: To recap, we now have some characterizations of "AI", that when an "AI" problem arises, you will be able to put all into context exactly, find the co

Q. What is control function? If transfer is to take place only under a predetermined control condition then this condition can be specified as a control function. For illustrat

Artificial Neural Networks: However imagine now in this example as the inputs to our function were arrays of pixels and there actually taken from photographs of vehicles such

How many address bits are required to represent a 32 K memory ? Ans. 32K = 25 x 210 = 215, Hence 15 address bits are needed; Only 16 bits can address this.

What are the different types of parameters? Formal Parameters: Parameters, which are described during the definition of subroutine with the FORM statement.

What is Assembler A macro-assembler or assembler normally forms a part of operating system. That translates an assembly language program into machine language program.

Arithmetic Pipeline The complex arithmetic operations like floating point and multiplication operations use a lot of the time of the ALU. These operations can also be pipelined

Q. Explain about hard drives? Disks are generally mounted on a disk drive which comprises of an arm and a shaft along with electronic circuitry for read-write of data. Disk rot