eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SquareMatrix':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: SquareMatrix


Inheritance:

   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

Description:


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:]

copyright

COPYRIGHT (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.

Class protocol:

instance creation
o  newForRows: nRows
SquareMatrix newForRows:3

o  withAll: elements
Matrix3_3 withAll:#(11 12 13 21 22 23 31 32 33)


Instance protocol:

matrix operations
o  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). 

o  determinantByCofactors
Answer the determinant of this matrix.

queries
o  isSquare
true if this is a square matrix



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 08:28:12 GMT