Guest User

Untitled

a guest
Jan 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. len = length(blocks);
  2. n = sum(size(blocks)) - len;
  3. currsum = sum(abs(blocks(n,1:len)));
  4.  
  5. int n = (this->width + this->height) - this->width;
  6. double currsum = 0;
  7.  
  8. for(int i=0; (i < n); i++)
  9. {
  10. currsum += blocks[i];
  11.  
  12. }
  13.  
  14. len = length(blocks);
  15.  
  16. n = sum(size(blocks)) - len;
  17.  
  18. currsum = sum(abs(blocks(n,1:len)));
  19.  
  20. currsum = sum(abs(blocks(end,:)))
  21.  
  22. int n = (this->width + this->height) - this->width;
  23.  
  24. int n = this->height;
  25.  
  26. currsum += blocks[i];
  27.  
  28. double currsum = 0;
  29. for(int i=0; (i < this->width); i++)
  30. {
  31. currsum += abs(blocks[this->height-1][i]);
  32. }
Add Comment
Please, Sign In to add comment