type=class
superclass=Object
included=
extended=
library=matrix

[[c:Numeric]]ǤȤ򰷤饹Ǥ



m * n Ĥοa(i,j)

  [ a(0,0) a(0,1) a(0,2)  a(0,3) ... a(0,n-1)   ]
  [ a(1,0) a(1,1) a(1,2)  a(1,3) ... a(1,n-1)   ]
  [ a(2,0) a(2,1) a(2,2)  a(2,3) ... a(2,n-1)   ]
  [                                             ]
  [ a(m-1,0)                         a(m-1,n-1) ]

Τ褦ˡĲɽˤ路Τ(m,n)ιȤ
m=nιm(square matrix)Ȥ

夫iܤβο¤Ӥi(the i-th row)
jܤνĤο¤Ӥj(the j-th column)Ȥ

(m,n)ϡ
礭nι()٥ȥmĽĤ¤٤ΤȤߤʤȤǤ뤷
礭m()٥ȥnĲ¤٤ΤȤߤʤȤǤ롣

iԡjˤa(i,j)(i,j)(the (i,j)-th element)Ȥ

i=ja(i,j)г(diagonal element)
ʳǤг(nondiagonal element)Ȥ





=== Complex 饹Ȥʻ

require 'complex'뤳Ȥˤäơ
Matrix֥ȤǤ[[c:Complex]]饹˳ĥ롣
¿Υ᥽åɤϡγĥ줿Matrix饹Ǥ⡢̤ư롣

ϡǤʣǿִ᥽å Matrix#conjugate Ǥ롣

  require 'matrix'
  require 'complex'
  
  class Matrix
    def conjugate
      collect{|e| e.conjugate }
    end
  end
