Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - youcan

Pages: [1]
1
Programming Bootcamp / & Vector::operator()
« on: August 19, 2020, 01:44:46 AM »
In the last Vector exercise, what is the difference between the function Vector::operator() and the function &Vector::operator()? They all return data[ x ]. Does the latter mean it will only return the value by reference but not address? And how can I choose to call the latter function instead of the former one in the main function? Thanks.

2
Programming Bootcamp / Openmp on multiple cores/nodes
« on: August 18, 2020, 03:32:21 AM »
Just out of curiosity, if I assign multiple cores/nodes to a slurm job which will use openmp, can openmp evenly distribute the threads among those cores/nodes for me? Thanks.

Pages: [1]