Package org.renjin.primitives.vector

Examples of org.renjin.primitives.vector.ConstantDoubleVector


    } else if ("integer".equals(mode)) {
      return new IntArrayVector(new int[length]);

    } else if ("numeric".equals(mode) || "double".equals(mode)) {
      return new ConstantDoubleVector(0, length);

    } else if ("complex".equals(mode)) {
      throw new UnsupportedOperationException("implement me!");

    } else if ("character".equals(mode)) {
View Full Code Here


     */
    int resultLength = (nrow * ncol);
    if(!byRow && resultLength > 500) {
      if(data instanceof DoubleVector) {
        if(data.length() == 1) {
          return new ConstantDoubleVector(data.getElementAsDouble(0), resultLength, attributes);
        } else {
          return new RepDoubleVector(data, resultLength, 1, attributes);
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.renjin.primitives.vector.ConstantDoubleVector

Copyright © 2018 www.massapicom. 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.