ReneEnjilian opened a new pull request, #2005:
URL: https://github.com/apache/systemds/pull/2005

   **Description:**
   This pull request introduces a new iterator designed to enhance our sparse 
block handling capabilities. Unlike the default IJV iterator, which iterates 
over all non-zero cells, this iterator focuses on the indexes of non-zero 
rows—skipping entirely zero rows. In a subsequent task, I will use this 
iterator to investigate which improvements the DCSR representation can bring 
over other representations like CSR in a number of key operations (e.g., matrix 
multiplication, unary aggregates). The new iterator supports the all four 
sparse formats: DCSR, MCSR, CSR, and COO. Testing has been added.
   
   **Usage Example:**
   ```
   SparseBlock block = ...; // Assume block is initialized
   SparseBlockIteratorOverRows iter = block.getNonZeroRowIterator();
   while (iter.hasNext()) {
       int rowIndex = iter.next();
       // Process non-zero row at rowIndex
   }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to