Examples of inverse()


Examples of com.nr.la.LUdcmp.inverse()

     
    }

    // Test inverse
    double[][] ainv; // = buildMatrix(a); not need it
    ainv = alu.inverse();
    sbeps = 5.e-15;
    localflag = maxel(matsub(matmul(ainv,a),ident(a.length,1.))) > sbeps;
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** ludcmp: Test of inverse failed");
View Full Code Here

Examples of com.volantis.mcs.protocols.vdxml.style.values.VDXMLBinaryValue.inverse()

                    // be the inverse of the parent value.
                    VDXMLBinaryValue currentReverseVideo = (VDXMLBinaryValue)
                            current.getReverseVideo().getValue();
                    canonical.setReverseVideo(
                            new VDXMLReverseVideoStyleProperty(
                                    currentReverseVideo.inverse()));
                }

                // Save away the styles we are using for the end call so child
                // elements can use these values to re-establish non-boolean
                // styles which they changed.
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.math.linearalgebra.Matrix.inverse()

    assert (E.getRowDimensionality() == E.getColumnDimensionality());
    for(int col = 0; col < E.getColumnDimensionality(); col++) {
      assert (E.get(col, col) == 0.0);
      E.set(col, col, 1.0);
    }
    E = E.inverse().timesEquals(1 - c);

    // Split the matrix into columns
    for(int i = 0; i < ids.size(); i++) {
      DBID id = ids.get(i);
      // Note: matrix times ith unit vector = ith column
View Full Code Here

Examples of flanagan.math.Matrix.inverse()

                kk++;
            }

            // invert the above calculated matrix
            Matrix mat = new Matrix(this.weights);
            mat = mat.inverse();
            this.weights = mat.getArrayCopy();
        }


        // Calculate the derivatives
View Full Code Here

Examples of gov.sandia.cognition.math.matrix.Matrix.inverse()

      final Matrix newComponentPriorPredPrecision =
          centeringDist.getInverseWishart().getInverseScale()
              .scale(2d * (kappa + 1d) / (kappa * newComponentPriorPredDof));
      final MultivariateStudentTDistribution newComponentPriorPred =
          new MultivariateStudentTDistribution(newComponentPriorPredDof, centeringDist
              .getGaussian().getMean(), newComponentPriorPredPrecision.inverse());

      final double newComponentLogLikelihood =
          Math.log(particle.getAlpha()) - Math.log(particle.getAlpha() + particle.getIndex())
              + newComponentPriorPred.getProbabilityFunction().logEvaluate(observation);
      componentPriorPredLogLikelihoods[0] = newComponentLogLikelihood;
View Full Code Here

Examples of javax.measure.converter.UnitConverter.inverse()

            final double expected, final Unit<Q> unitExpected,
            final double actual,   final Unit<Q> unitActual)
    {
        UnitConverter converter = unitActual.getConverterTo(unitExpected);
        assertEquals(expected, converter.convert(actual), 1E-6);
        converter = converter.inverse();
        assertEquals(actual, converter.convert(expected), 1E-6);
    }

    /**
     * Checks the conversions using {@link Units#SEXAGESIMAL_DMS}.
View Full Code Here

Examples of javax.measure.converter.UnitConverter.inverse()

        UnitConverter candidate = INTEGER;
        for (int i=0; i<4; i++) {
            switch (i) {
                case 0break; // Do nothing since candidate is already set to INTEGER.
                case 1// Fallthrough
                case 3:  candidate = candidate.inverse(); break;
                case 2:  candidate = FRACTIONAL; break;
            }
            if (equals(candidate)) {
                return candidate;
            }
View Full Code Here

Examples of javax.vecmath.Quat4f.inverse()

        LocationComponent parentLoc = parent.getComponent(LocationComponent.class);
        if (parentLoc != null) {
            this.position.sub(parentLoc.getWorldPosition());
            this.position.scale(1f / parentLoc.getWorldScale());
            Quat4f rot = new Quat4f(0, 0, 0, 1);
            rot.inverse(parentLoc.getWorldRotation());
            QuaternionUtil.quatRotate(rot, this.position, this.position);
        }
    }

    public void setWorldRotation(Quat4f value) {
View Full Code Here

Examples of jm.audio.math.RealFloatFFT_Radix2.inverse()

     *
     */
    public int work(float[] buffer) throws AOException {
        int returned = this.previous[0].nextWork(buffer);
        RealFloatFFT_Radix2 fft = new RealFloatFFT_Radix2(returned);
        fft.inverse(buffer);
        return returned;
    }
}
View Full Code Here

Examples of mikera.matrixx.AMatrix.inverse()

  }
 
  public void timeMatrixInverse(int runs) {
    AMatrix m=Matrixx.createRandomSquareMatrix(5);
    for (int i=0; i<runs; i++) {
      m=m.inverse();
    }
  }
 
  /**
   * @param args
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.