Home
last modified time | relevance | path

Searched refs:dotProduct (Results 1 – 20 of 20) sorted by relevance

/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DArrayFieldVector.java555 public T dotProduct(FieldVector<T> v) in dotProduct() method in ArrayFieldVector
558 return dotProduct((ArrayFieldVector<T>) v); in dotProduct()
570 public T dotProduct(T[] v) in dotProduct() method in ArrayFieldVector
586 public T dotProduct(ArrayFieldVector<T> v) in dotProduct() method in ArrayFieldVector
588 return dotProduct(v.data); in dotProduct()
593 return v.mapMultiply(dotProduct(v).divide(v.dotProduct(v))); in projection()
607 return (ArrayFieldVector<T>) v.mapMultiply(dotProduct(v).divide(v.dotProduct(v))); in projection()
DArrayRealVector.java684 public double dotProduct(RealVector v) in dotProduct() method in ArrayRealVector
687 return dotProduct((ArrayRealVector) v); in dotProduct()
702 public double dotProduct(double[] v) in dotProduct() method in ArrayRealVector
718 public double dotProduct(ArrayRealVector v) in dotProduct() method in ArrayRealVector
720 return dotProduct(v.data); in dotProduct()
919 return v.mapMultiply(dotProduct(v) / v.dotProduct(v)); in projection()
934 return (ArrayRealVector) v.mapMultiply(dotProduct(v) / v.dotProduct(v)); in projection()
DQRDecompositionImpl.java309 double dotProduct = 0; in solve() local
311 dotProduct += y[row] * qrtMinor[row]; in solve()
313 dotProduct /= rDiag[minor] * qrtMinor[minor]; in solve()
316 y[row] += dotProduct * qrtMinor[row]; in solve()
DFieldVector.java213 T dotProduct(FieldVector<T> v) in dotProduct() method
222 T dotProduct(T[] v) in dotProduct() method
DOpenMapRealVector.java301 public double dotProduct(OpenMapRealVector v) throws IllegalArgumentException { in dotProduct() method in OpenMapRealVector
316 public double dotProduct(RealVector v) throws IllegalArgumentException {
318 return dotProduct((OpenMapRealVector)v);
320 return super.dotProduct(v);
630 return v.mapMultiply(dotProduct(v) / v.dotProduct(v));
DRealVector.java717 double dotProduct(RealVector v); in dotProduct() method
726 double dotProduct(double[] v); in dotProduct() method
DSparseFieldVector.java214 public T dotProduct(FieldVector<T> v) throws IllegalArgumentException { in dotProduct() method in SparseFieldVector
226 public T dotProduct(T[] v) throws IllegalArgumentException { in dotProduct() method in SparseFieldVector
452 return v.mapMultiply(dotProduct(v).divide(v.dotProduct(v))); in projection()
DAbstractRealVector.java170 public double dotProduct(double[] v) throws IllegalArgumentException { in dotProduct() method in AbstractRealVector
171 return dotProduct(new ArrayRealVector(v, false)); in dotProduct()
175 public double dotProduct(RealVector v) throws IllegalArgumentException { in dotProduct() method in AbstractRealVector
DEigenDecompositionImpl.java304 final double s = v.dotProduct(b) / realEigenvalues[i]; in solve()
346 final double s = v.dotProduct(b) / realEigenvalues[i]; in solve()
DSingularValueDecompositionImpl.java149 double product=matrix.operate(cachedV.getColumnVector(i)).dotProduct(tmp); in SingularValueDecompositionImpl()
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/
DLinearObjectiveFunction.java92 return coefficients.dotProduct(point) + constantTerm; in getValue()
101 return coefficients.dotProduct(point) + constantTerm; in getValue()
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/general/
DNonLinearConjugateGradientOptimizer.java283 double dotProduct = 0; in value() local
285 dotProduct += gradient[i] * searchDirection[i]; in value()
288 return dotProduct; in value()
/external/apache-commons-math/src/main/java/org/apache/commons/math/geometry/
DRotation.java316 double u1u1 = Vector3D.dotProduct(u1, u1); in Rotation()
317 double u2u2 = Vector3D.dotProduct(u2, u2); in Rotation()
318 double v1v1 = Vector3D.dotProduct(v1, v1); in Rotation()
319 double v2v2 = Vector3D.dotProduct(v2, v2); in Rotation()
340 double u1u2 = Vector3D.dotProduct(u1, u2); in Rotation()
341 double v1v2 = Vector3D.dotProduct(v1, v2); in Rotation()
430 c = Vector3D.dotProduct(k, k); in Rotation()
431 q0 = Vector3D.dotProduct(vRef, k) / (c + c); in Rotation()
455 double dot = Vector3D.dotProduct(u, v); in Rotation()
DVector3D.java345 double dot = dotProduct(v1, v2); in angle()
451 public static double dotProduct(Vector3D v1, Vector3D v2) { in dotProduct() method in Vector3D
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/regression/
DGLSMultipleLinearRegression.java131 double t = residuals.dotProduct(getOmegaInverse().operate(residuals)); in calculateErrorVariance()
DOLSMultipleLinearRegression.java150 return residuals.dotProduct(residuals); in calculateResidualSumOfSquares()
DAbstractMultipleLinearRegression.java347 return residuals.dotProduct(residuals) / in calculateErrorVariance()
/external/deqp/framework/referencerenderer/
DrrRasterizer.cpp213 const deInt64 dotProduct = dot(v, cornerExitNormal); in lineInCornerAngleRange() local
216 if (dotProduct < 0) in lineInCornerAngleRange()
218 return 2 * dotProduct * dotProduct > tcu::lengthSquared(v)*tcu::lengthSquared(cornerExitNormal); in lineInCornerAngleRange()
226 const deInt64 dotProduct = dot(v, cornerExitNormal); in lineInCornerOutsideAngleRange() local
229 if (dotProduct >= 0) in lineInCornerOutsideAngleRange()
231 …return 2 * (-dotProduct) * (-dotProduct) < tcu::lengthSquared(v)*tcu::lengthSquared(cornerExitNorm… in lineInCornerOutsideAngleRange()
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/interpolation/
DMicrosphereInterpolatingFunction.java241 return v.dotProduct(w) / (v.getNorm() * w.getNorm()); in cosAngle()
/external/angle/src/compiler/translator/
DIntermNode.cpp3568 float dotProduct = VectorDotProduct(unionArrays[1], unionArrays[0], maxObjectSize); in FoldAggregateBuiltIn() local
3572 2.0f * dotProduct * unionArrays[1][i].getFConst(); in FoldAggregateBuiltIn()
3793 float dotProduct = VectorDotProduct(unionArrays[2], unionArrays[1], maxObjectSize); in FoldAggregateBuiltIn() local
3796 if (dotProduct < 0) in FoldAggregateBuiltIn()
3817 float dotProduct = VectorDotProduct(unionArrays[1], unionArrays[0], maxObjectSize); in FoldAggregateBuiltIn() local
3821 float k = 1.0f - eta * eta * (1.0f - dotProduct * dotProduct); in FoldAggregateBuiltIn()
3826 (eta * dotProduct + sqrtf(k)) * in FoldAggregateBuiltIn()