/dports/graphics/libgfx/libgfx-1.1.0/include/gfx/ |
H A D | mat2.h | 32 Mat2(const Mat2 &m) { *this = m; } in Mat2() function 81 inline Mat2& Mat2::operator=(const Mat2& m) 84 inline Mat2& Mat2::operator=(double s) 87 inline Mat2& Mat2::operator+=(const Mat2& m) 90 inline Mat2& Mat2::operator-=(const Mat2& m) 104 inline Mat2 operator+(const Mat2 &n, const Mat2 &m) 107 inline Mat2 operator-(const Mat2 &n, const Mat2 &m) 110 inline Mat2 operator-(const Mat2 &m) 124 extern Mat2 operator*(const Mat2 &n, const Mat2 &m); 143 inline Mat2 transpose(const Mat2 &m) in transpose() [all …]
|
/dports/games/xjig/xjig-2.4/ |
H A D | mat2.h | 63 Mat2( const Mat2 &m ) in Mat2() function 106 const Mat2& operator=(const Mat2 &m) 114 Mat2 operator*(const Mat2 &m) const 143 inline Mat2 &Mat2::Reset() in Reset() 147 inline Mat2 &Mat2::Move(const Vec2 &p) in Move() 149 inline Mat2 &Mat2::MoveX(const Real &dx) in MoveX() 151 inline Mat2 &Mat2::MoveY(const Real &dy) in MoveY() 155 inline Mat2 &Mat2::Scale(const Real &s) in Scale() 169 inline Mat2 &Mat2::Rotate(const Real &a) in Rotate() 187 inline Mat2 &Mat2::ShearX(const Real& a) in ShearX() [all …]
|
/dports/math/stanmath/math-4.2.0/stan/math/fwd/fun/ |
H A D | multiply.hpp | 14 template <typename Mat1, typename Mat2, 15 require_all_eigen_vt<is_fvar, Mat1, Mat2>* = nullptr, 16 require_vt_same<Mat1, Mat2>* = nullptr, 18 inline auto multiply(const Mat1& m1, const Mat2& m2) { in multiply() 23 template <typename Mat1, typename Mat2, 27 inline auto multiply(const Mat1& m1, const Mat2& m2) { in multiply() 30 Mat2::ColsAtCompileTime> in multiply() 42 template <typename Mat1, typename Mat2, 44 require_eigen_vt<is_fvar, Mat2>* = nullptr, 46 inline auto multiply(const Mat1& m1, const Mat2& m2) { in multiply() [all …]
|
/dports/graphics/libgfx/libgfx-1.1.0/src/ |
H A D | mat2.cxx | 15 Mat2 Mat2::I() { return Mat2(1,0, 0,1); } in I() 17 Mat2 &Mat2::diag(double d) in diag() 25 Mat2 operator*(const Mat2 &n, const Mat2& m) in operator *() 27 Mat2 A; in operator *() 37 double invert(Mat2 &inv, const Mat2 &m) in invert() 52 bool eigenvalues(const Mat2& M, Vec2& evals) in eigenvalues() 70 bool eigenvectors(const Mat2& M, const Vec2& evals, Vec2 evecs[2]) in eigenvectors() 81 bool eigen(const Mat2& M, Vec2& evals, Vec2 evecs[2]) in eigen()
|
/dports/math/stanmath/math-4.2.0/stan/math/rev/fun/ |
H A D | columns_dot_product.hpp | 31 template <typename Mat1, typename Mat2, 32 require_all_eigen_t<Mat1, Mat2>* = nullptr, 35 columns_dot_product(const Mat1& v1, const Mat2& v2) { in columns_dot_product() 61 template <typename Mat1, typename Mat2, 62 require_all_matrix_t<Mat1, Mat2>* = nullptr, 72 arena_t<promote_scalar_t<var, Mat2>> arena_v2 = v2; in columns_dot_product() 83 if (is_var_matrix<Mat2>::value) { in columns_dot_product() 91 } else if (!is_constant<Mat2>::value) { in columns_dot_product() 93 arena_t<promote_scalar_t<var, Mat2>> arena_v2 = v2; in columns_dot_product() 98 if (is_var_matrix<Mat2>::value) { in columns_dot_product() [all …]
|
H A D | rows_dot_product.hpp | 30 template <typename Mat1, typename Mat2, 31 require_all_eigen_t<Mat1, Mat2>* = nullptr, 34 const Mat1& v1, const Mat2& v2) { in rows_dot_product() 60 template <typename Mat1, typename Mat2, 61 require_all_matrix_t<Mat1, Mat2>* = nullptr, 68 Mat1, Mat2>; in rows_dot_product() 72 arena_t<promote_scalar_t<var, Mat2>> arena_v2 = v2; in rows_dot_product() 83 if (is_var_matrix<Mat2>::value) { in rows_dot_product() 91 } else if (!is_constant<Mat2>::value) { in rows_dot_product() 98 if (is_var_matrix<Mat2>::value) { in rows_dot_product() [all …]
|
H A D | elt_multiply.hpp | 25 template <typename Mat1, typename Mat2, 26 require_all_matrix_t<Mat1, Mat2>* = nullptr, 27 require_any_rev_matrix_t<Mat1, Mat2>* = nullptr> 28 auto elt_multiply(const Mat1& m1, const Mat2& m2) { in elt_multiply() 31 using ret_type = return_var_matrix_t<inner_ret_type, Mat1, Mat2>; in elt_multiply() 32 if (!is_constant<Mat1>::value && !is_constant<Mat2>::value) { in elt_multiply() 34 arena_t<promote_scalar_t<var, Mat2>> arena_m2 = m2; in elt_multiply() 48 arena_t<promote_scalar_t<double, Mat2>> arena_m2 = value_of(m2); in elt_multiply() 54 } else if (!is_constant<Mat2>::value) { in elt_multiply() 56 arena_t<promote_scalar_t<var, Mat2>> arena_m2 = m2; in elt_multiply()
|
H A D | elt_divide.hpp | 24 template <typename Mat1, typename Mat2, 25 require_all_matrix_t<Mat1, Mat2>* = nullptr, 26 require_any_rev_matrix_t<Mat1, Mat2>* = nullptr> 27 auto elt_divide(const Mat1& m1, const Mat2& m2) { in elt_divide() 31 using ret_type = return_var_matrix_t<inner_ret_type, Mat1, Mat2>; in elt_divide() 32 if (!is_constant<Mat1>::value && !is_constant<Mat2>::value) { in elt_divide() 34 arena_t<promote_scalar_t<var, Mat2>> arena_m2 = m2; in elt_divide() 49 arena_t<promote_scalar_t<double, Mat2>> arena_m2 = value_of(m2); in elt_divide() 55 } else if (!is_constant<Mat2>::value) { in elt_divide() 57 arena_t<promote_scalar_t<var, Mat2>> arena_m2 = m2; in elt_divide()
|
H A D | quad_form.hpp | 114 template <typename Mat1, typename Mat2, 115 require_all_matrix_t<Mat1, Mat2>* = nullptr, 124 Mat1, Mat2>; in quad_form_impl() 128 arena_t<promote_scalar_t<var, Mat2>> arena_B = B; in quad_form_impl() 151 if (is_var_matrix<Mat2>::value) { in quad_form_impl() 163 } else if (!is_constant<Mat2>::value) { in quad_form_impl() 165 arena_t<promote_scalar_t<var, Mat2>> arena_B = B; in quad_form_impl() 182 if (is_var_matrix<Mat2>::value) { in quad_form_impl() 307 template <typename Mat1, typename Mat2, 308 require_all_matrix_t<Mat1, Mat2>* = nullptr, [all …]
|
H A D | trace_quad_form.hpp | 115 template <typename Mat1, typename Mat2, 116 require_all_matrix_t<Mat1, Mat2>* = nullptr, 117 require_any_var_matrix_t<Mat1, Mat2>* = nullptr> 118 inline var trace_quad_form(const Mat1& A, const Mat2& B) { in trace_quad_form() 124 if (!is_constant<Mat1>::value && !is_constant<Mat2>::value) { in trace_quad_form() 126 arena_t<promote_scalar_t<var, Mat2>> arena_B = B; in trace_quad_form() 141 if (is_var_matrix<Mat2>::value) { in trace_quad_form() 151 } else if (!is_constant<Mat2>::value) { in trace_quad_form() 153 arena_t<promote_scalar_t<var, Mat2>> arena_B = B; in trace_quad_form() 160 if (is_var_matrix<Mat2>::value) { in trace_quad_form() [all …]
|
/dports/math/stanmath/math-4.2.0/stan/math/prim/fun/ |
H A D | multiply.hpp | 61 template <typename Mat1, typename Mat2, 62 require_all_eigen_vt<std::is_arithmetic, Mat1, Mat2>* = nullptr, 63 require_not_eigen_row_and_col_t<Mat1, Mat2>* = nullptr> 64 inline auto multiply(const Mat1& m1, const Mat2& m2) { in multiply() 84 template <typename Mat1, typename Mat2, 85 require_all_eigen_t<Mat1, Mat2>* = nullptr, 86 require_t<is_complex<return_type_t<Mat1, Mat2>>>* = nullptr, 87 require_not_eigen_row_and_col_t<Mat1, Mat2>* = nullptr> 88 inline auto multiply(const Mat1& m1, const Mat2& m2) { in multiply()
|
H A D | rows_dot_product.hpp | 24 template <typename Mat1, typename Mat2, 25 require_all_eigen_t<Mat1, Mat2>* = nullptr, 26 require_all_not_eigen_vt<is_var, Mat1, Mat2>* = nullptr> 27 inline Eigen::Matrix<return_type_t<Mat1, Mat2>, Mat1::RowsAtCompileTime, 1> 28 rows_dot_product(const Mat1& v1, const Mat2& v2) { in rows_dot_product()
|
H A D | columns_dot_product.hpp | 24 template <typename Mat1, typename Mat2, 25 require_all_eigen_t<Mat1, Mat2>* = nullptr, 26 require_all_not_eigen_vt<is_var, Mat1, Mat2>* = nullptr> 27 inline Eigen::Matrix<return_type_t<Mat1, Mat2>, 1, Mat1::ColsAtCompileTime> 28 columns_dot_product(const Mat1& v1, const Mat2& v2) { in columns_dot_product()
|
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/issues/ |
H A D | issue-4107.rs | 5 let _id: &Mat2<f64> = &Matrix::identity(1.0); in main() 11 pub struct Mat2<T> { x: T } struct 14 impl<T> Dimensional<Vec2<T>> for Mat2<T> { } implementation 15 impl<T> Index<usize, Vec2<T>> for Mat2<T> { } implementation 24 impl<T> Matrix<T, Vec2<T>> for Mat2<T> { implementation 25 fn identity(t:T) -> Mat2<T> { Mat2{ x: t } } in identity()
|
/dports/math/stan/stan-2.28.2/src/stan/model/indexing/ |
H A D | assign.hpp | 261 template <typename Mat1, typename Mat2, 291 template <typename Mat1, typename Mat2, 298 internal::assign_impl(x, std::forward<Mat2>(y)); in assign() 316 template <typename Mat1, typename Mat2, 318 require_matrix_t<Mat2>* = nullptr> 344 template <typename Mat1, typename Mat2, 346 require_matrix_t<Mat2>* = nullptr> 371 template <typename Mat1, typename Mat2, 373 require_matrix_t<Mat2>* = nullptr> 416 template <typename Mat1, typename Mat2, [all …]
|
/dports/cad/leocad/leocad-21.06/common/ |
H A D | minifig.cpp | 290 lcMatrix44 Root, Mat, Mat2; in Calculate() local 338 Mat2 = lcMatrix44Identity(); in Calculate() 344 Mat = lcMul(Mat, Mat2); in Calculate() 353 Mat = lcMul(Mat, Mat2); in Calculate() 372 Mat2 = lcMatrix44Identity(); in Calculate() 378 Mat = lcMul(Mat, Mat2); in Calculate() 387 Mat = lcMul(Mat, Mat2); in Calculate() 430 Mat2.SetTranslation(lcMul31(-Center, Mat2)); in Calculate() 431 Mat = lcMul(Mat2, Mat); in Calculate() 449 Mat2.SetTranslation(lcMul31(-Center, Mat2)); in Calculate() [all …]
|
/dports/graphics/librsvg2-rust/librsvg-2.52.8/vendor/nalgebra/src/third_party/glam/common/ |
H A D | glam_unit_complex.rs | 1 use super::glam::{DMat2, Mat2}; 4 impl From<UnitComplex<f32>> for Mat2 { implementation 6 fn from(e: UnitComplex<f32>) -> Mat2 { in from() argument 18 impl From<Mat2> for UnitComplex<f32> { 20 fn from(e: Mat2) -> UnitComplex<f32> { in from()
|
/dports/math/stanmath/math-4.2.0/stan/math/rev/core/ |
H A D | operator_division.hpp | 212 template <typename Mat1, typename Mat2, 214 require_any_matrix_st<is_var, Mat1, Mat2>* = nullptr> 215 inline auto divide(const Mat1& m1, const Mat2& m2) { in divide() 216 if (!is_constant<Mat1>::value && !is_constant<Mat2>::value) { in divide() 218 arena_t<promote_scalar_t<var, Mat2>> arena_m2 = m2; in divide() 221 using ret_type = return_var_matrix_t<val_ret, Mat1, Mat2>; in divide() 229 } else if (!is_constant<Mat2>::value) { in divide() 231 arena_t<promote_scalar_t<var, Mat2>> arena_m2 = m2; in divide() 234 using ret_type = return_var_matrix_t<val_ret, Mat1, Mat2>; in divide() 242 arena_t<promote_scalar_t<double, Mat2>> arena_m2 = value_of(m2); in divide() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/clang/test/SemaCXX/ |
H A D | matrix-type-operators.cpp | 26 MyMatrix<unsigned, 3, 3> Mat2; in test_add_template() local 33 Mat1.value = add<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_add_template() 36 Mat1.value = add<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_add_template() 54 MyMatrix<unsigned, 3, 3> Mat2; in test_subtract_template() local 61 Mat1.value = subtract<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_subtract_template() 64 Mat1.value = subtract<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_subtract_template() 88 MyMatrix<unsigned, 3, 3> Mat2; in test_multiply_template() local 96 Mat1.value = multiply<unsigned, 3, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat4, Mat2); in test_multiply_template()
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/clang/test/SemaCXX/ |
H A D | matrix-type-operators.cpp | 26 MyMatrix<unsigned, 3, 3> Mat2; in test_add_template() local 33 Mat1.value = add<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_add_template() 36 Mat1.value = add<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_add_template() 54 MyMatrix<unsigned, 3, 3> Mat2; in test_subtract_template() local 61 Mat1.value = subtract<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_subtract_template() 64 Mat1.value = subtract<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_subtract_template() 88 MyMatrix<unsigned, 3, 3> Mat2; in test_multiply_template() local 96 Mat1.value = multiply<unsigned, 3, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat4, Mat2); in test_multiply_template()
|
/dports/devel/llvm11/llvm-11.0.1.src/tools/clang/test/SemaCXX/ |
H A D | matrix-type-operators.cpp | 26 MyMatrix<unsigned, 3, 3> Mat2; in test_add_template() local 33 Mat1.value = add<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_add_template() 36 Mat1.value = add<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_add_template() 54 MyMatrix<unsigned, 3, 3> Mat2; in test_subtract_template() local 61 Mat1.value = subtract<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_subtract_template() 64 Mat1.value = subtract<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_subtract_template() 88 MyMatrix<unsigned, 3, 3> Mat2; in test_multiply_template() local 96 Mat1.value = multiply<unsigned, 3, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat4, Mat2); in test_multiply_template()
|
/dports/devel/llvm12/llvm-project-12.0.1.src/clang/test/SemaCXX/ |
H A D | matrix-type-operators.cpp | 26 MyMatrix<unsigned, 3, 3> Mat2; in test_add_template() local 33 Mat1.value = add<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_add_template() 36 Mat1.value = add<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_add_template() 54 MyMatrix<unsigned, 3, 3> Mat2; in test_subtract_template() local 61 Mat1.value = subtract<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_subtract_template() 64 Mat1.value = subtract<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_subtract_template() 88 MyMatrix<unsigned, 3, 3> Mat2; in test_multiply_template() local 96 Mat1.value = multiply<unsigned, 3, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat4, Mat2); in test_multiply_template()
|
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/clang/test/SemaCXX/ |
H A D | matrix-type-operators.cpp | 26 MyMatrix<unsigned, 3, 3> Mat2; in test_add_template() local 33 Mat1.value = add<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_add_template() 36 Mat1.value = add<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_add_template() 54 MyMatrix<unsigned, 3, 3> Mat2; in test_subtract_template() local 61 Mat1.value = subtract<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_subtract_template() 64 Mat1.value = subtract<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_subtract_template() 88 MyMatrix<unsigned, 3, 3> Mat2; in test_multiply_template() local 96 Mat1.value = multiply<unsigned, 3, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat4, Mat2); in test_multiply_template()
|
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/clang/test/SemaCXX/ |
H A D | matrix-type-operators.cpp | 26 MyMatrix<unsigned, 3, 3> Mat2; in test_add_template() local 33 Mat1.value = add<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_add_template() 36 Mat1.value = add<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_add_template() 54 MyMatrix<unsigned, 3, 3> Mat2; in test_subtract_template() local 61 Mat1.value = subtract<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_subtract_template() 64 Mat1.value = subtract<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_subtract_template() 88 MyMatrix<unsigned, 3, 3> Mat2; in test_multiply_template() local 96 Mat1.value = multiply<unsigned, 3, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat4, Mat2); in test_multiply_template()
|
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/clang/test/SemaCXX/ |
H A D | matrix-type-operators.cpp | 26 MyMatrix<unsigned, 3, 3> Mat2; in test_add_template() local 33 Mat1.value = add<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_add_template() 36 Mat1.value = add<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_add_template() 54 MyMatrix<unsigned, 3, 3> Mat2; in test_subtract_template() local 61 Mat1.value = subtract<unsigned, 2, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat1, Mat2); in test_subtract_template() 64 Mat1.value = subtract<unsigned, 3, 3, float, 2, 2, unsigned, 2, 2>(Mat2, Mat3); in test_subtract_template() 88 MyMatrix<unsigned, 3, 3> Mat2; in test_multiply_template() local 96 Mat1.value = multiply<unsigned, 3, 2, unsigned, 3, 3, unsigned, 2, 2>(Mat4, Mat2); in test_multiply_template()
|