Examples of mult()


Examples of cern.colt.matrix.linalg.Algebra.mult()

                .rows(), temp.columns());
        int numVertices = stationaryDistribution.size();
        for (int i = 0; i < numVertices; i++)
            stationaryMatrixDiagonal.set(i, i, 1.0 / stationaryDistribution
                    .get(i));
        DoubleMatrix2D meanFirstPassageMatrix = algebra.mult(temp,
                stationaryMatrixDiagonal);
        return meanFirstPassageMatrix;
    }
}
View Full Code Here

Examples of cern.jet.math.Functions.mult()

      Functions F = Functions.functions;    // alias F
      // B <-- B/2^s
      double v = 1.0 / Math.pow(2.0, s);
      if (v <= 0)
          throw new IllegalArgumentException ("   v <= 0");
      B.assign (F.mult(v));

      DoubleFactory2D fac = DoubleFactory2D.dense;
      final DoubleMatrix2D B0 = fac.identity(n);    // B^0 = I
      final DoubleMatrix2D B2 = alge.mult(B, B);    // B^2
      final DoubleMatrix2D B4 = alge.mult(B2, B2)// B^4
View Full Code Here

Examples of ch.akuhn.matrix.Matrix.mult()

   
    assertEquals(-1, eigen.value[0], epsilon);
    assertEquals(1, eigen.value[1], epsilon);
    assertEquals(2, eigen.value[2], epsilon);

    assert A.mult(eigen.vector[0]).equals(eigen.vector[0].times(eigen.value[0]), epsilon);
    assert A.mult(eigen.vector[1]).equals(eigen.vector[1].times(eigen.value[1]), epsilon);
    assert A.mult(eigen.vector[2]).equals(eigen.vector[2].times(eigen.value[2]), epsilon);
  }
 
  @Test
View Full Code Here

Examples of ch.akuhn.matrix.Matrix.mult()

    assertEquals(-1, eigen.value[0], epsilon);
    assertEquals(1, eigen.value[1], epsilon);
    assertEquals(2, eigen.value[2], epsilon);

    assert A.mult(eigen.vector[0]).equals(eigen.vector[0].times(eigen.value[0]), epsilon);
    assert A.mult(eigen.vector[1]).equals(eigen.vector[1].times(eigen.value[1]), epsilon);
    assert A.mult(eigen.vector[2]).equals(eigen.vector[2].times(eigen.value[2]), epsilon);
  }
 
  @Test
  public void shouldReturnLargest() {
View Full Code Here

Examples of ch.akuhn.matrix.Matrix.mult()

    assertEquals(1, eigen.value[1], epsilon);
    assertEquals(2, eigen.value[2], epsilon);

    assert A.mult(eigen.vector[0]).equals(eigen.vector[0].times(eigen.value[0]), epsilon);
    assert A.mult(eigen.vector[1]).equals(eigen.vector[1].times(eigen.value[1]), epsilon);
    assert A.mult(eigen.vector[2]).equals(eigen.vector[2].times(eigen.value[2]), epsilon);
  }
 
  @Test
  public void shouldReturnLargest() {
    Matrix A = Matrix.dense(10, 10);
View Full Code Here

Examples of civquest.map.resource.ResourceSet.mult()

      Field.Height heightLevel = fieldReader.getHeightLevel(pos);
      String vegetation = fieldReader.getVegetationName(pos);
      long population = fieldReader.getPopulation(pos);

      ResourceSet resources = getBasicAmount(heightLevel, vegetation);
      resources = resources.mult(population);

      return resources;
    }
  }
View Full Code Here

Examples of com.barchart.feed.base.values.api.PriceValue.mult()

     
      PriceValue newPrice = priceFirst.freeze();
      PriceValue newStep = priceStep.freeze();
     
      result.add(new DefCuvolEntry(counter,
          newPrice.add(newStep.mult(counter)), size));
     
      counter++;
    }
     
   
View Full Code Here

Examples of com.barchart.util.values.api.PriceValue.mult()

     
      PriceValue newPrice = priceFirst.freeze();
      PriceValue newStep = priceStep.freeze();
     
      result.add(new DefCuvolEntry(counter,
          newPrice.add(newStep.mult(counter)), size));
     
      counter++;
    }
     
   
View Full Code Here

Examples of com.jme.math.Matrix4f.mult()

  Vector3f dragEye = new Vector3f();
  Vector3f dragStartEye = new Vector3f();
  Vector3f pressEye = new Vector3f();
  Vector3f eyeEye = new Vector3f();
  Vector3f thisEye = new Vector3f();
  camInverse.mult(dragWorld, dragEye);
  camInverse.mult(dragStartWorld, dragStartEye);
  camInverse.mult(pressWorld, pressEye);
  // TODO: perf: only really need to recalc eyeEye on camera change
  camInverse.mult(eyeWorld, eyeEye);
  camInverse.mult(thisWorld, thisEye);
View Full Code Here

Examples of com.jme.math.Matrix4f.mult()

  Vector3f dragStartEye = new Vector3f();
  Vector3f pressEye = new Vector3f();
  Vector3f eyeEye = new Vector3f();
  Vector3f thisEye = new Vector3f();
  camInverse.mult(dragWorld, dragEye);
  camInverse.mult(dragStartWorld, dragStartEye);
  camInverse.mult(pressWorld, pressEye);
  // TODO: perf: only really need to recalc eyeEye on camera change
  camInverse.mult(eyeWorld, eyeEye);
  camInverse.mult(thisWorld, thisEye);
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.