Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6977 Discussions

Element by element comparision and vector duplication into matrix

shuo_wang
Beginner
160 Views

Hi all,

could you help me with the following problem.

1.

I would like to compare matrix A and B (both with same dimension), element by element, and produce a matrix C such that

C(i,j) = 1, if A(i,j) >= B(i,j) and C(i,j)=0 if A(i,j) < B(i,j)

2.

How can I duplicate a 1-dimensional vector with m elements n times to make it a m x n matrix?

Thank you very much

0 Kudos
0 Replies
Reply