Community Profile

Raymundo Marcos-Martinez


University of California Riverside

5 total contributions since 2012

Contact

Contributions in
View by

Question


Alternative to reshape to multiply multidimensional arrays
I am working on a dynamic programming problem and after profiling my code I noticed that most of the computing time is spent usi...

3 years ago | 1 Answers | 0

1

answer

Question


How to vectorize extraction of relevant sections from multidimensional matrix?
The purpose of the attached code is to interpolate a function over multiple nodes and assign weights to the interpolated values....

4 years ago | 1 Answers | 0

1

answer

Responded


Re: vector manipulation
Got it. I do not know why I did not see it before. Thanks dpb.

4 years ago | 1251 views

Responded


Re: vector manipulation
I am sure there is a more elegant and general answer. In the meantime ... a = 8; b = [1 2]; x = a - b(1) - b(2);

4 years ago | 1251 views

Question


How to vectorize a for loop that computes the expected value with multidimensional arrays?
I am working on a dynamic programming problem and after profiling my code I noticed that most of the computing time is spent cal...

4 years ago | 1 Answers | 0

1

answer