Home
last modified time | relevance | path

Searched refs:to_matrix (Results 1 – 25 of 219) sorted by relevance

123456789

/dports/math/stan/stan-2.28.2/src/test/test-models/good/function-signatures/math/matrix/
H A Dto_matrix.stan13 transformed_data_matrix = to_matrix(d_matrix);
14 transformed_data_matrix = to_matrix(d_vector);
15 transformed_data_matrix = to_matrix(d_row_vector);
16 transformed_data_matrix = to_matrix(d_matrix, 4, 2);
26 transformed_data_matrix = to_matrix(d_array2);
27 transformed_data_matrix = to_matrix(d_iarray2);
39 transformed_param_matrix = to_matrix(d_matrix);
40 transformed_param_matrix = to_matrix(d_vector);
52 transformed_param_matrix = to_matrix(d_array2);
54 transformed_param_matrix = to_matrix(p_matrix);
[all …]
/dports/math/stanmath/math-4.2.0/test/unit/math/prim/fun/
H A Dto_matrix_test.cpp21 using stan::math::to_matrix; in test_to_matrix_array_answers()
50 using stan::math::to_matrix; in TEST()
54 EXPECT_NO_THROW(to_matrix(vec, 1, 3)); in TEST()
59 using stan::math::to_matrix; in test_to_matrix_matrix_answers()
63 EXPECT_MATRIX_FLOAT_EQ(a, to_matrix(a)); in test_to_matrix_matrix_answers()
75 using stan::math::to_matrix; in test_to_matrix_matrix_reshape_answers()
124 using stan::math::to_matrix; in test_to_vector_matrix_answers()
134 EXPECT_MATRIX_FLOAT_EQ(c, to_matrix(a)); in test_to_vector_matrix_answers()
165 using stan::math::to_matrix; in test_to_row_vector_matrix_answers()
175 EXPECT_MATRIX_FLOAT_EQ(c, to_matrix(a)); in test_to_row_vector_matrix_answers()
[all …]
H A Dcontainers_conversion_test.cpp11 using stan::math::to_matrix; in TEST()
66 EXPECT_NO_THROW(to_matrix(a2)); in TEST()
69 EXPECT_NO_THROW(to_matrix(c2)); in TEST()
72 EXPECT_NO_THROW(to_matrix(d2)); in TEST()
75 EXPECT_NO_THROW(to_matrix(b2)); in TEST()
123 a2 = to_matrix(a1); in TEST()
127 a2 = to_matrix(c1); in TEST()
133 a2 = to_matrix(d1); in TEST()
139 a2 = to_matrix(b1); in TEST()
149 a2 = to_matrix(f1); in TEST()
[all …]
H A Darray_builder_test.cpp9 using stan::math::to_matrix; in TEST()
42 using stan::math::to_matrix; in TEST()
57 Matrix<double, 3, 2> m32 = to_matrix(v3rv2); in TEST()
/dports/math/stanmath/math-4.2.0/stan/math/prim/fun/
H A Dto_matrix.hpp24 inline EigMat to_matrix(EigMat&& x) { in to_matrix() function
37 inline Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> to_matrix( in to_matrix() function
63 to_matrix(const std::vector<std::vector<T>>& x) { in to_matrix() function
94 to_matrix(EigMat&& x, int m, int n) { in to_matrix() function
116 inline auto to_matrix(const std::vector<T>& x, int m, int n) { in to_matrix() function
134 inline Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> to_matrix( in to_matrix() function
165 to_matrix(EigMat&& x, int m, int n, bool col_major) { in to_matrix() function
167 return to_matrix(std::forward<EigMat>(x), m, n); in to_matrix()
170 = to_matrix(std::forward<EigMat>(x), n, m); in to_matrix()
194 to_matrix(const std::vector<T>& x, int m, int n, bool col_major) { in to_matrix() function
[all …]
/dports/math/stanmath/math-4.2.0/stan/math/opencl/prim/
H A Dto_matrix.hpp21 inline T_x to_matrix(T_x&& x) { in to_matrix() function
40 inline matrix_cl<return_type_t<T_x>> to_matrix(const T_x& x, int m, int n) { in to_matrix() function
70 inline auto to_matrix(const T_x& x, int m, int n, bool col_major) in to_matrix() function
71 -> decltype(to_matrix(x, m, n)) { in to_matrix()
73 return to_matrix(x, m, n); in to_matrix()
75 return transpose(to_matrix(transpose(x), n, m)); in to_matrix()
/dports/math/py-pystan/pystan-2.19.0.0/pystan/stan/lib/stan_math/stan/math/prim/mat/fun/
H A Dto_matrix.hpp25 inline Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> to_matrix( in to_matrix() function
39 inline Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> to_matrix( in to_matrix() function
63 to_matrix(const std::vector<std::vector<T> >& x) { in to_matrix() function
92 inline Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> to_matrix( in to_matrix() function
114 inline Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> to_matrix( in to_matrix() function
133 inline Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> to_matrix( in to_matrix() function
161 inline Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> to_matrix( in to_matrix() function
164 return to_matrix(x, m, n); in to_matrix()
193 to_matrix(const std::vector<T>& x, int m, int n, bool col_major) { in to_matrix() function
195 return to_matrix(x, m, n); in to_matrix()
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/smawk-0.3.1/tests/
H A Dmonge.rs32 let matrix: Array2<u8> = MongePrim::ConstantRows.to_matrix(5, 4, &mut rng); in monge_constant_rows()
43 let matrix: Array2<u8> = MongePrim::ConstantCols.to_matrix(5, 4, &mut rng); in monge_constant_cols()
54 let matrix: Array2<u8> = MongePrim::UpperRightOnes.to_matrix(5, 4, &mut rng); in monge_upper_right_ones()
71 let matrix: Array2<u8> = MongePrim::LowerLeftOnes.to_matrix(5, 4, &mut rng); in monge_lower_left_ones()
/dports/lang/gleam/gleam-0.18.2/cargo-crates/smawk-0.3.1/tests/
H A Dmonge.rs32 let matrix: Array2<u8> = MongePrim::ConstantRows.to_matrix(5, 4, &mut rng); in monge_constant_rows()
43 let matrix: Array2<u8> = MongePrim::ConstantCols.to_matrix(5, 4, &mut rng); in monge_constant_cols()
54 let matrix: Array2<u8> = MongePrim::UpperRightOnes.to_matrix(5, 4, &mut rng); in monge_upper_right_ones()
71 let matrix: Array2<u8> = MongePrim::LowerLeftOnes.to_matrix(5, 4, &mut rng); in monge_lower_left_ones()
/dports/devel/py-maturin/maturin-0.11.3/cargo-crates/smawk-0.3.1/tests/
H A Dmonge.rs32 let matrix: Array2<u8> = MongePrim::ConstantRows.to_matrix(5, 4, &mut rng); in monge_constant_rows()
43 let matrix: Array2<u8> = MongePrim::ConstantCols.to_matrix(5, 4, &mut rng); in monge_constant_cols()
54 let matrix: Array2<u8> = MongePrim::UpperRightOnes.to_matrix(5, 4, &mut rng); in monge_upper_right_ones()
71 let matrix: Array2<u8> = MongePrim::LowerLeftOnes.to_matrix(5, 4, &mut rng); in monge_lower_left_ones()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/platform/transforms/
H A Dtransformation_matrix_test.cc633 TransformationMatrix to_matrix; in TEST() local
634 to_matrix.Rotate3d(0, 0, 1, 120); in TEST()
635 to_matrix.Blend(from_matrix, 0.5); in TEST()
643 to_matrix.MakeIdentity(); in TEST()
644 to_matrix.Blend(from_matrix, 0.5); in TEST()
650 to_matrix.MakeIdentity(); in TEST()
652 to_matrix.Blend(from_matrix, 0.5); in TEST()
662 to_matrix.MakeIdentity(); in TEST()
663 to_matrix.Rotate3d(0, 0, 1, 90); in TEST()
664 EXPECT_TRUE(to_matrix.Decompose(decomp)); in TEST()
[all …]
H A Dtransform_operations.cc224 scoped_refptr<TransformOperation> to_matrix = in Accumulate() local
227 from_matrix->Accumulate(*to_matrix); in Accumulate()
284 TransformationMatrix to_matrix; in BoundingBoxForArc() local
287 to_matrix.Rotate3d(from_transform.X(), from_transform.Y(), from_transform.Z(), in BoundingBoxForArc()
297 box.ExpandTo(to_matrix.MapPoint(point)); in BoundingBoxForArc()
428 TransformationMatrix to_matrix; in BlendedBoundsForBox() local
430 to_transform->Apply(to_matrix, FloatSize()); in BlendedBoundsForBox()
434 to_matrix.TransformBox(to_box); in BlendedBoundsForBox()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/transforms/
H A Drotation.cc111 TransformationMatrix to_matrix; in Slerp() local
113 to_matrix.Rotate3d(to); in Slerp()
114 to_matrix.Blend(from_matrix, progress); in Slerp()
115 return ExtractFromMatrix(to_matrix, progress < 0.5 ? from : to); in Slerp()
H A Dtransform_operations.cc220 scoped_refptr<TransformOperation> to_matrix = in Accumulate() local
223 from_matrix->Accumulate(*to_matrix); in Accumulate()
280 TransformationMatrix to_matrix; in BoundingBoxForArc() local
283 to_matrix.Rotate3d(from_transform.X(), from_transform.Y(), from_transform.Z(), in BoundingBoxForArc()
293 box.ExpandTo(to_matrix.MapPoint(point)); in BoundingBoxForArc()
427 TransformationMatrix to_matrix; in BlendedBoundsForBox() local
429 to_transform->Apply(to_matrix, FloatSize()); in BlendedBoundsForBox()
433 to_matrix.TransformBox(to_box); in BlendedBoundsForBox()
/dports/math/py-Diofant/Diofant-0.13.0/diofant/tests/vector/
H A Dtest_dyadic.py80 assert d1.to_matrix(A) == Matrix([[1, 0, 0], [0, 0, 0], [0, 0, 0]])
81 assert d1.to_matrix(A, B) == Matrix([[cos(q), -sin(q), 0],
84 assert d3.to_matrix(A) == Matrix([[0, 1, 0], [0, 0, 0], [0, 0, 0]])
89 assert d4.to_matrix(A) == Matrix([[a * d, a * e, a * f],
94 for expected, actual in zip(C.rotation_matrix(A) * d5.to_matrix(A) *
95 C.rotation_matrix(A).T, d5.to_matrix(C)):
/dports/math/py-sympy/sympy-1.9/sympy/vector/tests/
H A Dtest_dyadic.py77 assert d1.to_matrix(A) == Matrix([[1, 0, 0], [0, 0, 0], [0, 0, 0]])
78 assert d1.to_matrix(A, B) == Matrix([[cos(q), -sin(q), 0],
81 assert d3.to_matrix(A) == Matrix([[0, 1, 0], [0, 0, 0], [0, 0, 0]])
86 assert d4.to_matrix(A) == Matrix([[a * d, a * e, a * f],
91 for expected, actual in zip(C.rotation_matrix(A) * d5.to_matrix(A) * \
92 C.rotation_matrix(A).T, d5.to_matrix(C)):
/dports/math/py-sympy/sympy-1.9/sympy/physics/vector/tests/
H A Dtest_dyadic.py45 assert d1.to_matrix(A) == Matrix([[1, 0, 0], [0, 0, 0], [0, 0, 0]])
46 assert d1.to_matrix(A, B) == Matrix([[cos(q), -sin(q), 0],
49 assert d3.to_matrix(A) == Matrix([[0, 1, 0], [0, 0, 0], [0, 0, 0]])
54 assert d4.to_matrix(A) == Matrix([[a * d, a * e, a * f],
59 for expected, actual in zip(C.dcm(A) * d5.to_matrix(A) * C.dcm(A).T,
60 d5.to_matrix(C)):
/dports/math/py-statsmodels/statsmodels-0.13.1/statsmodels/stats/tests/
H A Dtest_corrpsd.py303 mat1 = rslt.corr.to_matrix()
332 mat_dense = dense_rslt.corr.to_matrix()
333 mat_sparse = sparse_rslt.corr.to_matrix()
370 mat = fac.to_matrix()
388 mat = fac.to_matrix()
403 mat = fac.to_matrix()
422 mat1 = rslt.to_matrix()
442 mat1 = rslt.to_matrix()
447 mat2 = rslt.to_matrix()
/dports/math/mlpack/mlpack-3.4.2/src/mlpack/bindings/python/tests/
H A Ddataset_info_test.py16 from mlpack.matrix_utils import to_matrix
31 m, _ = to_matrix(d)
48 m, _ = to_matrix(d)
67 m, _ = to_matrix(d)
88 m, _ = to_matrix(a)
109 m, _ = to_matrix(a)
125 m2, _ = to_matrix(m1)
/dports/math/mlpack/mlpack-3.4.2/src/mlpack/bindings/R/mlpack/R/
H A Dmatrix_utils.R19 to_matrix <- function(x) { function
43 transformed_x <- to_matrix(x)
/dports/math/deal.ii/dealii-803d21ff957e349b3799cd3ef2c840bc78734305/include/deal.II/physics/
H A Dnotation.h400 to_matrix(const Number &s);
410 to_matrix(const Tensor<0, dim, Number> &s);
420 to_matrix(const Tensor<1, dim, Number> &v);
430 to_matrix(const Tensor<2, dim, Number> &t);
483 to_matrix(const Tensor<3, dim, Number> &t);
494 to_matrix(const Tensor<4, dim, Number> &t);
893 to_matrix(const Number &s) in to_matrix() function
903 to_matrix(const Tensor<0, dim, Number> &s) in to_matrix() function
911 to_matrix(const Tensor<1, dim, Number> &v) in to_matrix() function
935 to_matrix(const Tensor<2, dim, Number> &t) in to_matrix() function
[all …]
/dports/math/stanmath/math-4.2.0/stan/math/opencl/rev/
H A Dto_matrix.hpp27 inline var_value<matrix_cl<double>> to_matrix(const var_value<T_x>& x, int m, in to_matrix() function
30 to_matrix(value_of(x), m, n), in to_matrix()
/dports/math/libnormaliz/normaliz-3.9.0/source/maxsimplex/
H A Dmaxsimplex.cpp88 … Cone<Integer> Candidate1(Type::inequalities, supp_hyps_moved, Type::grading, to_matrix(grading)); in main()
96 … Cone<Integer> Candidate2(Type::inequalities, supp_hyps_moved, Type::grading, to_matrix(grading)); in main()
111 …Cone<mpz_class> Candidate3(Type::inequalities, mpz_supp_hyps, Type::grading, to_matrix(mpz_grading… in main()
/dports/math/mlpack/mlpack-3.4.2/src/mlpack/bindings/python/mlpack/
H A Dmatrix_utils.py40 def to_matrix(x, dtype=np.double, copy=False): function
109 t = to_matrix(x, dtype=dtype, copy=copy)
151 t = to_matrix(y.apply(pd.to_numeric), dtype=dtype)
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/smawk-0.3.1/tests/random_monge/
H A Dmod.rs25 pub fn to_matrix<T: PrimInt, R: Rng>(&self, m: usize, n: usize, rng: &mut R) -> Array2<T> in to_matrix() method
80 matrix = matrix + monge.to_matrix(m, n, rng); in random_monge_matrix()

123456789