org.apache.sysml.udf.lib

Class MultiInputCbind

  • All Implemented Interfaces:
    Serializable


    public class MultiInputCbind
    extends PackageFunction
    This external built-in function addresses following two common scenarios: 1. cbind (cbind (cbind ( X1, X2 ), X3 ), X4) 2. With spagetization: cbind (cbind (cbind ( matrix(X1, rows=length(X1), cols=1), matrix(X2, rows=length(X2), cols=1) ), matrix(X3, rows=length(X3), cols=1) ), matrix(X4, rows=length(X4), cols=1)) The API of this external built-in function is as follows: func = externalFunction(int numInputs, boolean spagetize, matrix[double] X1, matrix[double] X2, matrix[double] X3, matrix[double] X4) return (matrix[double] out) implemented in (classname="org.apache.sysml.udf.lib.MultiInputCbind",exectype="mem");
    See Also:
    Serialized Form
    • Constructor Detail

      • MultiInputCbind

        public MultiInputCbind()
    • Method Detail

      • getNumFunctionOutputs

        public int getNumFunctionOutputs()
        Description copied from class: PackageFunction
        Method to get the number of outputs of this package function. This method should be implemented in the user's function.
        Specified by:
        getNumFunctionOutputs in class PackageFunction
        Returns:
        number of outputs
      • getFunctionOutput

        public FunctionParameter getFunctionOutput(int pos)
        Description copied from class: PackageFunction
        Method to get a specific output of this package function. This method should be implemented in the user's function.
        Specified by:
        getFunctionOutput in class PackageFunction
        Parameters:
        pos - function position
        Returns:
        function parameter
      • execute

        public void execute()
        Description copied from class: PackageFunction
        Method that will be executed to perform this function.
        Specified by:
        execute in class PackageFunction

Copyright © 2017 The Apache Software Foundation. All rights reserved.