Structure

simd_float2x2

A matrix of two columns and two rows containing single-precision values.

Declaration

typedef struct {
    ...
} simd_float2x2;

Topics

Matrix Properties

columns

The columns of the matrix.

Matrix Creation Functions

simd_matrix

Returns a new matrix with the specified columns.

simd_matrix_from_rows

Returns a new matrix with the specified rows.

Math Functions

simd_add

Returns the sum of two matrices.

simd_sub

Returns the difference of two matrices.

simd_mul

Returns the product of a scalar and a matrix.

simd_mul

Returns the product of two matrices.

simd_mul

Returns the product of two matrices.

Equality Functions

simd_equal

Returns true if every element in a matrix is exactly equal to the corresponding element in a second matrix.

simd_almost_equal_elements

Returns true if every element in a matrix is within a specified tolerance to the corresponding element in a second matrix.

simd_almost_equal_elements_relative

Returns true if every element in a matrix is within a specified single-precision relative tolerance to the corresponding element in a second matrix.

Linear Combination Function

simd_linear_combination

Returns the linear combination of two scalar values and two matrices.

Transpose Function

simd_transpose

Returns the transpose of a matrix.

See Also

Matrices: Single-Precision Values

simd_float3x2

A matrix of three columns and two rows containing single-precision values.

simd_float4x2

A matrix of four columns and two rows containing single-precision values.

simd_float2x3

A matrix of two columns and three rows containing single-precision values.

simd_float3x3

A matrix of three columns and three rows containing single-precision values.

simd_float4x3

A matrix of four columns and three rows containing single-precision values.

simd_float2x4

A matrix of two columns and four rows containing single-precision values.

simd_float3x4

A matrix of three columns and four rows containing single-precision values.

simd_float4x4

A matrix of four columns and four rows containing single-precision values.