LinearAlgebra

An asset by Gan_HOPE326
The page banner background of a mountain and forest
LinearAlgebra hero image

Quick Information

0 ratings
LinearAlgebra icon image
Gan_HOPE326
LinearAlgebra

A small library to do some complex linear algebra (matrix and vector operations) in GDScript. Includes QR decomposition and a basic diagonalization algorithm for symmetric matrices. Due to GDScript's speed, it's oriented towards performance, not ease of use, so the interface may not be intuitive!

Supported Engine Version
3.2
Version String
0.1
License Version
MIT
Support Level
community
Modified Date
3 years ago
Git URL
Issue URL

godot-linalg

Linear Algebra library in GDScript for Godot Engine

All methods are optimised for maximum speed. They take arrays and assume the right dimension for them. If the inputs aren't right they'll crash. Third input is used for the answer, preallocated. There are no conditional branchings. Just use the method appropriate to the situation. The names are coded to reflect that. s = scalar, v = vector and m = matrix. So for example

dot_vm(v, M)

is a dot product between vector and matrix (in that order). Wherever the in_place argument is provided, it is possible to perform the operation on the object itself instead of instantiating a new one (this too optimises performance). So for example

transpose(M, true)

will turn M into its own transpose by reference, whereas

 MT = transpose(M)

will leave M unaltered.

Most method names are self-explanatory. The less intuitive are:

A small library to do some complex linear algebra (matrix and vector operations) in GDScript. Includes QR decomposition and a basic diagonalization algorithm for symmetric matrices. Due to GDScript's speed, it's oriented towards performance, not ease of use, so the interface may not be intuitive!

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
LinearAlgebra icon image
Gan_HOPE326
LinearAlgebra

A small library to do some complex linear algebra (matrix and vector operations) in GDScript. Includes QR decomposition and a basic diagonalization algorithm for symmetric matrices. Due to GDScript's speed, it's oriented towards performance, not ease of use, so the interface may not be intuitive!

Supported Engine Version
3.2
Version String
0.1
License Version
MIT
Support Level
community
Modified Date
3 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers