Class: Matriz
- Inherits:
-
Object
- Object
- Matriz
- Defined in:
- lib/matriz.rb
Instance Attribute Summary collapse
-
#matriz ⇒ Object
Returns the value of attribute matriz.
-
#mCol ⇒ Object
Returns the value of attribute mCol.
-
#nFil ⇒ Object
Returns the value of attribute nFil.
Instance Method Summary collapse
-
#*(mat) ⇒ Object
Metodo para multiplicacion dos matrices.
-
#+(mat) ⇒ Object
Metodo para sumar dos matrices.
-
#-(mat) ⇒ Object
Metodo para restar dos matrices.
-
#deter ⇒ Object
Metodo para calcular el determinante de una matriz.
-
#igual(mat) ⇒ Object
Metodo para comprobar si dos matrices son iguales.
-
#initialize(mat) ⇒ Matriz
constructor
constructor.
-
#t ⇒ Object
Metodo para calcular la traspuesta de una matriz.
-
#to_s ⇒ Object
Metodo para convertir la matriz a string.
-
#x(n) ⇒ Object
Metodo para multiplicar una matriz por un escalar.
Constructor Details
#initialize(mat) ⇒ Matriz
constructor
7 8 |
# File 'lib/matriz.rb', line 7 def initialize(mat) #constructor end |
Instance Attribute Details
#matriz ⇒ Object
Returns the value of attribute matriz.
5 6 7 |
# File 'lib/matriz.rb', line 5 def matriz @matriz end |
#mCol ⇒ Object
Returns the value of attribute mCol.
5 6 7 |
# File 'lib/matriz.rb', line 5 def mCol @mCol end |
#nFil ⇒ Object
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 |
#deter ⇒ Object
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 |
#t ⇒ Object
Metodo para calcular la traspuesta de una matriz
36 37 |
# File 'lib/matriz.rb', line 36 def t end |
#to_s ⇒ Object
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 |