Class: Matriz

Inherits:
Object
  • Object
show all
Defined in:
lib/matriz.rb

Direct Known Subclasses

Densa, Dispersa

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mat) ⇒ Matriz

constructor



7
8
# File 'lib/matriz.rb', line 7

def initialize(mat) #constructor
end

Instance Attribute Details

#matrizObject

Returns the value of attribute matriz.



5
6
7
# File 'lib/matriz.rb', line 5

def matriz
  @matriz
end

#mColObject

Returns the value of attribute mCol.



5
6
7
# File 'lib/matriz.rb', line 5

def mCol
  @mCol
end

#nFilObject

Returns the value of attribute nFil.



5
6
7
# File 'lib/matriz.rb', line 5

def nFil
  @nFil
end

Instance Method Details

#*(mat) ⇒ Object

Metodo para multiplicacion dos matrices



19
20
# File 'lib/matriz.rb', line 19

def *(mat)
end

#+(mat) ⇒ Object

Metodo para sumar dos matrices



11
12
# File 'lib/matriz.rb', line 11

def +(mat)
end

#-(mat) ⇒ Object

Metodo para restar dos matrices



15
16
# File 'lib/matriz.rb', line 15

def -(mat)
end

#deterObject

Metodo para calcular el determinante de una matriz



31
32
33
# File 'lib/matriz.rb', line 31

def deter
  
end

#igual(mat) ⇒ Object

Metodo para comprobar si dos matrices son iguales



27
28
# File 'lib/matriz.rb', line 27

def igual (mat)
end

#tObject

Metodo para calcular la traspuesta de una matriz



36
37
# File 'lib/matriz.rb', line 36

def t
end

#to_sObject

Metodo para convertir la matriz a string



40
41
# File 'lib/matriz.rb', line 40

def to_s
end

#x(n) ⇒ Object

Metodo para multiplicar una matriz por un escalar



23
24
# File 'lib/matriz.rb', line 23

def x(n)
end