These are chat archives for uwhpsc-2016/uwhpsc-2016

2nd
May 2016
nishalad95
@nishalad95
May 02 2016 03:40

Hello! I was wondering if anyone would be able to help - I understand the concept of memory allocation, but i'm just wondering whether we will need to implement it in this homework? I guess for computations that take up a lot of memory that aren't being used very often should be allocated memory and then freed when no longer in use, but I'm wondering whether any of our methods will need this?

Also with the Jacobi and Gauss-seidel methods are we supposed to rewrite part of our python functions into the C source file?

Thank you!
alyfarahat
@alyfarahat
May 02 2016 05:02
Dynamic memory allocation is essentially useful when one can only determine the size of the needed memory at run-time. In addition to malloc(), C99 standard accepts creating variable size arrays as local variables; i.e., on the stack. I have tried the second approach in an implementation of my solution to homework2. For larger matrices, allocation on the stack is a limiting factor. So this is an example for me where allocation on the heap fixed my problems.
nicksmithc102
@nicksmithc102
May 02 2016 05:31
My Jacobi algorithm works fine for matrices of 5 by 5 or less, but completely breaks for anything larger. Any ideas why?
Chris Swierczewski
@cswiercz
May 02 2016 16:55

Office Hours - Start

Office Hours - End (will begin at 4:00pm on Monday)

nicksmithc102
@nicksmithc102
May 02 2016 17:53
Is there an office hour now, or at 4 only?
Chris Swierczewski
@cswiercz
May 02 2016 17:53
Only at four. I misread my calendar.
nicksmithc102
@nicksmithc102
May 02 2016 17:54
Ok, thanks.
Chris Swierczewski
@cswiercz
May 02 2016 22:55

Office Hours - Start

Hello, everyone.
nicksmithc102
@nicksmithc102
May 02 2016 22:55
Never mind my earlier question about matrix sizes; forgot to make my matrix strictly dominant on the diagonal.
Chris Swierczewski
@cswiercz
May 02 2016 22:55
I think I read something on the issues pages about that.
Glad you figured it out.
nishalad95
@nishalad95
May 02 2016 23:08
Hi Chris! I've started to write c methods for the jacobi and gauss-seidel part of this assignment, and I am trying to test out my decompose method although it's not giving me the right output when I use the printf, I'm not sure if I have implemented everything right, including the use of malloc. I have pushed up my changes to git hub, please can you take a look? Thanks!
Chris Swierczewski
@cswiercz
May 02 2016 23:10
Sure thing. Let's switch over to a private chat. Just to warn you I'm also chatting with another student.
Chris Swierczewski
@cswiercz
May 02 2016 23:42

15 mintues left

Chris Swierczewski
@cswiercz
May 02 2016 23:54

Office Hours - End

Good luck with the rest of the homework!