Examples of transpose()


Examples of Jama.Matrix.transpose()

   
   
    System.out.println("cCarriersToCancelledDegrees gram schmidt");
    cCarriersToCancelledDegrees.print(15, 15);
   
    return cCarriersToCancelledDegrees.transpose();
  }
 
  private static double[] createWeightings(int[] cCarriers)
  {
    double[] weightings = new double[cCarriers.length];
View Full Code Here

Examples of com.googlecode.gwtgl.example.client.util.math.FloatMatrix4x4.transpose()

    webGLWrapper.uniform3f(shaderProgram
        .getUniformLocation("directionalColor"), directionalColorRed,
        directionalColorGreen, directionalColorBlue);

    FloatMatrix4x4 normalMatrix = rotationMatrix.inverse();
    normalMatrix = normalMatrix.transpose();
    webGLWrapper.uniformMatrix4fv(shaderProgram
        .getUniformLocation("normalMatrix"), false, normalMatrix
        .getColumnWiseFlatData());

    checkErrors();
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.rendering.math.FloatMatrix4x4.transpose()

    GL20.glUniform3f(uAmbientColorUniform, ambientColorRed, ambientColorGreen, ambientColorBlue);   
    GL20.glUniform3f(uDirectionalColorUniform, directionalColorRed, directionalColorGreen, directionalColorBlue)

    //Normal matrix to adjust the directional light depending upon rotation
    FloatMatrix4x4 normalMatrix = ((FloatMatrix4x4)rotationMatrix).inverse();
    normalMatrix = normalMatrix.transpose();
    float[] normalMatrixData = normalMatrix.getColumnWiseFlatData();
    normalMatrixBuffer.position(0);
    normalMatrixBuffer.put(normalMatrixData);
    normalMatrixBuffer.position(0);
View Full Code Here

Examples of com.numb3r3.common.math.Matrix.transpose()

        double part2 = Math.pow(det, -0.5);

        Matrix dev = value.sub(mu);

        double part3 = Math.exp(-0.5
                * (dev.transpose().product(cox.inverse())).dot(dev));
        return part1 * part2 * part3;

    }

    public static double mphi(Matrix value, Matrix mu, Matrix cox, Matrix inv) {
View Full Code Here

Examples of com.spatial4j.core.shape.SpatialRelation.transpose()

    Rectangle rectangle = ctx.makeRectangle(cx - w, cx + w, cy - h, cy + h);
    SpatialRelation v = shape.relate(rectangle);
    if (SpatialRelation.CONTAINS == v) {
      str.append(c);
      //str.append(SpatialPrefixGrid.COVER);
      matches.add(new QuadCell(str.toString(),v.transpose()));
    } else if (SpatialRelation.DISJOINT == v) {
      // nothing
    } else { // SpatialRelation.WITHIN, SpatialRelation.INTERSECTS
      str.append(c);
View Full Code Here

Examples of com.spatial4j.core.shape.SpatialRelation.transpose()

      str.append(c);

      int nextLevel = level+1;
      if (nextLevel >= maxLevel) {
        //str.append(SpatialPrefixGrid.INTERSECTS);
        matches.add(new QuadCell(str.toString(),v.transpose()));
      } else {
        build(cx, cy, nextLevel, matches, str, shape, maxLevel);
      }
    }
    str.setLength(strlen);
View Full Code Here

Examples of com.spatial4j.core.shape.SpatialRelation.transpose()

    Rectangle rectangle = ctx.makeRectangle(cx - w, cx + w, cy - h, cy + h);
    SpatialRelation v = shape.relate(rectangle);
    if (SpatialRelation.CONTAINS == v) {
      str.append(c);
      //str.append(SpatialPrefixGrid.COVER);
      matches.add(new QuadCell(str.toString(),v.transpose()));
    } else if (SpatialRelation.DISJOINT == v) {
      // nothing
    } else { // SpatialRelation.WITHIN, SpatialRelation.INTERSECTS
      str.append(c);
View Full Code Here

Examples of com.spatial4j.core.shape.SpatialRelation.transpose()

      str.append(c);

      int nextLevel = level+1;
      if (nextLevel >= maxLevel) {
        //str.append(SpatialPrefixGrid.INTERSECTS);
        matches.add(new QuadCell(str.toString(),v.transpose()));
      } else {
        build(cx, cy, nextLevel, matches, str, shape, maxLevel);
      }
    }
    str.setLength(strlen);
View Full Code Here

Examples of com.vividsolutions.jts.geom.IntersectionMatrix.transpose()

  public void runTests() {
    if (testCase.getGeometry(0) != null && testCase.getGeometry(1) != null) {
      IntersectionMatrix im = testCase.getIM();
      IntersectionMatrix imBA = new IntersectionMatrix(im);
      //IntersectionMatrix expectedIm = new IntersectionMatrix(expectedImTextField.getText());
      imBA.transpose();
      setRelateLabel(relateII, im.get(Location.INTERIOR, Location.INTERIOR));
      setRelateLabel(relateIB, im.get(Location.INTERIOR, Location.BOUNDARY));
      setRelateLabel(relateIE, im.get(Location.INTERIOR, Location.EXTERIOR));
      setRelateLabel(relateBI, im.get(Location.BOUNDARY, Location.INTERIOR));
      setRelateLabel(relateBB, im.get(Location.BOUNDARY, Location.BOUNDARY));
View Full Code Here

Examples of de.jungblut.math.DoubleMatrix.transpose()

      y = new SparseDoubleRowMatrix(outcome);
    } else {
      y = new DenseDoubleMatrix(outcome);
    }
    // transpose y to get a faster lookup in the cost function
    y = y.transpose();

    LogisticRegressionCostFunction cnf = new LogisticRegressionCostFunction(x,
        y, lambda);

    // random init theta
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.