/dports/games/xray_re-tools/xray_re-tools-52721d2/sources/xray_re/ |
H A D | xr_matrix.cxx | 4 template<> bool _matrix<float>::can_invert_43(void) const; 5 template<> _matrix<float>& _matrix<float>::invert_43(const _matrix<float>& a); 6 template<> _matrix<float>& _matrix<float>::mul(const _matrix<float>& a, const _matrix<float>& b); 7 …template<> _matrix<float>& _matrix<float>::mul_43(const _matrix<float>& a, const _matrix<float>& b… 8 template<> void _matrix<float>::get_hpb(float& h, float& p, float& b) const; 10 template<> bool _matrix<double>::can_invert_43(void) const; 11 template<> _matrix<double>& _matrix<double>::invert_43(const _matrix<double>& a); 12 …template<> _matrix<double>& _matrix<double>::mul(const _matrix<double>& a, const _matrix<double>& … 13 …template<> _matrix<double>& _matrix<double>::mul_43(const _matrix<double>& a, const _matrix<double… 14 template<> void _matrix<double>::get_hpb(double& h, double& p, double& b) const;
|
H A D | xr_matrix.h | 76 _matrix<T>& mul(const _matrix<T>& a, const _matrix<T>& b); 77 _matrix<T>& mul_43(const _matrix<T>& a, const _matrix<T>& b); 78 _matrix<T>& mul_a_43(const _matrix<T>& a); 79 _matrix<T>& mul_b_43(const _matrix<T>& b); 81 _matrix<T>& invert_43(const _matrix<T>& a); 130 template<typename T> template<typename F> inline _matrix<T>& _matrix<T>::set(const _matrix<F>& a) in set() 212 template<typename T> _matrix<T>& _matrix<T>::mul(const _matrix<T>& a, const _matrix<T>& b) in mul() 238 template<typename T> _matrix<T>& _matrix<T>::mul_43(const _matrix<T>& a, const _matrix<T>& b) in mul_43() 264 template<typename T> inline _matrix<T>& _matrix<T>::mul_a_43(const _matrix<T>& a) in mul_a_43() 269 template<typename T> inline _matrix<T>& _matrix<T>::mul_b_43(const _matrix<T>& b) in mul_b_43() [all …]
|
/dports/math/libmesh/libmesh-1.6.2/tests/numerics/ |
H A D | diagonal_matrix_test.C | 78 _matrix->zero(); in testNumerics() 92 _matrix->add(i, i, i); in testNumerics() 95 _matrix->add(0, 0, 1); in testNumerics() 99 _matrix->close(); in testNumerics() 115 _matrix->set(i, i, i); in testNumerics() 122 _matrix->close(); in testNumerics() 146 _matrix->zero(); in testNumerics() 153 _matrix->close(); in testNumerics() 168 copy.init(*_matrix); in testNumerics() 174 _matrix->close(); in testNumerics() [all …]
|
H A D | eigen_sparse_matrix_test.C | 38 _matrix->init(/*m*/10, in setUp() 61 _matrix->add_matrix(local, rows, cols); in testGetAndSet() 62 _matrix->close(); in testGetAndSet() 69 auto copy = _matrix->clone(); in testClone() 72 CPPUNIT_ASSERT_EQUAL(copy->m(), _matrix->m()); in testClone() 73 CPPUNIT_ASSERT_EQUAL(copy->n(), _matrix->n()); in testClone() 74 CPPUNIT_ASSERT_EQUAL(copy->local_m(), _matrix->local_m()); in testClone() 84 auto zero_copy = _matrix->zero_clone(); in testClone() 87 CPPUNIT_ASSERT_EQUAL(zero_copy->m(), _matrix->m()); in testClone() 88 CPPUNIT_ASSERT_EQUAL(zero_copy->n(), _matrix->n()); in testClone() [all …]
|
H A D | petsc_matrix_test.C | 47 _matrix->init(_global_size, in setUp() 72 _matrix->add_matrix(local, rows, cols); in testGetAndSet() 73 _matrix->close(); in testGetAndSet() 113 _matrix->close(); in testClone() 117 auto copy = _matrix->clone(); in testClone() 120 CPPUNIT_ASSERT_EQUAL(copy->m(), _matrix->m()); in testClone() 121 CPPUNIT_ASSERT_EQUAL(copy->n(), _matrix->n()); in testClone() 132 auto zero_copy = _matrix->zero_clone(); in testClone() 135 CPPUNIT_ASSERT_EQUAL(zero_copy->m(), _matrix->m()); in testClone() 136 CPPUNIT_ASSERT_EQUAL(zero_copy->n(), _matrix->n()); in testClone() [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/ultima/ultima8/graphics/ |
H A D | palette.cpp | 51 _matrix[1] = 0; in load() 52 _matrix[2] = 0; in load() 53 _matrix[3] = 0; in load() 54 _matrix[4] = 0; in load() 56 _matrix[6] = 0; in load() 57 _matrix[7] = 0; in load() 58 _matrix[8] = 0; in load() 59 _matrix[9] = 0; in load() 71 r_ = (r * _matrix[0] + g * _matrix[1] + b * _matrix[2] + 255 * _matrix[3]) / 2048; in transformRGB() 75 g_ = (r * _matrix[4] + g * _matrix[5] + b * _matrix[6] + 255 * _matrix[7]) / 2048; in transformRGB() [all …]
|
H A D | base_soft_render_surface.cpp | 211 r = palette->_matrix[0] * palette->_palette[i * 3 + 0] + in CreateNativePalette() 212 palette->_matrix[1] * palette->_palette[i * 3 + 1] + in CreateNativePalette() 213 palette->_matrix[2] * palette->_palette[i * 3 + 2] + in CreateNativePalette() 214 palette->_matrix[3] * 255; in CreateNativePalette() 218 g = palette->_matrix[4] * palette->_palette[i * 3 + 0] + in CreateNativePalette() 219 palette->_matrix[5] * palette->_palette[i * 3 + 1] + in CreateNativePalette() 221 palette->_matrix[7] * 255; in CreateNativePalette() 228 palette->_matrix[11] * 255; in CreateNativePalette() 243 palette->_matrix[3] * 255; in CreateNativePalette() 250 palette->_matrix[7] * 255; in CreateNativePalette() [all …]
|
/dports/graphics/inkscape/inkscape-1.1_2021-05-24_c4e8f9ed74/src/3rdparty/2geom/include/2geom/numeric/ |
H A D | matrix.h | 188 if (_matrix.rows() == 0 || _matrix.columns() == 0) return os; 342 m_rows = _matrix.rows(); in Matrix() 351 m_rows = _matrix.rows(); in Matrix() 371 assert( rows() == _matrix.rows() && columns() == _matrix.columns() ); 378 assert( rows() == _matrix.rows() && columns() == _matrix.columns() ); 468 m_rows = _matrix.rows(); in ConstMatrixView() 474 …: m_matrix_view(gsl_matrix_const_submatrix(_matrix.get_gsl_matrix(), 0, 0, _matrix.rows(), _matrix… in ConstMatrixView() 476 m_rows = _matrix.rows(); in ConstMatrixView() 507 m_rows = _matrix.rows(); in MatrixView() 524 assert( rows() == _matrix.rows() && columns() == _matrix.columns() ); [all …]
|
/dports/math/lib2geom/lib2geom-1.1/include/2geom/numeric/ |
H A D | matrix.h | 188 if (_matrix.rows() == 0 || _matrix.columns() == 0) return os; 342 m_rows = _matrix.rows(); in Matrix() 351 m_rows = _matrix.rows(); in Matrix() 371 assert( rows() == _matrix.rows() && columns() == _matrix.columns() ); 378 assert( rows() == _matrix.rows() && columns() == _matrix.columns() ); 468 m_rows = _matrix.rows(); in ConstMatrixView() 474 …: m_matrix_view(gsl_matrix_const_submatrix(_matrix.get_gsl_matrix(), 0, 0, _matrix.rows(), _matrix… in ConstMatrixView() 476 m_rows = _matrix.rows(); in ConstMatrixView() 507 m_rows = _matrix.rows(); in MatrixView() 524 assert( rows() == _matrix.rows() && columns() == _matrix.columns() ); [all …]
|
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/src/osgPlugins/cfg/ |
H A D | Camera.cpp | 200 if (_matrix[3]!=0.0 || _matrix[7]!=0.0 || _matrix[11]!=-1.0 || _matrix[15]!=0.0) return false; in getFrustum() 202 zNear = _matrix[14] / (_matrix[10]-1.0); in getFrustum() 203 zFar = _matrix[14] / (1.0+_matrix[10]); in getFrustum() 208 top = zNear * (1.0+_matrix[9]) / _matrix[5]; in getFrustum() 219 if (_matrix[3]!=0.0 || _matrix[7]!=0.0 || _matrix[11]!=0.0 || _matrix[15]!=1.0) return false; in getOrtho() 221 zNear = (_matrix[14]+1.0) / _matrix[10]; in getOrtho() 222 zFar = (_matrix[14]-1.0) / _matrix[10]; in getOrtho() 224 left = -(1.0+_matrix[12]) / _matrix[0]; in getOrtho() 225 right = (1.0-_matrix[12]) / _matrix[0]; in getOrtho() 227 bottom = -(1.0+_matrix[13]) / _matrix[5]; in getOrtho() [all …]
|
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/src/osgPlugins/cfg/ |
H A D | Camera.cpp | 201 if (_matrix[3]!=0.0 || _matrix[7]!=0.0 || _matrix[11]!=-1.0 || _matrix[15]!=0.0) return false; in getFrustum() 203 zNear = _matrix[14] / (_matrix[10]-1.0); in getFrustum() 204 zFar = _matrix[14] / (1.0+_matrix[10]); in getFrustum() 209 top = zNear * (1.0+_matrix[9]) / _matrix[5]; in getFrustum() 220 if (_matrix[3]!=0.0 || _matrix[7]!=0.0 || _matrix[11]!=0.0 || _matrix[15]!=1.0) return false; in getOrtho() 222 zNear = (_matrix[14]+1.0) / _matrix[10]; in getOrtho() 223 zFar = (_matrix[14]-1.0) / _matrix[10]; in getOrtho() 225 left = -(1.0+_matrix[12]) / _matrix[0]; in getOrtho() 226 right = (1.0-_matrix[12]) / _matrix[0]; in getOrtho() 228 bottom = -(1.0+_matrix[13]) / _matrix[5]; in getOrtho() [all …]
|
/dports/audio/musescore/MuseScore-3.6.1/omr/ |
H A D | omrview.cpp | 122 p.setTransform(_matrix); in paintEvent() 282 _matrix.setMatrix(_matrix.m11(), _matrix.m12(), _matrix.m13(), _matrix.m21(), in mouseMoveEvent() 283 _matrix.m22(), _matrix.m23(), _matrix.dx()+dx, _matrix.dy()+dy, _matrix.m33()); in mouseMoveEvent() 302 _matrix.setMatrix(nmag, _matrix.m12(), _matrix.m13(), _matrix.m21(), in setMag() 303 nmag, _matrix.m23(), _matrix.dx()*deltamag, _matrix.dy()*deltamag, _matrix.m33()); in setMag() 334 _matrix.setMatrix(_matrix.m11(), _matrix.m12(), _matrix.m13(), _matrix.m21(), in zoom() 335 _matrix.m22(), _matrix.m23(), _matrix.dx()+dx, _matrix.dy()+dy, _matrix.m33()); in zoom() 372 _matrix.setMatrix(_matrix.m11(), _matrix.m12(), _matrix.m13(), _matrix.m21(), in wheelEvent() 373 _matrix.m22(), _matrix.m23(), _matrix.dx()+dx, _matrix.dy()+dy, _matrix.m33()); in wheelEvent() 404 _matrix.setMatrix(_matrix.m11(), _matrix.m12(), _matrix.m13(), _matrix.m21(), in setOffset() [all …]
|
/dports/audio/ardour6/Ardour-6.8.0/gtk2_ardour/ |
H A D | port_matrix_grid.cc | 44 if (_matrix->visible_columns()) { in compute_dimensions() 50 if (_matrix->visible_rows()) { in compute_dimensions() 82 if (!_matrix->show_only_bundles()) { in render() 100 if (_matrix->show_only_bundles ()) { in render() 118 if (!_matrix->show_only_bundles()) { in render() 136 if (_matrix->show_only_bundles ()) { in render() 151 if (_matrix->show_only_bundles()) { in render() 331 _matrix->popup_menu (px, py, ev->time); in button_press() 339 if (_matrix->show_only_bundles()) { in set_association() 360 c[_matrix->row_index()] = node.row; in set_association() [all …]
|
H A D | port_matrix_row_labels.cc | 59 …for (PortGroupList::List::const_iterator i = _matrix->rows()->begin(); i != _matrix->rows()->end()… in compute_dimensions() 66 if (!_matrix->should_show ((*j)->bundle->channel_type(k))) { in compute_dimensions() 86 if (_matrix->visible_rows()) { in compute_dimensions() 98 if (!_matrix->show_only_bundles()) { in compute_dimensions() 131 if (!_matrix->show_only_bundles()) { in render() 172 _matrix->remove_channel (w); in button_press() 174 _matrix->popup_menu ( in button_press() 214 if (_matrix->arrangement() == PortMatrix::TOP_TO_RIGHT && !_matrix->show_only_bundles ()) { in bundle_name_x() 224 if (_matrix->arrangement() == PortMatrix::LEFT_TO_BOTTOM) { in port_name_x() 240 int const n = _matrix->show_only_bundles() ? 1 : _matrix->count_of_our_type_min_1 (b->nchannels()); in render_bundle_name() [all …]
|
H A D | port_matrix_column_labels.cc | 59 …for (PortGroupList::List::const_iterator i = _matrix->columns()->begin(); i != _matrix->columns()-… in compute_dimensions() 95 if (_matrix->visible_columns()) { in compute_dimensions() 107 if (!_matrix->show_only_bundles()) { in compute_dimensions() 143 if (_matrix->show_only_bundles()) { in render() 154 if (!_matrix->show_only_bundles()) { in render() 274 if (_matrix->show_only_bundles()) { in render_bundle_name() 306 if (_matrix->arrangement() == PortMatrix::TOP_TO_RIGHT) { in render_bundle_name() 309 if (_matrix->show_only_bundles()) { in render_bundle_name() 422 if (_matrix->show_only_bundles()) { in queue_draw_for() 483 _matrix->remove_channel (w); in button_press() [all …]
|
H A D | port_matrix_component.cc | 33 : _matrix (m), in PortMatrixComponent() 122 return _matrix->get_style()->get_bg (Gtk::STATE_NORMAL); in background_colour() 134 if (_matrix->show_only_bundles()) { in group_size() 138 s += _matrix->count_of_our_type_min_1 ((*i)->bundle->nchannels()); in group_size() 162 if (_matrix->show_only_bundles()) { in channel_to_position() 165 return p + bc.bundle->overall_channel_to_type (_matrix->type (), bc.channel); in channel_to_position() 172 if (_matrix->show_only_bundles()) { in channel_to_position() 175 p += _matrix->count_of_our_type_min_1 ((*i)->bundle->nchannels()); in channel_to_position() 191 if (_matrix->show_only_bundles()) { in position_to_channel() 203 uint32_t const s = _matrix->count_of_our_type_min_1 (N); in position_to_channel() [all …]
|
/dports/graphics/mirtk/MIRTK-2.0.0-122-g38210fa/Modules/Transformation/include/mirtk/ |
H A D | HomogeneousTransformation.h | 69 Matrix _matrix; variable 294 Broadcast(ModifiedEvent, &_matrix); in Update() 345 _matrix(r, c) = matrix(r, c); in PutMatrix() 348 _matrix(r, 3) = 0.; in PutMatrix() 351 _matrix = matrix; in PutMatrix() 355 _matrix(3, 0) = _matrix(3, 1) = _matrix(3, 2) = 0., _matrix(3, 3) = 1.; in PutMatrix() 362 return _matrix; in GetMatrix() 378 double a = _matrix(0, 0) * x + _matrix(0, 1) * y + _matrix(0, 2) * z + _matrix(0, 3); in GlobalTransform() 379 double b = _matrix(1, 0) * x + _matrix(1, 1) * y + _matrix(1, 2) * z + _matrix(1, 3); in GlobalTransform() 380 double c = _matrix(2, 0) * x + _matrix(2, 1) * y + _matrix(2, 2) * z + _matrix(2, 3); in GlobalTransform() [all …]
|
H A D | RigidTransformation.h | 282 x += _matrix(0, 3); in Translate() 283 y += _matrix(1, 3); in Translate() 284 z += _matrix(2, 3); in Translate() 290 double a = _matrix(0, 0) * x + _matrix(0, 1) * y + _matrix(0, 2) * z; in Rotate() 291 double b = _matrix(1, 0) * x + _matrix(1, 1) * y + _matrix(1, 2) * z; in Rotate() 292 double c = _matrix(2, 0) * x + _matrix(2, 1) * y + _matrix(2, 2) * z; in Rotate()
|
/dports/graphics/pear-Image_Graph/Image_Graph-0.8.0/Graph/Layout/ |
H A D | Matrix.php | 58 var $_matrix = false; variable in Image_Graph_Layout_Matrix 90 $this->_matrix = array(array()); 94 $this->_matrix[$i][$j] =& $this->addNew('plotarea'); 97 $this->_matrix[$i][$j] = false; 115 if ((isset($this->_matrix[$row])) && (isset($this->_matrix[$row][$col]))) { 119 $this->_matrix[$row][$col]->_push('left', round($col*$width) . '%'); 122 $this->_matrix[$row][$col]->_push('right', round(100-($col+1)*$width) . '%'); 125 $this->_matrix[$row][$col]->_push('top', round($row*$height) . '%'); 144 if ((isset($this->_matrix[$row])) && (isset($this->_matrix[$row][$col]))) { 145 return $this->_matrix[$row][$col]; [all …]
|
/dports/math/libsemigroups/libsemigroups-1.3.7/src/ |
H A D | obvinf.cpp | 57 _matrix(0, n) { in IsObviouslyInfinite() 60 _matrix(n, 0) { 69 auto matrix_start = _matrix.rows(); in add_rules() 70 _matrix.conservativeResize(matrix_start + (last - first) / 2, in add_rules() 72 _matrix.block(matrix_start, 0, (last - first) / 2, _matrix.cols()) in add_rules() 76 std::fill(_matrix.begin(), _matrix.end(), 0); in add_rules() 88 auto matrix_start = _matrix.rows(); in add_rules() 89 _matrix.conservativeResize(matrix_start + (last - first), in add_rules() 91 _matrix.block(matrix_start, 0, (last - first), _matrix.cols()).setZero(); in add_rules() 94 std::fill(_matrix.begin(), _matrix.end(), 0); in add_rules() [all …]
|
/dports/audio/musescore/MuseScore-3.6.1/mscore/ |
H A D | exampleview.cpp | 90 imatrix = _matrix.inverted(); in resetMatrix() 162 - QPoint(lrint(_matrix.dx()), lrint(_matrix.dy()))); in drawBackground() 195 p.setTransform(_matrix); in paintEvent() 409 _matrix.setMatrix(_matrix.m11(), _matrix.m12(), _matrix.m13(), _matrix.m21(), in dragExampleView() 410 _matrix.m22(), _matrix.m23(), _matrix.dx()+dx, _matrix.dy(), _matrix.m33()); in dragExampleView() 411 imatrix = _matrix.inverted(); in dragExampleView() 449 _matrix.setMatrix(_matrix.m11(), _matrix.m12(), _matrix.m13(), _matrix.m21(), in wheelEvent() 450 _matrix.m22(), _matrix.m23(), _matrix.dx()+dx, _matrix.dy(), _matrix.m33()); in wheelEvent() 451 imatrix = _matrix.inverted(); in wheelEvent() 468 QRectF systemScaledViewRect(xstart * _matrix.m11(), 0, xend * _matrix.m11(), 0); in constraintCanvas() [all …]
|
/dports/audio/tetraproc/tetraproc-0.8.6/source/ |
H A D | abconfig.cc | 49 _matrix [0][0] = 0.5f; in reset() 50 _matrix [0][1] = 0.5f; in reset() 51 _matrix [0][2] = 0.5f; in reset() 52 _matrix [0][3] = 0.5f; in reset() 53 _matrix [1][0] = 0.866; in reset() 54 _matrix [1][1] = 0.866f; in reset() 55 _matrix [1][2] = -0.866f; in reset() 56 _matrix [1][3] = -0.866f; in reset() 57 _matrix [2][0] = 0.866f; in reset() 58 _matrix [2][1] = -0.866f; in reset() [all …]
|
/dports/graphics/mirtk/MIRTK-2.0.0-122-g38210fa/Modules/Transformation/src/ |
H A D | HomogeneousTransformation.cc | 44 _matrix (4, 4), in HomogeneousTransformation() 47 _matrix .Ident(); in HomogeneousTransformation() 56 _matrix (t._matrix), in HomogeneousTransformation() 72 _matrix.Initialize(4, 4); in HomogeneousTransformation() 74 _matrix .Ident(); in HomogeneousTransformation() 91 _matrix = matrix; in HomogeneousTransformation() 111 _matrix = t._matrix; in HomogeneousTransformation() 499 _matrix.Ident(); in Reset() 507 Matrix matrix = _matrix; in Invert() 508 _matrix = _inverse; in Invert() [all …]
|
/dports/graphics/mirtk/MIRTK-2.0.0-122-g38210fa/Modules/Numerics/include/mirtk/ |
H A D | Matrix.h | 69 double **_matrix; variable 604 return &_matrix[c][r]; in RawPointer() 610 return &_matrix[c][r]; in RawPointer() 628 return _matrix[c]; in Col() 634 return _matrix[c]; in Col() 640 return _matrix[0][i]; in operator() 652 return _matrix[c][r]; in operator() 994 norm += _matrix[j][i]*_matrix[j][i]; in Norm() 1021 return _matrix[0][0] * (_matrix[1][1] * _matrix[2][2] - _matrix[1][2] * _matrix[2][1]) in Det3x3() 1022 - _matrix[0][1] * (_matrix[1][0] * _matrix[2][2] - _matrix[1][2] * _matrix[2][0]) in Det3x3() [all …]
|
/dports/misc/usd/USD-21.11/pxr/base/gf/ |
H A D | bbox3d.h | 92 _matrix.SetIdentity(); in GfBBox3d() 101 _matrix = rhs._matrix; in GfBBox3d() 110 _matrix.SetIdentity(); in GfBBox3d() 153 return _matrix; in GetMatrix() 182 _SetMatrices(_matrix * matrix); in Transform() 215 boost::hash_combine(h, b._matrix); in hash_value() 225 _matrix == b._matrix); 240 GfMatrix4d _matrix; variable
|