StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
671 B
44 lines
671 B
4 years ago
|
# glsl-inverse
|
||
|
Invert a matrix in GLSL.
|
||
|
|
||
|
# Example
|
||
|
|
||
|
```glsl
|
||
|
#pragma glslify: inverse = require(glsl-inverse)
|
||
|
|
||
|
void main() {
|
||
|
mat3 m = mat3(1, 2, -3,
|
||
|
4, 0, 6,
|
||
|
7.1, 8, 9);
|
||
|
|
||
|
mat3 mi = inverse(m);
|
||
|
|
||
|
//now mi is the inverse of m
|
||
|
}
|
||
|
```
|
||
|
|
||
|
# Usage
|
||
|
|
||
|
Install with npm:
|
||
|
|
||
|
```
|
||
|
npm install glsl-inverse
|
||
|
```
|
||
|
|
||
|
Then use with [glslify](https://github.com/stackgl/glslify).
|
||
|
|
||
|
# API
|
||
|
|
||
|
```glsl
|
||
|
#pragma glslify: inverse = require(glsl-inverse)
|
||
|
```
|
||
|
|
||
|
### `mi = inverse(float|mat2|mat3|mat4 m)`
|
||
|
Computes inverse of m
|
||
|
|
||
|
* `m` is a matrix to invert, either `float, mat2, mat3` or `mat4`
|
||
|
|
||
|
**Returns** The inverse of `m`
|
||
|
|
||
|
# License
|
||
|
(c) 2014 Mikola Lysenko. MIT License
|