subject

Consider the following C code fragment that does matrix transpose:

int i, j;
for(i = ; i for(j = 0; j < N; j++)
B[j][i] = A[i][j]:

Complete the following optimized version of matrix transpose. Assume that values for V and W are chosen such that a WxV block of matrix B and a VxW block of matrix A fit in cache at the same time.

int i, j, k, l;
for(i = @; i for(j = 0; j for(k = ___; k < ___; k++)
for(l = ___; l< j+W; l++)
B [ ___ ][ ___ ] = A[ ___ ][ ___ ]:

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:00
How can data be added in a table by using what view
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
question
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
You know the right answer?
Consider the following C code fragment that does matrix transpose:

int i, j;
for(...
Questions
question
Geography, 08.04.2020 02:32
question
Mathematics, 08.04.2020 02:32
question
History, 08.04.2020 02:32
Questions on the website: 13722363