glsl-frobenius

1.0.0 • Public • Published

glsl-frobenius

Computes the Frobenius norm of a matrix in glsl (that is the sum of the squares of the entries of the matrix).

Example

#pragma glslify : frob = require(glsl-frobenius)

Usage

Install with npm:

npm install glsl-frobenius

Then use with glslify.

API

#pragma glslify : frobenius = require(glsl-frobenius)

float frobenius(float|mat2|mat3|mat4 m)

Computes the Frobenius norm of m

  • m is a matrix

Returns The Frobenius norm of m

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i glsl-frobenius

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hughsk
  • mikolalysenko
  • mattdesl
  • chrisdickinson
  • yoshuawuyts
  • mikkoh
  • rezaali
  • tatumcreative
  • wwwtyro
  • thibauts
  • bpostlethwaite
  • dfcreative
  • erkaman
  • gre
  • rreusser
  • vorg
  • archmoj
  • dy