Sha256: e62b132a12cd662dcfd5dcf1e07b4343d5e8f54449e0f164267217a2bca2815e
Contents?: true
Size: 135 Bytes
Versions: 2
Compression:
Stored size: 135 Bytes
Contents
class Matrix def add_ones matrix = self.to_a.map{|i| i.insert(0,1)} matrix = Matrix.rows(matrix,copy=true) matrix end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aprendizaje_maquina-0.1.1 | lib/aprendizaje_maquina/matrixx.rb |
aprendizaje_maquina-0.1.0 | lib/aprendizaje_maquina/matrixx.rb |