Examples of left()


Examples of cc.redberry.core.tensor.Expression.left()

    @Override
    public Tensor transform(Tensor tensor) {
        if (tensor instanceof Expression) {
            Expression e = (Expression) tensor;
            return new Expression(transform(e.left()), e.right());
        }
        return transform(tensor, createIndexGenerator(tensor), indices);
    }
}
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.ui.Table.left()

  private Table buildTopPanel( NinePatchDrawable back, float width, float height ) {

    Table p = ResourceFactory.newTable();
    p.setSize( width, 155 );
    p.defaults().pad( 5, 25, 5, 0 ).align( Align.top );
    p.left();
    p.setBackground( back );

    return p;
  }
View Full Code Here

Examples of com.fasterxml.storemate.store.util.BytesToStuff.left()

            reader.skip(externalPathLength);
        } else { // inline, should have data there
            reader.skip((int) storageLength);
        }
        // and finally, should all add up...
        int left = reader.left();
        if (left > 0) {
            throw new IllegalArgumentException("Had "+left+" bytes left after decoding entry (out of "
                    +raw.length+")");
        }
        return new Storable(key, ByteContainer.simple(raw, offset, length),
View Full Code Here

Examples of com.google.gwt.safecss.shared.SafeStylesBuilder.left()

        final SafeStylesBuilder ssb = new SafeStylesBuilder();
        if (isRTL) {
            ssb.right(HORIZONTAL_OFFSET, Style.Unit.PX);
        } else {
            ssb.left(HORIZONTAL_OFFSET, Style.Unit.PX);
        }
        ssb.top(VERTICAL_OFFSET, Style.Unit.PX);

        if (isMultiple) {
            containerTemp.html(ChozenTemplate.templates.contentMultiple(css.chznChoices(),
View Full Code Here

Examples of com.googlecode.gaal.suffix.api.IntervalTree.Interval.left()

        while (iterator.hasNext()) {
            Interval node = iterator.next();
            Integer style = styleMap.get(node);
            if (style != null) {
                NodeStyle nodeStyle = TikzConstants.CELL_STYLES[style];
                for (int i = node.left(); i <= node.right(); i++) {
                    IntSequence subSequence = sequence.subSequence(suffixTable[i], suffixTable[i] + node.lcp());
                    for (int j = 0; j < subSequence.size(); j++) {
                        if (!usedCells[i][j]) {
                            usedCells[i][j] = true;
                            drawing.drawCell(i, j, symbolTable.toToken(subSequence.get(j)).toString(), nodeStyle);
View Full Code Here

Examples of com.googlecode.gaal.suffix.api.IntervalTree.Interval.left()

            children.add(iterator.next());
        int n = children.size();

        for (int i = 1; i < n; i++) {
            Interval child = children.get(i);
            int lb = child.left();
            result[lb] = esa.getLcpTable()[lb] * esa.alphabetSize() + depth(i + 1, n);
        }
        for (Node child : children) {
            traverseDepths(child, result, esa);
        }
View Full Code Here

Examples of com.googlecode.gaal.suffix.api.IntervalTree.Interval.left()

    }

    @Test
    public void testGetTop() {
        Interval top = lst.top();
        assertTrue(top.left() == 0);
        assertTrue(top.right() == text.length - 1);
        assertTrue(top.lcp() == 0);
    }

    @Test
View Full Code Here

Examples of com.googlecode.gaal.suffix.api.IntervalTree.Interval.left()

    }

    @Test
    public void testTop() {
        Interval top = esa.top();
        assertTrue(top.left() == 0);
        assertTrue(top.right() == text.length - 1);
        assertTrue(top.lcp() == 0);
    }

    @Test
View Full Code Here

Examples of com.googlecode.gaal.suffix.api.IntervalTree.Interval.left()

            if (!(obj instanceof Interval))
                return false;
            Interval other = (Interval) obj;
            if (lcp != other.lcp())
                return false;
            if (left != other.left())
                return false;
            if (right != other.right())
                return false;
            return true;
        }
View Full Code Here

Examples of com.googlecode.gaal.suffix.api.IntervalTree.Interval.left()

                fail("right context not found");
            } else {
                NavigableSet<Integer> leftIndices = intervalIndices(leftInterval);
                int[] suffixTable = lst.getSuffixTable();
                expectedSet = new HashMultiset<IntSequence>();
                for (int i = rightInterval.left(); i <= rightInterval.right(); i++) {
                    int end = suffixTable[i];
                    Integer start = leftIndices.floor(end);
                    if (start != null && end - start < WINDOW_SIZE) {
                        IntSequence fillerSeq = lst.getSequence().subSequence(start, end);
                        boolean hasSpecial = false;
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.