Package org.renjin.primitives.matrix

Examples of org.renjin.primitives.matrix.TransposingMatrix


  @Test
  public void transposed() {

    DoubleArrayVector vector = new DoubleArrayVector(new double[] { 1,2,3,4,5,6,7,8,9,10,11,12 } ,
            AttributeMap.dim(4,3));
    TransposingMatrix t = new TransposingMatrix(vector, AttributeMap.dim(3,4));
    DeferredMean mean = new DeferredMean(t, AttributeMap.EMPTY);
    DeferredGraph graph = new DeferredGraph(mean);

    compute(graph);
  }
View Full Code Here


  @Test
  public void simplificationPreservesAttributes() {

   
    Vector x = new DoubleSequence(AttributeMap.builder().setDim(200,40).build(), 1, 1, 8000);
    TransposingMatrix xt = new TransposingMatrix(x, AttributeMap.builder().setDim(40,200).build());
   
    SimpleVectorPipeliner pipeliner = new SimpleVectorPipeliner();
   
    Vector xts = pipeliner.simplify(xt);
   
View Full Code Here

TOP

Related Classes of org.renjin.primitives.matrix.TransposingMatrix

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.