$ cnpm install glsl-frobenius
Computes the Frobenius norm of a matrix in glsl (that is the sum of the squares of the entries of the matrix).
#pragma glslify : frob = require(glsl-frobenius)
Install with npm:
npm install glsl-frobenius
Then use with glslify.
#pragma glslify : frobenius = require(glsl-frobenius)
float frobenius(float|mat2|mat3|mat4 m)
Computes the Frobenius norm of m
m
is a matrixReturns The Frobenius norm of m
MIT
Copyright 2014 - 2017 © taobao.org |