Examples of rows()


Examples of org.apache.mahout.math.matrix.impl.DenseDoubleMatrix2D.rows()

            }
        }

        // Convert stemsToInclude into tdMatrixStemIndices
        final IntIntOpenHashMap stemToRowIndex = new IntIntOpenHashMap();
        for (int i = 0; i < stemWeightOrder.length && i < tdMatrix.rows(); i++)
        {
            stemToRowIndex.put(stemsToInclude[stemWeightOrder[i]], i);
        }

        // Store the results
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowInForm.rows()

          if (annotation.type() == AttributeImplementationType.TEXTAREA || annotation.type() == AttributeImplementationType.FORMATTEDTEXTAREA)
          {
            if (annotation.columns() == 0)
              throw new MissingColumnsException(beanName, fields[j].getName());

            if (annotation.rows() == 0)
              throw new MissingRowsException(beanName, fields[j].getName());

            attr.setColumns(annotation.columns());
            attr.setRows(annotation.rows());
          }
View Full Code Here

Examples of org.boris.expr.ExprArray.rows()

        if (arg instanceof ExprDouble || arg instanceof ExprInteger) {
            return 1;
        } else if (arg instanceof ExprArray) {
            int count = 0;
            ExprArray arr = (ExprArray) arg;
            int rows = arr.rows();
            int cols = arr.columns();
            for (int i = 0; i < rows; i++) {
                for (int j = 0; j < cols; j++) {
                    count += count(arr.get(i, j), any);
                }
View Full Code Here

Examples of org.boris.expr.ExprArray.rows()

            return;
        }

        if (a instanceof ExprArray) {
            ExprArray arr = (ExprArray) a;
            int rows = arr.rows();
            int cols = arr.columns();
            for (int i = 0; i < rows; i++) {
                for (int j = 0; j < cols; j++) {
                    eval(arr.get(i, j), values, false);
                }
View Full Code Here

Examples of org.boris.expr.ExprArray.rows()

        if (arg instanceof ExprNumber) {
            return Math.pow(((ExprNumber) arg).doubleValue(), 2);
        } else if (arg instanceof ExprArray) {
            ExprArray a = (ExprArray) arg;
            int rows = a.rows();
            int cols = a.columns();
            double res = 0;
            for (int i = 0; i < rows; i++) {
                for (int j = 0; j < cols; j++) {
                    res += sumsq(a.get(i, j));
View Full Code Here

Examples of org.boris.expr.ExprArray.rows()

{
    public Expr evaluate(Expr[] args) throws ExprException {
        assertArgCount(args, 1);

        ExprArray arr = new ExprArray(4, 4);
        for (int i = 0; i < arr.rows(); i++) {
            for (int j = 0; j < arr.columns(); j++) {
                arr.set(i, j, new ExprDouble((i + 1) * (j + 1)));
            }
        }
        return arr;
View Full Code Here

Examples of org.boris.expr.ExprArray.rows()

        if (a instanceof ExprMissing)
            return true;

        if (a instanceof ExprArray) {
            ExprArray arr = (ExprArray) a;
            int rows = arr.rows();
            int cols = arr.columns();
            for (int i = 0; i < rows; i++) {
                for (int j = 0; j < cols; j++) {
                    if (!eval(arr.get(i, j), false))
                        return false;
View Full Code Here

Examples of org.boris.expr.ExprArray.rows()

        if (arg instanceof ExprNumber) {
            return ((ExprNumber) arg).doubleValue();
        } else if (arg instanceof ExprArray) {
            ExprArray a = (ExprArray) arg;
            int rows = a.rows();
            int cols = a.columns();
            double res = 0;
            for (int i = 0; i < rows; i++) {
                for (int j = 0; j < cols; j++) {
                    res += sum(a.get(i, j));
View Full Code Here

Examples of org.boris.expr.ExprArray.rows()

        if (arg instanceof ExprMissing) {
            return 1;
        } else if (arg instanceof ExprArray) {
            int count = 0;
            ExprArray arr = (ExprArray) arg;
            int rows = arr.rows();
            int cols = arr.columns();
            for (int i = 0; i < rows; i++) {
                for (int j = 0; j < cols; j++) {
                    count += count(arr.get(i, j));
                }
View Full Code Here

Examples of org.boris.expr.ExprArray.rows()

        if (a instanceof ExprMissing)
            return false;

        if (a instanceof ExprArray) {
            ExprArray arr = (ExprArray) a;
            int rows = arr.rows();
            int cols = arr.columns();
            for (int i = 0; i < rows; i++) {
                for (int j = 0; j < cols; j++) {
                    if (eval(arr.get(i, j), false))
                        return true;
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.