home
 
 index of namespace default
 
 index of project tkmath
 
 index of module tkmath

Class tkmath.Matrix2d


SynopsisThis class represents a double precision 2x2 square matrix.

  Base classes:
  Methods:
Method add
Add another matrix m to this instance
Signature
add(Matrix2dm)
Arguments
Matrix2dmmatrix to add

 
 top of page
Method det
Calculate determinant of matrix
Signature
det():Double
Returns
Doublevalue of determinant

 
 top of page
Method getA
Get value of a element
Signature
getA():Double
Returns
Doublevalue of a element

 
 top of page
Method getAbs
Calculate the Hilbert-Schmidt norm of the matrix
Signature
getAbs():Double
Returns
Doublescalar matrix norm value

 
 top of page
Method getAbsSqr
Calculate the squared Hilbert-Schmidt norm of the matrix
Signature
getAbsSqr():Double
Returns
Doublescalar matrix norm value

 
 top of page
Method getB
Get value of b element
Signature
getB():Double
Returns
Doublevalue of b element

 
 top of page
Method getC
Get value of c element
Signature
getC():Double
Returns
Doublevalue of c element

 
 top of page
Method getCol
Get column c values
Signature
getCol(intc)
 :Vector2d
Arguments
intccolumn number
Returns
Vector2dvector with values from column c

 
 top of page
Method getD
Get value of d element
Signature
getD():Double
Returns
Doublevalue of d element

 
 top of page
Method getRow
Get row r values
Signature
getRow(intr)
 :Vector2d
Arguments
intrrow number
Returns
Vector2dvector with values from row r

 
 top of page
Method getString
Get string representation of matrix ((a, b), (c, d))
Signature
getString():String
Returns
Stringstring representation of matrix

 
 top of page
Method init
Initialise matrix
Signature
init(Doublava,
  Doublevb,
  Doublevc,
  Doublevd 
  )  
Arguments
Doublavavalue for a
Doublevbvalue for b
Doublevcvalue for c
Doublevdvalue for d

 
 top of page
Method initCol
Initialise column c of matrix
Signature
initCol(intc,
  Doubleva,
  Doublevb 
  )  
Arguments
intccolumn number
Doublevavalue for first element
Doublevbvalue for second element

 
 top of page
Method initColV
Initialise column c of matrix
Signature
initColV(intc,
  Vector2dv 
  )  
Arguments
intccolumn number
Vector2dvvector with values

 
 top of page
Method initf
Initialise matrix
Signature
initf(floatva,
  floatvb,
  floatvc,
  floatvd 
  )  
Arguments
floatvavalue for a
floatvbvalue for b
floatvcvalue for c
floatvdvalue for d

 
 top of page
Method initIdentity
Initialize with identity matrix.
Signature
initIdentity()

 
 top of page
Method initRow
Initialise row r of matrix
Signature
initRow(intr,
  Doubleva,
  Doublevb 
  )  
Arguments
intrrow number
Doublevavalue for first element
Doublevbvalue for second element

 
 top of page
Method initRowV
Initialise row r of matrix
Signature
initRowV(intr,
  Vector2dv 
  )  
Arguments
intrrow number
Vector2dvvector with values

 
 top of page
Method invert
Calculate inversion of matrix, so that A*A-1=U
Signature
invert()

 
 top of page
Method mul
Multiply this instance with matrix m
Signature
mul(Matrix2dm)
Arguments
Matrix2dmmatrix to multiply

 
 top of page
Method muld
Multiply this instance with scalar value v
Signature
muld(Doublev)
Arguments
Doublevvalue to multiply

 
 top of page
Method mulv
Multiply this instance with a 2dim vector
Signature
mulv(Vector2dv)
 :Vector2d
Arguments
Vector2dvvector to multiply
Returns
Vector2dresulting vector

 
 top of page
Method New
Initialise and return new instance of Matrix2d
Signature
New(Doubleva,
  Doublevb,
  Doublevc,
  Doublevd 
  )  
 :Matrix2d
Arguments
Doublevavalue for a
Doublevbvalue for b
Doublevcvalue for c
Doublevdvalue for d
Returns
Matrix2dnew instance of Matrix2d

 
 top of page
Method setA
Set a element to v
Signature
setA(Doublev)
Arguments
Doublevnew value for a

 
 top of page
Method setB
Set b element to v
Signature
setB(Doublev)
Arguments
Doublevnew value for b

 
 top of page
Method setC
Set c element to v
Signature
setC(Doublev)
Arguments
Doublevnew value for c

 
 top of page
Method setCol
Set column c with values from v
Signature
setCol(intc,
  Vector2dv 
  )  
Arguments
intccolumn number
Vector2dvVector2f instance

 
 top of page
Method setD
Set d element to v
Signature
setD(Doublev)
Arguments
Doublevnew value for d

 
 top of page
Method setRow
Set row r with values from v
Signature
setRow(intr,
  Vector2dv 
  )  
Arguments
intrrow number
Vector2dvVector2f instance

 
 top of page
Method sub
Substract another matrix m from this instance
Signature
sub(Matrix2dm)
Arguments
Matrix2dmmatrix to substract

 
 top of page
Method transpose
Transpose matrix
Signature
transpose()

 
 top of page
Method unit
Normalise matrix with Hilbert-Schmidt norm
Signature
unit()

 
 top of page
Method unitScale
Normalise matrix with Hilbert-Schmidt norm and multiply with v afterwards
Signature
unitScale(Doublev)
Arguments
Doublevvalue to scale matrix

 
 top of page
 

Project Modules:tkmath 
Project Classes:Complexd , Complexf , Math , Matrix , Matrix2d , Matrix2f , Matrix3d , Matrix3f , Matrix4d , Matrix4f , Quaterniond , Quaternionf , Vector2d , Vector2f , Vector3d , Vector3f , Vector4d , Vector4f 
Project Functions:absd , absf , acoscd , acoscf , acosd , acosf , acoshcd , acoshcf , acoshd , acoshf , asincd , asincf , asind , asinf , asinhcd , asinhcf , asinhd , asinhf , atan2d , atan2f , atancd , atancf , atand , atanf , atanhcd , atanhcf , atanhd , atanhf , ceild , ceilf , complexd , complexf , complexfPolar , complexfPolar , coscd , coscf , cosd , cosf , coshcd , coshcf , coshd , coshf , exp10d , exp10f , exp2d , exp2f , expcd , expcf , expd , expf , floord , floorf , hypotd , hypotf , log10d , log10f , log2d , log2f , logcd , logcf , logd , logf , matrix2d , matrix2f , matrix3d , matrix3f , matrix4d , matrix4f , modd , modf , powcd , powcf , powd , powf , quaterniond , quaternionf , relCmpd , relCmpf , relErrCmpd , relErrCmpf , roundd , roundf , sincd , sincf , sind , sinf , sinhcd , sinhcf , sinhd , sinhf , sqrtcd , sqrtcf , sqrtd , sqrtf , tancf , tancf , tand , tanf , tanhcd , tanhcf , tanhd , tanhf , vector2d , vector2f , vector3d , vector3f , vector4d , vector4f 
All Namespaces:default , ui 
All Projects:core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit 


auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54