logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

outerProduct - calculate the outer product of a pair of vectors

Declaration

mat2outerProduct(vec2c,vec2r);mat3outerProduct(vec3c,vec3r);mat4outerProduct(vec4c,vec4r);mat2x3outerProduct(vec3c,vec2r);mat3x2outerProduct(vec2c,vec3r);mat2x4outerProduct(vec4c,vec2r);mat4x2outerProduct(vec2c,vec4r);mat3x4outerProduct(vec4c,vec3r);mat4x3outerProduct(vec3c,vec4r);dmat2outerProduct(dvec2c,dvec2r);dmat3outerProduct(dvec3c,dvec3r);dmat4outerProduct(dvec4c,dvec4r);dmat2x3outerProduct(dvec3c,dvec2r);dmat3x2outerProduct(dvec2c,dvec3r);dmat2x4outerProduct(dvec4c,dvec2r);dmat4x2outerProduct(dvec2c,dvec4r);dmat3x4outerProduct(dvec4c,dvec3r);dmat4x3outerProduct(dvec3c,dvec4r);

Description

outerProduct treats the first parameter c as a column vector (matrix with one column) and the second
       parameter r as a row vector (matrix with one row) and does a linear algebraic matrix multiply c * r,
       yielding a matrix whose number of rows is the number of components in c and whose number of columns is
       the number of components in r.

Name

       outerProduct - calculate the outer product of a pair of vectors

Parameters

c
           Specifies the parameter to be treated as a column vector.

       r
           Specifies the parameter to be treated as a row vector.

See Also

dot()

Version Support

       ┌──────────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │              │        OpenGLShadingLanguageVersion                                            │
       ├──────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │ Name         │      │      │      │      │      │      │      │      │      │      │      │      │
       ├──────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ outerProduct │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       │ (float)      │      │      │      │      │      │      │      │      │      │      │      │      │
       ├──────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ outerProduct │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       │ (double)     │      │      │      │      │      │      │      │      │      │      │      │      │
       └──────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also