Class: Matrix

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

Instance Method Summary collapse

Instance Method Details

#to_alglib_matrixObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/alglib.rb', line 6

def to_alglib_matrix
    a_matrix=Alglib_ext::Real2dArray.new
    a_matrix.setbounds(0,row_size-1,0,column_size-1)
    for x in 0...row_size
        for y in 0...column_size
            a_matrix[x,y]=self[x,y]
        end
    end
    a_matrix
end