Searched refs:matrix (Results 1 - 25 of 36) sorted by relevance

12

/inkscape/src/2geom/numeric/
H A Dlinear_system.h42 #include <2geom/numeric/matrix.h>
64 assert( matrix().rows() == matrix().columns()
65 && matrix().rows() == vector().size() );
67 gsl_permutation * p = gsl_permutation_alloc(matrix().rows());
68 gsl_linalg_LU_decomp (matrix().get_gsl_matrix(), p, &s);
69 gsl_linalg_LU_solve( matrix().get_gsl_matrix(),
80 assert( matrix().rows() >= matrix().columns()
81 && matrix()
102 MatrixView & matrix() function in class:Geom::NL::LinearSystem
[all...]
H A Dsymmetric-matrix-fs-operation.h37 #include <2geom/numeric/symmetric-matrix-fs.h>
38 #include <2geom/numeric/symmetric-matrix-fs-trace.h>
H A Dmatrix.h2 * Matrix, MatrixView, ConstMatrixView classes wrap the gsl matrix routines;
323 // the matrix is not inizialized
431 // warning! this operation invalidates any view of the passed matrix objects
461 m_matrix = const_cast<gsl_matrix*>( &(m_matrix_view.matrix) );
470 m_matrix = const_cast<gsl_matrix*>( &(m_matrix_view.matrix) );
478 m_matrix = const_cast<gsl_matrix*>( &(m_matrix_view.matrix) );
501 m_matrix = &(m_matrix_view.matrix);
510 m_matrix = &(m_matrix_view.matrix);
519 m_matrix = &(m_matrix_view.matrix);
H A Dsymmetric-matrix-fs-trace.h38 #include <2geom/numeric/matrix.h>
39 #include <2geom/numeric/symmetric-matrix-fs.h>
71 * trace K-th of symmetric matrix S of order N
106 * trace for symmetric matrix of order 2
130 * trace for symmetric matrix of order 3
187 * sign of trace for symmetric matrix of order 2
245 * sign of trace for symmetric matrix of order 3
H A Dmatrix.cpp2 * Matrix, MatrixView, ConstMatrixView classes wrap the gsl matrix routines;
36 #include <2geom/numeric/matrix.h>
/inkscape/src/extension/internal/filter/
H A Dimage.h77 std::ostringstream matrix; local
86 matrix << "0 0 0 1 -2 1 0 0 0";
88 matrix << "0 1 0 0 -2 0 0 1 0";
90 matrix << "0 1 0 1 -4 1 0 1 0";
102 "</filter>\n", matrix.str().c_str(), inverted.str().c_str(), level.str().c_str());
H A Dtransparency.h302 std::ostringstream matrix; local
307 matrix << (ext->get_param_float("expand")) << " "
314 "</filter>\n", matrix.str().c_str(), opacity.str().c_str());
/inkscape/share/extensions/
H A DjessyInk_core_mouseHandler_zoomControl.js138 /** Function to project a rectangle using the projection matrix supplied.
141 * @param projectionMatrix The projection matrix.
242 var matrix = (new matrixSVG()).fromElements(1, 0, 0, 0, 1, 0, 0, 0, 1);
246 var matrix = (new matrixSVG()).fromSVGMatrix(slides[activeSlide].viewGroup.transform.baseVal.consolidate().matrix);
249 matrix.e13 += p.x - obj.dragging_last.x;
250 matrix.e23 += p.y - obj.dragging_last.y;
252 slides[activeSlide]["viewGroup"].setAttribute("transform", matrix.toAttribute());
324 var matrix = (new matrixSVG()).fromElements(1, 0, 0, 0, 1, 0, 0, 0, 1);
328 var matrix
[all...]
H A Dsimpletransform.py30 result=re.match("(translate|scale|rotate|skewX|skewY|matrix)\s*\(([^)]*)\)\s*,?",stransf)
39 matrix=[[1,0,dx],[0,1,dy]]
48 matrix=[[sx,0,0],[0,sy,0]]
57 matrix=[[math.cos(a),-math.sin(a),cx],[math.sin(a),math.cos(a),cy]]
58 matrix=composeTransform(matrix,[[1,0,-cx],[0,1,-cy]])
62 matrix=[[1,math.tan(a),0],[0,1,0]]
66 matrix=[[1,0,0],[math.tan(a),1,0]]
67 #-- matrix --
68 if result.group(1)=="matrix"
[all...]
H A Dpolyhedron_3d.py227 def rotate( matrix, angle, axis ):#choose the correct rotation matrix to use
229 matrix = rot_x(matrix, angle)
231 matrix = rot_y(matrix, angle)
233 matrix = rot_z(matrix, angle)
234 return matrix
236 def rot_z( matrix ,
[all...]
H A Dmeasure.py61 mat_area = numpy.matrix([[ 0, 2, 1, -3],[ -2, 0, 1, 1],[ -1, -1, 0, 2],[ 3, -1, -2, 0]])
62 mat_cofm_0 = numpy.matrix([[ 0, 35, 10,-45],[-35, 0, 12, 23],[-10,-12, 0, 22],[ 45,-23,-22, 0]])
63 mat_cofm_1 = numpy.matrix([[ 0, 15, 3,-18],[-15, 0, 9, 6],[ -3, -9, 0, 12],[ 18, -6,-12, 0]])
64 mat_cofm_2 = numpy.matrix([[ 0, 12, 6,-18],[-12, 0, 9, 3],[ -6, -9, 0, 15],[ 18, -3,-15, 0]])
65 mat_cofm_3 = numpy.matrix([[ 0, 22, 23,-45],[-22, 0, 12, 10],[-23,-12, 0, 35],[ 45,-10,-35, 0]])
111 vec_x = numpy.matrix([sp[i-1][1][0], sp[i-1][2][0], sp[i][0][0], sp[i][1][0]])
112 vec_y = numpy.matrix([sp[i-1][1][1], sp[i-1][2][1], sp[i][0][1], sp[i][1][1]])
127 vec_x = numpy.matrix([sp[i-1][1][0], sp[i-1][2][0], sp[i][0][0], sp[i][1][0]])
128 vec_y = numpy.matrix([sp[i-1][1][1], sp[i-1][2][1], sp[i][0][1], sp[i][1][1]])
129 vec_t = numpy.matrix([(vec_
[all...]
H A Dinkweb.js182 conf.transform.matrix.e += conf.xInc;
183 conf.transform.matrix.f += conf.yInc;
H A Dhpgl_encoder.py154 # initialize transformation matrix and cache
215 def mergeTransform(self, doc, matrix):
219 return simpletransform.composeTransform(matrix, simpletransform.parseTransform(trans))
221 return matrix
H A DjessyInk.js1627 var matrix = slides[activeSlide]["element"].getTransformToElement(ROOT_NODE);
1630 matrix = slides[activeSlide]["viewGroup"].getTransformToElement(ROOT_NODE);
1632 svgPoint1 = svgPoint1.matrixTransform(matrix);
1633 svgPoint2 = svgPoint2.matrixTransform(matrix);
1643 * @param options a dictionary with additional options (e.g. length of the effect); for the view effect the options need to contain the old and the new matrix.
2180 var matrix = slides[activeSlide]["element"].getScreenCTM();
2183 matrix = slides[activeSlide]["viewGroup"].getScreenCTM();
2185 svgPoint = svgPoint.matrixTransform(matrix.inverse());
2329 /** Convenience function to obtain a transformation matrix from a point matrix
[all...]
/inkscape/src/svg/
H A Dsvg-affine-test.h17 Geom::Affine matrix; member in struct:SvgAffineTest::test_t
54 "matrix(1,0,0,1,0,0)",
78 TSM_ASSERT_RELATION(read_matrix_tests[i].str , approx_equal_pred , read_matrix_tests[i].matrix , cm);
87 TSM_ASSERT_RELATION(read_translate_tests[i].str , approx_equal_pred , read_translate_tests[i].matrix , cm);
96 TSM_ASSERT_RELATION(read_scale_tests[i].str , approx_equal_pred , read_scale_tests[i].matrix , cm);
105 TSM_ASSERT_RELATION(read_rotate_tests[i].str , approx_equal_pred , read_rotate_tests[i].matrix , cm);
114 TSM_ASSERT_RELATION(read_skew_tests[i].str , approx_equal_pred , read_skew_tests[i].matrix , cm);
121 char * str = sp_svg_transform_write(write_matrix_tests[i].matrix);
130 char * str = sp_svg_transform_write(write_translate_tests[i].matrix);
139 char * str = sp_svg_transform_write(write_scale_tests[i].matrix);
[all...]
/inkscape/src/libcola/
H A Dconjugate_gradient.cpp22 matrix_times_vector(valarray<double> const &matrix, /* m * n */ argument
28 assert(m*n == matrix.size());
29 const double* mp = &matrix[0];
/inkscape/src/extension/internal/pdfinput/
H A Dpdf-parser.cpp667 // construct identity matrix
961 // get matrix
1622 // construct a (pattern space) -> (current space) transform matrix
1634 // m1 = PTM * BTM = PTM * base transform matrix
1649 // set the new matrix
1685 double *matrix = NULL; local
1724 matrix = (double*)&gradientTransform;
1733 if (matrix != NULL) {
1734 xTemp = matrix[0]*xMin + matrix[
1817 double *matrix; local
3044 doForm1(Object *str, Dict *resDict, double *matrix, double *bbox, GBool transpGroup, GBool softMask, GfxColorSpace *blendingColorSpace, GBool isolated, GBool knockout, GBool alpha, Function *transferFunc, GfxColor *backdropColor) argument
[all...]
H A Dsvg-builder.h111 void addShadedFill(GfxShading *shading, double *matrix, GfxPath *path, bool even_odd=false);
174 gchar *_createGradient(GfxShading *shading, double *matrix, bool for_shading=false);
227 double _ttm[6]; ///< temporary transform matrix
H A Dsvg-builder.cpp258 Geom::Affine matrix(c0, c1, c2, c3, c4, c5);
259 gchar *transform_text = sp_svg_transform_write(matrix);
461 void SvgBuilder::addShadedFill(GfxShading *shading, double *matrix, GfxPath *path, argument
471 gchar *id = _createGradient(shading, matrix, true);
567 * \brief Sets the transformation matrix of the current container
632 // construct a (pattern space) -> (current space) transform matrix
674 // Set pattern transform matrix
748 * \param matrix gradient transformation, can be null
752 gchar *SvgBuilder::_createGradient(GfxShading *shading, double *matrix, bool for_shading) { argument
791 if (matrix) {
[all...]
/inkscape/src/extension/internal/
H A Dcairo-render-context.cpp918 cairo_matrix_t matrix; local
919 _initCairoMatrix(&matrix, transform);
920 cairo_transform(_cr, &matrix);
931 cairo_matrix_t matrix; local
932 _initCairoMatrix(&matrix, transform);
933 cairo_set_matrix(_cr, &matrix);
1314 cairo_matrix_invert(&pattern_matrix); // because Cairo expects a userspace->patternspace matrix
1698 // set the given font matrix
1699 cairo_matrix_t matrix; local
1700 _initCairoMatrix(&matrix, font_matri
1810 cairo_matrix_t matrix; local
1817 _initCairoMatrix(cairo_matrix_t *matrix, Geom::Affine const &transform) argument
[all...]
H A Dcairo-render-context.h222 void _initCairoMatrix(cairo_matrix_t *matrix, Geom::Affine const &transform);
/inkscape/src/
H A Dtext-tag-attributes.h89 of x and y coordinates are multiplied by the matrix and the dx and dy
94 void transform(Geom::Affine const &matrix, double scale_x, double scale_y, bool extend_zero_length = false);
/inkscape/src/libnrtype/
H A DLayout-TNG-Output.cpp122 void Layout::_getGlyphTransformMatrix(int glyph_index, Geom::Affine *matrix) const
133 (*matrix)[0] = span.font_size * cos_rotation;
134 (*matrix)[1] = span.font_size * sin_rotation;
135 (*matrix)[2] = span.font_size * sin_rotation;
136 (*matrix)[3] = -span.font_size * cos_rotation * (_glyphs[glyph_index].vertical_scale); // unscale vertically so the specified text height is preserved if lengthAdjust=spacingAndGlyphs
141 (*matrix)[4] = _lines[_chunks[span.in_chunk].in_line].baseline_y + _glyphs[glyph_index].y;
142 (*matrix)[5] = _chunks[span.in_chunk].left_x + _glyphs[glyph_index].x;
145 (*matrix)[4] = _chunks[span.in_chunk].left_x + _glyphs[glyph_index].x;
146 (*matrix)[5] = _lines[_chunks[span.in_chunk].in_line].baseline_y + _glyphs[glyph_index].y;
290 Geom::Point g_pos(0,0); // all strings are output at (0,0) because we do the translation using the matrix
[all...]
/inkscape/share/extensions/ink2canvas/
H A Dsvg.py96 matrix = parseTransform(data)
97 m11, m21, dx = matrix[0]
98 m12, m22, dy = matrix[1]
/inkscape/src/2geom/
H A Dconicsec.h45 #include <2geom/numeric/symmetric-matrix-fs.h>
46 #include <2geom/numeric/symmetric-matrix-fs-operation.h>
134 * Define a conic section by its related symmetric matrix
220 * Define a conic section by its related symmetric matrix
286 * Return the symmetric matrix related to the conic section.
287 * Modifying the matrix does not modify the conic section
329 * Return true if the conic is degenerate, i.e. if the related matrix

Completed in 98 milliseconds

12