Matrices
2x2 matrices
bmat2
2x2 matrices of booleans (8 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 2, 2) shaped numpy array with dtype np.ubyte |
imat2
2x2 matrices of integers (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 2, 2) shaped numpy array with dtype np.int8 |
umat2
2x2 matrices of unsigned integers (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 2, 2) shaped numpy array with dtype np.uint8 |
Source code in glm/mat234.py
hmat2
2x2 matrices of half precision floats (16 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 2, 2) shaped numpy array with dtype np.float16 |
Source code in glm/mat234.py
mat2
2x2 matrices of double precision floats (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 2, 2) shaped numpy array with dtype np.float32 |
Source code in glm/mat234.py
dmat2
2x2 matrices of double precision floats (64 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 2, 2) shaped numpy array with dtype np.float64 |
Source code in glm/mat234.py
3x3 matrices
bmat3
3x3 matrices of booleans (8 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 3, 3) shaped numpy array with dtype np.uint8 |
imat3
3x3 matrices of integers (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 3, 3) shaped numpy array with dtype np.int32 |
Source code in glm/mat234.py
umat3
3x3 matrices of unsigned integers (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 3, 3) shaped numpy array with dtype np.uint32 |
Source code in glm/mat234.py
hmat3
3x3 matrices of half precision floats (16 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 3, 3) shaped numpy array with dtype np.float16 |
Source code in glm/mat234.py
mat3
3x3 matrices of single precision floats (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 3, 3) shaped numpy array with dtype np.float32 |
Source code in glm/mat234.py
dmat3
3x3 matrices of double precision floats (64 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 3, 3) shaped numpy array with dtype np.float64 |
Source code in glm/mat234.py
4x4 matrices
bmat4
4x4 matrices of booleans (8 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 4, 4) shaped numpy array with dtype np.uint8 |
Source code in glm/mat234.py
imat4
4x4 matrices of integers (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 4, 4) shaped numpy array with dtype np.int32 |
Source code in glm/mat234.py
umat4
4x4 matrices of unsigned integers (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 4, 4) shaped numpy array with dtype np.uint32 |
Source code in glm/mat234.py
hmat4
4x4 matrices of half precision floats (16 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 4, 4) shaped numpy array with dtype np.float16 |
Source code in glm/mat234.py
mat4
4x4 matrices of single precision floats (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 4, 4) shaped numpy array with dtype np.float32 |
Source code in glm/mat234.py
dmat4
4x4 matrices of double precision floats (64 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count, 4, 4) shaped numpy array with dtype np.float64 |