/external/swiftshader/src/Renderer/ |
D | Matrix.hpp | 24 struct Matrix struct 26 Matrix(); 27 Matrix(const int i); 28 Matrix(const float m[16]); 29 Matrix(const float m[4][4]); 30 Matrix(float m11, float m12, float m13, 33 Matrix(float m11, float m12, float m13, float m14, 37 Matrix(const Vector &v1, const Vector &v2, const Vector &v3); // Column vectors 39 Matrix &operator=(const Matrix &N); 44 static Matrix diag(float m11, float m22, float m33, float m44); [all …]
|
D | Matrix.cpp | 22 Matrix Matrix::diag(float m11, float m22, float m33, float m44) in diag() 24 return Matrix(m11, 0, 0, 0, in diag() 30 Matrix::operator float*() in operator float*() 35 Matrix Matrix::operator+() const in operator +() 40 Matrix Matrix::operator-() const in operator -() 42 const Matrix &M = *this; in operator -() 44 return Matrix(-M(1, 1), -M(1, 2), -M(1, 3), -M(1, 4), in operator -() 50 Matrix Matrix::operator!() const in operator !() 52 const Matrix &M = *this; in operator !() 53 Matrix I; in operator !() [all …]
|
/external/swiftshader/src/Device/ |
D | Matrix.hpp | 24 struct Matrix struct 26 Matrix(); 27 Matrix(const int i); 28 Matrix(const float m[16]); 29 Matrix(const float m[4][4]); 30 Matrix(float m11, float m12, float m13, 33 Matrix(float m11, float m12, float m13, float m14, 37 Matrix(const Vector &v1, const Vector &v2, const Vector &v3); // Column vectors 39 Matrix &operator=(const Matrix &N); 44 static Matrix diag(float m11, float m22, float m33, float m44); [all …]
|
D | Matrix.cpp | 22 Matrix Matrix::diag(float m11, float m22, float m33, float m44) in diag() 24 return Matrix(m11, 0, 0, 0, in diag() 30 Matrix::operator float*() in operator float*() 35 Matrix Matrix::operator+() const in operator +() 40 Matrix Matrix::operator-() const in operator -() 42 const Matrix &M = *this; in operator -() 44 return Matrix(-M(1, 1), -M(1, 2), -M(1, 3), -M(1, 4), in operator -() 50 Matrix Matrix::operator!() const in operator !() 52 const Matrix &M = *this; in operator !() 53 Matrix I; in operator !() [all …]
|
/external/deqp/framework/common/ |
D | tcuMatrix.hpp | 35 class Matrix class 48 Matrix (void); 49 explicit Matrix (const T& src); 50 explicit Matrix (const T src[Rows*Cols]); 51 Matrix (const Vector<T, Rows>& src); 52 Matrix (const Matrix<T, Rows, Cols>& src); 53 ~Matrix (void); 55 Matrix<T, Rows, Cols>& operator= (const Matrix<T, Rows, Cols>& src); 56 Matrix<T, Rows, Cols>& operator*= (const Matrix<T, Rows, Cols>& src); 82 Matrix<T, Rows0, Cols1> operator* (const Matrix<T, Rows0, Cols0>& a, const Matrix<T, Rows1, Cols1>&… [all …]
|
D | tcuMatrixUtil.hpp | 34 Matrix<T, Size+1, Size+1> translationMatrix (const Vector<T, Size>& translation); 37 Matrix<T, Cols, Rows> transpose (const Matrix<T, Rows, Cols>& mat); 40 Matrix<float, 2, 2> rotationMatrix (float radians); 41 Matrix<float, 2, 2> shearMatrix (const Vector<float, 2>& shear); 44 Matrix<float, 3, 3> rotationMatrixX (float radiansX); 45 Matrix<float, 3, 3> rotationMatrixY (float radiansY); 46 Matrix<float, 3, 3> rotationMatrixZ (float radiansZ); 52 inline Matrix<T, Len+1, Len+1> translationMatrix (const Vector<T, Len>& translation) in translationMatrix() 54 Matrix<T, Len+1, Len+1> res = Matrix<T, Len+1, Len+1>(); in translationMatrix() 61 inline Matrix<T, Cols, Rows> transpose (const Matrix<T, Rows, Cols>& mat) in transpose() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowMatrixTest.java | 6 import android.graphics.Matrix; 21 Matrix m = new Matrix(); in preOperationsAreStacked() 35 Matrix m = new Matrix(); in postOperationsAreQueued() 49 Matrix m = new Matrix(); in setOperationsOverride() 63 final Matrix matrix = new Matrix(); in set_shouldAddOpsToMatrix() 76 final Matrix matrix = new Matrix(); in setScale_shouldAddOpsToMatrix() 85 final Matrix matrix1 = new Matrix(); in set_shouldOverrideValues() 88 final Matrix matrix2 = new Matrix(); in set_shouldOverrideValues() 98 final Matrix matrix1 = new Matrix(); in set_whenNull_shouldReset() 101 final Matrix matrix2 = new Matrix(); in set_whenNull_shouldReset() [all …]
|
D | ShadowOpenGLMatrixTest.java | 7 import android.opengl.Matrix; 17 Matrix.multiplyMM(null, 0, new float[16], 0, new float[16], 0); in multiplyMM_failIfResIsNull() 22 Matrix.multiplyMM(new float[16], 0, null, 0, new float[16], 0); in multiplyMM_failIfLhsIsNull() 27 Matrix.multiplyMM(new float[16], 0, new float[16], 0, null, 0); in multiplyMM_failIfRhsIsNull() 32 Matrix.multiplyMM(new float[15], 0, new float[16], 0, new float[16], 0); in multiplyMM_failIfResIsSmall() 37 Matrix.multiplyMM(new float[16], 0, new float[15], 0, new float[16], 0); in multiplyMM_failIfLhsIsSmall() 42 Matrix.multiplyMM(new float[16], 0, new float[16], 0, new float[15], 0); in multiplyMM_failIfRhsIsSmall() 47 Matrix.multiplyMM(new float[32], 30, new float[16], 0, new float[16], 0); in multiplyMM_failIfResOffsetIsOutOfBounds() 52 Matrix.multiplyMM(new float[16], 0, new float[32], 30, new float[16], 0); in multiplyMM_failIfLhsOffsetIsOutOfBounds() 57 Matrix.multiplyMM(new float[16], 0, new float[16], 0, new float[32], 30); in multiplyMM_failIfRhsOffsetIsOutOfBounds() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | matrix_unittest.cc | 30 Matrix<float> lh_mat(*kValuesLeft, kNumRows, kNumCols); in TEST() 31 Matrix<float> rh_mat(*kValuesRight, kNumRows, kNumCols); in TEST() 32 Matrix<float> expected_result(*kValuesExpected, kNumRows, kNumCols); in TEST() 33 Matrix<float> actual_result(kNumRows, kNumCols); in TEST() 54 Matrix<int> lh_mat(*kValuesLeft, kNumRowsLeft, kNumColsLeft); in TEST() 55 Matrix<int> rh_mat(*kValuesRight, kNumRowsRight, kNumColsRight); in TEST() 56 Matrix<int> expected_result(*kValuesExpected, kNumRowsLeft, kNumColsRight); in TEST() 57 Matrix<int> actual_result(kNumRowsLeft, kNumColsRight); in TEST() 76 Matrix<float> initial_mat(*kValuesInitial, kNumInitialRows, kNumInitialCols); in TEST() 77 Matrix<float> expected_result( in TEST() [all …]
|
D | matrix.h | 65 class Matrix { 67 Matrix() : num_rows_(0), num_columns_(0) {} in Matrix() function 70 Matrix(size_t num_rows, size_t num_columns) in Matrix() function 78 Matrix(const T* data, size_t num_rows, size_t num_columns) in Matrix() function 85 virtual ~Matrix() {} in ~Matrix() 88 void CopyFrom(const Matrix& other) { in CopyFrom() 98 Matrix& CopyFromColumn(const T* const* src, in CopyFromColumn() 134 Matrix& Transpose() { in Transpose() 140 Matrix& Transpose(const Matrix& operand) { in Transpose() 148 Matrix& Scale(const S& scalar) { in Scale() [all …]
|
/external/eigen/Eigen/src/Core/ |
D | Matrix.h | 18 struct traits<Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols> > 178 class Matrix 179 : public PlainObjectBase<Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols> > 186 typedef PlainObjectBase<Matrix> Base; 190 EIGEN_DENSE_PUBLIC_INTERFACE(Matrix) 206 EIGEN_STRONG_INLINE Matrix& operator=(const Matrix& other) 223 EIGEN_STRONG_INLINE Matrix& operator=(const DenseBase<OtherDerived>& other) 236 EIGEN_STRONG_INLINE Matrix& operator=(const EigenBase<OtherDerived> &other) 243 EIGEN_STRONG_INLINE Matrix& operator=(const ReturnByValue<OtherDerived>& func) 259 EIGEN_STRONG_INLINE Matrix() : Base() [all …]
|
/external/libtextclassifier/lang_id/common/flatbuffers/ |
D | embedding-network-params-from-flatbuffer.h | 63 const saft_fbs::Matrix *matrix = SafeGetEmbeddingMatrix(i); in embeddings_num_rows() 68 const saft_fbs::Matrix *matrix = SafeGetEmbeddingMatrix(i); in embeddings_num_cols() 73 const saft_fbs::Matrix *matrix = SafeGetEmbeddingMatrix(i); in embeddings_weights() 78 const saft_fbs::Matrix *matrix = SafeGetEmbeddingMatrix(i); in embeddings_quant_type() 83 const saft_fbs::Matrix *matrix = SafeGetEmbeddingMatrix(i); in embeddings_quant_scales() 93 const saft_fbs::Matrix *weights = SafeGetLayerWeights(i); in hidden_num_rows() 98 const saft_fbs::Matrix *weights = SafeGetLayerWeights(i); in hidden_num_cols() 103 const saft_fbs::Matrix *weights = SafeGetLayerWeights(i); in hidden_weights_quant_type() 108 const saft_fbs::Matrix *weights = SafeGetLayerWeights(i); in hidden_weights() 115 const saft_fbs::Matrix *bias = SafeGetLayerBias(i); in hidden_bias_num_rows() [all …]
|
D | embedding-network-params-from-flatbuffer.cc | 52 bool VerifyQuantizationScales(EmbeddingNetworkParams::Matrix matrix, in VerifyQuantizationScales() 73 bool VerifyMatrix(EmbeddingNetworkParams::Matrix matrix, StringPiece bytes) { in VerifyMatrix() 135 const EmbeddingNetworkParams::Matrix &weights, in GoodLayerGeometry() 136 const EmbeddingNetworkParams::Matrix &bias) { in GoodLayerGeometry() 211 Matrix embeddings = GetEmbeddingMatrix(i); in ValidityChecking() 220 Matrix weights = GetHiddenLayerMatrix(i); in ValidityChecking() 225 Matrix bias = GetHiddenLayerBias(i); in ValidityChecking() 238 Matrix weights = GetSoftmaxMatrix(); in ValidityChecking() 243 Matrix bias = GetSoftmaxBias(); in ValidityChecking() 296 const saft_fbs::Matrix * [all …]
|
/external/eigen/test/ |
D | vectorization_logic.cpp | 108 typedef Matrix<Scalar,PacketSize,1> Vector1; in run() 109 typedef Matrix<Scalar,Dynamic,1> VectorX; in run() 110 typedef Matrix<Scalar,Dynamic,Dynamic> MatrixXX; in run() 111 typedef Matrix<Scalar,PacketSize,PacketSize> Matrix11; in run() 112 typedef Matrix<Scalar,2*PacketSize,2*PacketSize> Matrix22; in run() 113 …typedef Matrix<Scalar,(Matrix11::Flags&RowMajorBit)?16:4*PacketSize,(Matrix11::Flags&RowMajorBit)?… in run() 114 …typedef Matrix<Scalar,(Matrix11::Flags&RowMajorBit)?16:4*PacketSize,(Matrix11::Flags&RowMajorBit)?… in run() 115 typedef Matrix<Scalar,4*PacketSize,4*PacketSize,ColMajor> Matrix44c; in run() 116 typedef Matrix<Scalar,4*PacketSize,4*PacketSize,RowMajor> Matrix44r; in run() 118 typedef Matrix<Scalar, in run() [all …]
|
D | nomalloc.cpp | 98 typedef Eigen::Matrix<Scalar, in ctms_decompositions() 101 maxSize, maxSize> Matrix; in ctms_decompositions() typedef 103 typedef Eigen::Matrix<Scalar, in ctms_decompositions() 108 typedef Eigen::Matrix<std::complex<Scalar>, in ctms_decompositions() 113 const Matrix A(Matrix::Random(size, size)), B(Matrix::Random(size, size)); in ctms_decompositions() 114 Matrix X(size,size); in ctms_decompositions() 116 const Matrix saA = A.adjoint() * A; in ctms_decompositions() 121 Eigen::LLT<Matrix> LLT; LLT.compute(A); in ctms_decompositions() 124 Eigen::LDLT<Matrix> LDLT; LDLT.compute(A); in ctms_decompositions() 132 Eigen::EigenSolver<Matrix> eigSolver; eigSolver.compute(A); in ctms_decompositions() [all …]
|
D | integer_types.cpp | 59 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; in integer_type_tests() 71 …typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> SquareMatrixT… in integer_type_tests() 139 CALL_SUBTEST_1( integer_type_tests(Matrix<unsigned int, 1, 1>()) ); in test_integer_types() 140 CALL_SUBTEST_1( integer_type_tests(Matrix<unsigned long, 3, 4>()) ); in test_integer_types() 142 CALL_SUBTEST_2( integer_type_tests(Matrix<long, 2, 2>()) ); in test_integer_types() 143 CALL_SUBTEST_2( signed_integer_type_tests(Matrix<long, 2, 2>()) ); in test_integer_types() 145 CALL_SUBTEST_3( integer_type_tests(Matrix<char, 2, Dynamic>(2, 10)) ); in test_integer_types() 146 CALL_SUBTEST_3( signed_integer_type_tests(Matrix<signed char, 2, Dynamic>(2, 10)) ); in test_integer_types() 148 CALL_SUBTEST_4( integer_type_tests(Matrix<unsigned char, 3, 3>()) ); in test_integer_types() 149 CALL_SUBTEST_4( integer_type_tests(Matrix<unsigned char, Dynamic, Dynamic>(20, 20)) ); in test_integer_types() [all …]
|
/external/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/ |
D | CanvasMatrixUtil.java | 19 import android.graphics.Matrix; 46 public static Matrix createPerspectiveMatrix(float[] model, float[] view, float[] projection, in createPerspectiveMatrix() 64 android.opengl.Matrix.setIdentityM(viewPort, 0); in createViewportMatrix() 65 android.opengl.Matrix.translateM(viewPort, 0, width / 2, height / 2, 0); in createViewportMatrix() 66 android.opengl.Matrix.scaleM(viewPort, 0, width / 2, -height / 2, 0); in createViewportMatrix() 80 android.opengl.Matrix.setIdentityM(rotation, 0); in createXYtoXZRotationMatrix() 81 android.opengl.Matrix.rotateM(rotation, 0, 90, 1, 0, 0); in createXYtoXZRotationMatrix() 94 public static Matrix createMatrixFrom4x4(float[] m4) { in createMatrixFrom4x4() 108 public static Matrix createMatrixFrom4x4Array(float[][] m4Array) { in createMatrixFrom4x4Array() 125 android.opengl.Matrix.multiplyMV(result, 0, m4, 0, v4, 0); in multiplyMatrixVector() [all …]
|
/external/skqp/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/ |
D | CanvasMatrixUtil.java | 19 import android.graphics.Matrix; 46 public static Matrix createPerspectiveMatrix(float[] model, float[] view, float[] projection, in createPerspectiveMatrix() 64 android.opengl.Matrix.setIdentityM(viewPort, 0); in createViewportMatrix() 65 android.opengl.Matrix.translateM(viewPort, 0, width / 2, height / 2, 0); in createViewportMatrix() 66 android.opengl.Matrix.scaleM(viewPort, 0, width / 2, -height / 2, 0); in createViewportMatrix() 80 android.opengl.Matrix.setIdentityM(rotation, 0); in createXYtoXZRotationMatrix() 81 android.opengl.Matrix.rotateM(rotation, 0, 90, 1, 0, 0); in createXYtoXZRotationMatrix() 94 public static Matrix createMatrixFrom4x4(float[] m4) { in createMatrixFrom4x4() 108 public static Matrix createMatrixFrom4x4Array(float[][] m4Array) { in createMatrixFrom4x4Array() 125 android.opengl.Matrix.multiplyMV(result, 0, m4, 0, v4, 0); in multiplyMatrixVector() [all …]
|
/external/llvm/include/llvm/CodeGen/PBQP/ |
D | Math.h | 163 class Matrix { 165 friend hash_code hash_value(const Matrix &); 169 Matrix(unsigned Rows, unsigned Cols) : in Matrix() function 175 Matrix(unsigned Rows, unsigned Cols, PBQPNum InitVal) in Matrix() function 181 Matrix(const Matrix &M) in Matrix() function 187 Matrix(Matrix &&M) in Matrix() function 194 ~Matrix() { delete[] Data; } in ~Matrix() 197 Matrix& operator=(const Matrix &M) { 206 Matrix& operator=(Matrix &&M) { 217 bool operator==(const Matrix &M) const { [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/PBQP/ |
D | Math.h | 122 class Matrix { 124 friend hash_code hash_value(const Matrix &); 128 Matrix(unsigned Rows, unsigned Cols) : in Matrix() function 134 Matrix(unsigned Rows, unsigned Cols, PBQPNum InitVal) in Matrix() function 141 Matrix(const Matrix &M) in Matrix() function 148 Matrix(Matrix &&M) in Matrix() function 154 bool operator==(const Matrix &M) const { 206 Matrix transpose() const { in transpose() 208 Matrix M(Cols, Rows); in transpose() 216 Matrix& operator+=(const Matrix &M) { [all …]
|
/external/eigen/blas/ |
D | common.h | 94 typedef Matrix<Scalar,Dynamic,Dynamic,ColMajor> PlainMatrixType; 95 typedef Map<Matrix<Scalar,Dynamic,Dynamic,ColMajor>, 0, OuterStride<> > MatrixType; 96 typedef Map<const Matrix<Scalar,Dynamic,Dynamic,ColMajor>, 0, OuterStride<> > ConstMatrixType; 97 typedef Map<Matrix<Scalar,Dynamic,1>, 0, InnerStride<Dynamic> > StridedVectorType; 98 typedef Map<Matrix<Scalar,Dynamic,1> > CompactVectorType; 101 Map<Matrix<T,Dynamic,Dynamic,ColMajor>, 0, OuterStride<> > 104 …return Map<Matrix<T,Dynamic,Dynamic,ColMajor>, 0, OuterStride<> >(data, rows, cols, OuterStride<>(… in matrix() 108 Map<const Matrix<T,Dynamic,Dynamic,ColMajor>, 0, OuterStride<> > 111 …return Map<const Matrix<T,Dynamic,Dynamic,ColMajor>, 0, OuterStride<> >(data, rows, cols, OuterStr… in matrix() 115 Map<Matrix<T,Dynamic,1>, 0, InnerStride<Dynamic> > make_vector(T* data, int size, int incr) in make_vector() [all …]
|
/external/eigen/debug/msvc/ |
D | eigen_autoexp_part.dat | 9 ; * - Eigen::Matrix<*,4,1,*,*,*> and Eigen::Matrix<*,1,4,*,*,*> 10 ; * - Eigen::Matrix<*,3,1,*,*,*> and Eigen::Matrix<*,1,3,*,*,*> 11 ; * - Eigen::Matrix<*,2,1,*,*,*> and Eigen::Matrix<*,1,2,*,*,*> 12 ; * - Eigen::Matrix<*,-1,-1,*,*,*> 13 ; * - Eigen::Matrix<*,+,-1,*,*,*> 14 ; * - Eigen::Matrix<*,-1,+,*,*,*> 15 ; * - Eigen::Matrix<*,+,+,*,*,*> 28 Eigen::Matrix<*,4,1,*,*,*>|Eigen::Matrix<*,1,4,*,*,*>{ 53 Eigen::Matrix<*,3,1,*,*,*>|Eigen::Matrix<*,1,3,*,*,*>{ 77 Eigen::Matrix<*,2,1,*,*,*>|Eigen::Matrix<*,1,2,*,*,*>{ [all …]
|
/external/eigen/unsupported/Eigen/src/Eigenvalues/ |
D | ArpackSelfAdjointEigenSolver.h | 223 const Matrix<Scalar, Dynamic, Dynamic>& eigenvectors() const in eigenvectors() 245 const Matrix<Scalar, Dynamic, 1>& eigenvalues() const in eigenvalues() 269 Matrix<Scalar, Dynamic, Dynamic> operatorSqrt() const in operatorSqrt() 294 Matrix<Scalar, Dynamic, Dynamic> operatorInverseSqrt() const in operatorInverseSqrt() 318 Matrix<Scalar, Dynamic, Dynamic> m_eivec; 319 Matrix<Scalar, Dynamic, 1> m_eivalues; 522 Matrix<Scalar, Dynamic, 1>::Map(out2, n) = Matrix<Scalar, Dynamic, 1>::Map(in, n); in compute() 524 Matrix<Scalar, Dynamic, 1>::Map(out2, n) = B * Matrix<Scalar, Dynamic, 1>::Map(in, n); in compute() 535 Matrix<Scalar, Dynamic, 1>::Map(out, n) = A * Matrix<Scalar, Dynamic, 1>::Map(in, n); in compute() 547 Matrix<Scalar, Dynamic, 1>::Map(in, n) = A * Matrix<Scalar, Dynamic, 1>::Map(in, n); in compute() [all …]
|
/external/tensorflow/tensorflow/contrib/rnn/kernels/ |
D | lstm_ops.h | 80 typename TTypes<T>::Vec mask, typename TTypes<T>::Matrix m) { in operator() 165 typename TTypes<T>::ConstVec b, typename TTypes<T>::Matrix xh, 166 typename TTypes<T>::Matrix i, typename TTypes<T>::Matrix cs, 167 typename TTypes<T>::Matrix f, typename TTypes<T>::Matrix o, 168 typename TTypes<T>::Matrix ci, typename TTypes<T>::Matrix co, 169 typename TTypes<T>::Matrix icfo, 170 typename TTypes<T>::Matrix h); 192 typename TTypes<T>::ConstMatrix h_grad, typename TTypes<T>::Matrix do_, 193 typename TTypes<T>::Matrix dcs, typename TTypes<T>::Matrix dci, 194 typename TTypes<T>::Matrix df, typename TTypes<T>::Matrix di, [all …]
|
/external/eigen/doc/ |
D | CustomizingEigen_InheritingMatrix.dox | 3 /** \page TopicCustomizing_InheritingMatrix Inheriting from Matrix 5 Before inheriting from Matrix, be really, I mean REALLY, sure that using 7 If you just need to add few members to Matrix, this is the way to go. 9 An example of when you actually need to inherit Matrix, is when you 11 MyVerySpecificVector1, MyVerySpecificVector2 -> MyVector1 -> Matrix and 12 MyVerySpecificVector3, MyVerySpecificVector4 -> MyVector2 -> Matrix. 26 const Eigen::MatrixBase<Eigen::Matrix<double, -0x000000001, 1, 0, -0x000000001, 1> >::Scalar&, 27 const Eigen::MatrixBase<Eigen::Matrix<double, -0x000000001, 1> >::StorageBaseType&) 28 (((const Eigen::MatrixBase<Eigen::Matrix<double, -0x000000001, 1> >::StorageBaseType&) 29 ((const Eigen::MatrixBase<Eigen::Matrix<double, -0x000000001, 1> >::StorageBaseType*)(& v))))’
|