t201 opened a new pull request #954:
URL: https://github.com/apache/systemml/pull/954


   This pull request adds documentation for builtin intersect function
   
   ## `intersect`-Function
   
   This is a generic function, extended from the intersect function in the base 
package. The elements of intersect(x,y) are those elements in x and in y. 
   The original definition is preserved in the case that x and y are vectors of 
the same mode.
    
    ### Usage
    ```r
   intersect(x, y)
   
    ```
    
    ### Arguments
    | Name    | Type           | Default  | Description |
    | :------ | :------------- | -------- | :---------- |
    | X       | Matrix[Double] | --       | a set of matrix A |
    | Y       | Matrix[Double] | --       | a set of matrix B | 
    
   ### Returns
   | Type           | Description |
   | :------------- | :---------- |
   | Matrix[Double] | intersection matrix, set of intersecting items|
   
   ### Example
   ```
   intersect = function(Matrix[Double] X, Matrix[Double] Y)
     return(Matrix[Double] A)
   {
   X = rand (rows = 50, cols = 10)
   Y = X %*% rand(rows=ncol(X), 1)
   intersect(X,Y)
   ```
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to