Package ptolemy.data

Examples of ptolemy.data.MatrixToken.split()


        int[] rowsValue = new int[rows.length()];
        for (int i = 0; i < rowsValue.length; i++) {
            rowsValue[i] = ((IntToken) rows.getElement(i)).intValue();
        }
        MatrixToken inputValue = (MatrixToken) input.get(0);
        MatrixToken[][] result = inputValue.split(rowsValue, columnsValue);
        for (int i = 0; i < result.length; i++) {
            for (int j = 0; j < result[i].length; j++) {
                output.send(0, result[i][j]);
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.