|
Class: SquareMatrix
Object
|
+--Collection
|
+--SequenceableCollection
|
+--AbstractMultidimensionalArray
|
+--AbstractMatrix
|
+--Matrix
|
+--SquareMatrix
|
+--Matrix2_2
|
+--Matrix3_3
- Package:
- stx:libbasic2
- Category:
- Collections-MultiDimensional
- Version:
- rev:
1.7
date: 2023/06/03 12:32:43
- user: cg
- file: SquareMatrix.st directory: libbasic2
- module: stx stc-classLibrary: libbasic2
documentation to be added.
class:
<a short class summary here, describing what instances represent>
responsibilities:
<describing what my main role is>
collaborators:
<describing with whom and how I talk to>
API:
<public api and main messages>
example:
<a one-line examples on how to use - can also be in a separate example method>
implementation:
<implementation points>
[instance variables:]
[class variables:]
copyrightCOPYRIGHT (c) 2019 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
instance creation
-
newForRows: nRows
-
SquareMatrix newForRows:3
-
withAll: elements
-
Matrix3_3 withAll:#(11 12 13 21 22 23 31 32 33)
matrix operations
-
determinant
-
Answer the determinant of this matrix.
Note that if your only interest in the determinant is to decide whether or not the matrix is singular,
you're better off using #isSingular which is not subject to numeric overflow.
Usage example(s):
^ self determinantByLuDecomposition
|
Usage example(s):
(Matrix identity:3) determinant
|m|
m := (Matrix[3][3]) contents:#(3 2 4 2 -5 -1 1 -2 2).
self assert:(m determinant = -42).
|
-
determinantByCofactors
-
Answer the determinant of this matrix.
queries
-
isSquare
-
true if this is a square matrix
|