Home
last modified time | relevance | path

Searched refs:determinant (Results 1 – 25 of 116) sorted by relevance

12345

/external/eigen/test/
Ddeterminant.cpp14 template<typename MatrixType> void determinant(const MatrixType& m) in determinant() function
27 VERIFY_IS_APPROX(MatrixType::Identity(size, size).determinant(), Scalar(1)); in determinant()
28 VERIFY_IS_APPROX((m1*m2).eval().determinant(), m1.determinant() * m2.determinant()); in determinant()
37 VERIFY_IS_APPROX(m2.determinant(), -m1.determinant()); in determinant()
40 VERIFY_IS_APPROX(m2.determinant(), -m1.determinant()); in determinant()
41 VERIFY_IS_APPROX(m2.determinant(), m2.transpose().determinant()); in determinant()
42 VERIFY_IS_APPROX(numext::conj(m2.determinant()), m2.adjoint().determinant()); in determinant()
45 VERIFY_IS_APPROX(m2.determinant(), m1.determinant()); in determinant()
48 VERIFY_IS_APPROX(m2.determinant(), m1.determinant() * x); in determinant()
51 VERIFY_IS_APPROX(m2.block(0,0,0,0).determinant(), Scalar(1)); in determinant()
[all …]
Dinverse.cpp56 VERIFY_IS_APPROX(det, m1.determinant()); in inverse()
68 VERIFY_IS_MUCH_SMALLER_THAN(abs(det-m3.determinant()), RealScalar(1)); in inverse()
/external/eigen/Eigen/src/LU/
DInverseImpl.h59 typename ResultType::Scalar& determinant,
64 determinant = matrix.coeff(0,0);
65 invertible = abs(determinant) > absDeterminantThreshold;
66 if(invertible) result.coeffRef(0,0) = typename ResultType::Scalar(1) / determinant;
93 const Scalar invdet = typename MatrixType::Scalar(1) / matrix.determinant();
106 typename ResultType::Scalar& determinant,
112 determinant = matrix.determinant();
113 invertible = abs(determinant) > absDeterminantThreshold;
115 const Scalar invdet = Scalar(1) / determinant;
180 typename ResultType::Scalar& determinant,
[all …]
DDeterminant.h41 return m.partialPivLu().determinant(); in run()
92 inline typename internal::traits<Derived>::Scalar MatrixBase<Derived>::determinant() const
/external/eigen/doc/snippets/
DMatrixBase_computeInverseAndDetWithCheck.cpp5 double determinant; variable
6 m.computeInverseAndDetWithCheck(inverse,determinant,invertible);
7 cout << "Its determinant is " << determinant << endl;
/external/deqp/framework/common/
DtcuMatrix.hpp132 T determinant (const Matrix<T, Size, Size>& mat) in determinant() function
167 using matrix::determinant; in doDeterminant()
193 return + mat(0,0) * determinant(Matrix<T, 3, 3>(minorMatrices[0])) in doDeterminant()
194 - mat(0,1) * determinant(Matrix<T, 3, 3>(minorMatrices[1])) in doDeterminant()
195 + mat(0,2) * determinant(Matrix<T, 3, 3>(minorMatrices[2])) in doDeterminant()
196 - mat(0,3) * determinant(Matrix<T, 3, 3>(minorMatrices[3])); in doDeterminant()
202 using matrix::determinant; in doInverse()
204 const T det = determinant(mat); in doInverse()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_LogMatrixDeterminant.pbtxt22 summary: "Computes the sign and the log of the absolute value of the determinant of"
29 `[..., :, :]` such that the determinant = sign*exp(log_abs_determinant).
Dapi_def_MatrixDeterminant.pbtxt15 summary: "Computes the determinant of one or more square matrices."
/external/eigen/Eigen/
DLU16 …his module includes %LU decomposition and related notions such as matrix inversion and determinant.
19 * - MatrixBase::determinant()
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DCholeskyDecompositionImpl.java177 double determinant = 1.0; in getDeterminant() local
180 determinant *= lTii * lTii; in getDeterminant()
182 return determinant; in getDeterminant()
DFieldLUDecompositionImpl.java209 T determinant = even ? field.getOne() : field.getZero().subtract(field.getOne()); in getDeterminant() local
211 determinant = determinant.multiply(lu[i][i]); in getDeterminant()
213 return determinant; in getDeterminant()
DLUDecompositionImpl.java218 double determinant = even ? 1 : -1; in getDeterminant() local
220 determinant *= lu[i][i]; in getDeterminant()
222 return determinant; in getDeterminant()
/external/deqp/external/openglcts/modules/glesext/tessellation_shader/
DesextcTessellationShaderVertexOrdering.cpp609 float determinant = 0.0f; in verifyVertexOrderingCorrectness() local
615 determinant += (cartesian_vertex_data[n_vertex * 2 /* components */ + 0] * in verifyVertexOrderingCorrectness()
621 determinant *= 0.5f; in verifyVertexOrderingCorrectness()
626 determinant < 0.0f) || in verifyVertexOrderingCorrectness()
627 … (test_iteration.vertex_ordering == TESSELLATION_SHADER_VERTEX_ORDERING_CW && determinant >= 0.0f)) in verifyVertexOrderingCorrectness()
/external/swiftshader/third_party/LLVM/test/Transforms/InstCombine/
D2006-12-08-Select-ICmp.ll32 …%tmp13 = call i32 @determinant( i64 %tmp.upgrd.3, i64 %tmp9, i64 %tmp12 ) ; <i32> [#uses=2]
40 declare i32 @determinant(i64, i64, i64)
D2006-12-08-Phi-ICmp-Op-Fold.ll33 %tmp13 = call i32 @determinant( i64 %tmp.upgrd.3, i64 %tmp9, i64 %tmp12 ) ; <i32> [#uses=2]
51 declare i32 @determinant(i64, i64, i64)
/external/eigen/Eigen/src/Geometry/
DUmeyama.h139 if ( svd.matrixU().determinant() * svd.matrixV().determinant() < 0 )
/external/llvm/test/Transforms/InstCombine/
D2006-12-08-Select-ICmp.ll33 …%tmp13 = call i32 @determinant( i64 %tmp.upgrd.3, i64 %tmp9, i64 %tmp12 ) ; <i32> [#uses=2]
41 declare i32 @determinant(i64, i64, i64)
D2006-12-08-Phi-ICmp-Op-Fold.ll33 %tmp13 = call i32 @determinant( i64 %tmp.upgrd.3, i64 %tmp9, i64 %tmp12 ) ; <i32> [#uses=2]
51 declare i32 @determinant(i64, i64, i64)
/external/eigen/doc/
DTutorialLinearAlgebra.dox162 \section TutorialLinAlgInverse Computing inverse and determinant
164 First of all, make sure that you really want this. While inverse and determinant are fundamental ma…
166 advantageously replaced by solve() operations, and the determinant is often \em not a good way of c…
169 However, for \em very \em small matrices, the above is not true, and inverse and determinant can be…
171 While certain decompositions, such as PartialPivLU and FullPivLU, offer inverse() and determinant()…
172 call inverse() and determinant() directly on a matrix. If your matrix is of a very small fixed size…
/external/skqp/tests/
DMatrix44Test.cpp315 REPORTER_ASSERT(reporter, nearly_equal_double(1, a.determinant())); in test_determinant()
317 REPORTER_ASSERT(reporter, nearly_equal_double(2, a.determinant())); in test_determinant()
320 REPORTER_ASSERT(reporter, nearly_equal_double(0.5, b.determinant())); in test_determinant()
325 nearly_equal_double(a.determinant(), in test_determinant()
326 b.determinant())); in test_determinant()
329 REPORTER_ASSERT(reporter, nearly_equal_double(16, d.determinant())); in test_determinant()
333 REPORTER_ASSERT(reporter, nearly_equal_double(32, e.determinant())); in test_determinant()
335 REPORTER_ASSERT(reporter, nearly_equal_double(0, e.determinant())); in test_determinant()
/external/skia/tests/
DMatrix44Test.cpp315 REPORTER_ASSERT(reporter, nearly_equal_double(1, a.determinant())); in test_determinant()
317 REPORTER_ASSERT(reporter, nearly_equal_double(2, a.determinant())); in test_determinant()
320 REPORTER_ASSERT(reporter, nearly_equal_double(0.5, b.determinant())); in test_determinant()
325 nearly_equal_double(a.determinant(), in test_determinant()
326 b.determinant())); in test_determinant()
329 REPORTER_ASSERT(reporter, nearly_equal_double(16, d.determinant())); in test_determinant()
333 REPORTER_ASSERT(reporter, nearly_equal_double(32, e.determinant())); in test_determinant()
335 REPORTER_ASSERT(reporter, nearly_equal_double(0, e.determinant())); in test_determinant()
/external/tensorflow/tensorflow/python/ops/linalg/
Dlinear_operator_composition.py250 result = self.operators[0].determinant()
252 result *= operator.determinant()
/external/ImageMagick/MagickCore/
Ddistort.c98 double determinant; in InvertAffineCoefficients() local
100 determinant=PerceptibleReciprocal(coeff[0]*coeff[4]-coeff[1]*coeff[3]); in InvertAffineCoefficients()
101 inverse[0]=determinant*coeff[4]; in InvertAffineCoefficients()
102 inverse[1]=determinant*(-coeff[1]); in InvertAffineCoefficients()
103 inverse[2]=determinant*(coeff[1]*coeff[5]-coeff[2]*coeff[4]); in InvertAffineCoefficients()
104 inverse[3]=determinant*(-coeff[3]); in InvertAffineCoefficients()
105 inverse[4]=determinant*coeff[0]; in InvertAffineCoefficients()
106 inverse[5]=determinant*(coeff[2]*coeff[3]-coeff[0]*coeff[5]); in InvertAffineCoefficients()
113 double determinant; in InvertPerspectiveCoefficients() local
115 determinant=PerceptibleReciprocal(coeff[0]*coeff[4]-coeff[3]*coeff[1]); in InvertPerspectiveCoefficients()
[all …]
/external/eigen/doc/examples/
DTutorialLinAlgInverseDeterminant.cpp14 cout << "The determinant of A is " << A.determinant() << endl; in main()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderMatrixTests.cpp647 float determinant (const tcu::Matrix<float, Size, Size>& mat);
650 float determinant<2> (const tcu::Matrix<float, 2, 2>& mat) in determinant() function
656 float determinant<3> (const tcu::Matrix<float, 3, 3>& mat) in determinant() function
667 float determinant<4> (const tcu::Matrix<float, 4, 4>& mat) in determinant() function
693 return + mat(0,0) * determinant(tcu::Mat3(minorMatrices[0])) in determinant()
694 - mat(0,1) * determinant(tcu::Mat3(minorMatrices[1])) in determinant()
695 + mat(0,2) * determinant(tcu::Mat3(minorMatrices[2])) in determinant()
696 - mat(0,3) * determinant(tcu::Mat3(minorMatrices[3])); in determinant()
707 const float det = determinant(mat); in inverse()
725 DE_ASSERT(determinant(mat) != 0.0f); in inverse()
[all …]

12345