Try to follow the code style at https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide in terms of spaces and indents. In particular, we usually have spaces around operators and commas, and we have 2-space indent. For this particular case I'd probably write
```
val retV = sc.makeRDD(
  Array.tabulate(V.rows, sigma.length){ (i, j) => ((i + 1, j + 1), V.get(i, j)) }
    .flatten)
```