Examples of FixMatrixToken


Examples of ptolemy.data.FixMatrixToken

                // The following conversion will fail if the member cannot
                // be converted to an int.
                FixToken singleMember = FixToken.convert(token);
                FixPoint[][] matrix = new FixPoint[1][1];
                matrix[0][0] = singleMember.fixValue();
                return new FixMatrixToken(matrix);
            }
        }
View Full Code Here

Examples of ptolemy.data.FixMatrixToken

        } else if (object instanceof double[][]) {
            returnValue = new DoubleMatrixToken((double[][]) object);
        } else if (object instanceof Complex[][]) {
            returnValue = new ComplexMatrixToken((Complex[][]) object);
        } else if (object instanceof FixPoint[][]) {
            returnValue = new FixMatrixToken((FixPoint[][]) object);
        } else if (object instanceof double[]) {
            DoubleToken[] temp = new DoubleToken[((double[]) object).length];

            for (int j = 0; j < temp.length; j++) {
                temp[j] = new DoubleToken(((double[]) object)[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.