Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Main:Matrix/Methods

Template page
Revision as of 06:32, 21 December 2024 by PenguinEncounter (talk | contribs) (WIP)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Data access

getColumn


Gets a Vector containing the values of the requested column of the matrix.

Arguments Return Type
getColumn(column: integer) Vector

Utility methods

copy


Creates a copy of this matrix. Creating a copy will make a new Matrix with the same size and values, disconnected from the original Matrix. Editing the copy (through in-place operations) will not affect the original.

Arguments Return Type
copy() new Matrix

set


Assigns the values from another vector of the same size to this vector, in place. To create a new instance, see copy.

Arguments Return Type
set(Matrix other) self Matrix

reset


Sets this vector to the identity matrix of the same size.

Arguments Return Type
reset() self Matrix