outerProduct - calculate the outer product of a pair of vectors
Contents
Copyright
Copyright © 2011-2014 Khronos Group
[FIXME: source] 11/18/2024 OUTERPRODUCT(3G)
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 │
├──────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
│ Function │ 1.10 │ 1.20 │ 1.30 │ 1.40 │ 1.50 │ 3.30 │ 4.00 │ 4.10 │ 4.20 │ 4.30 │ 4.40 │ 4.50 │
│ Name │ │ │ │ │ │ │ │ │ │ │ │ │
├──────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ outerProduct │ - │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
│ (float) │ │ │ │ │ │ │ │ │ │ │ │ │
├──────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│ outerProduct │ - │ - │ - │ - │ - │ - │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
│ (double) │ │ │ │ │ │ │ │ │ │ │ │ │
└──────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘
