Sha256: 99f45b851f4fe55274988f58d69f004e9a52b5f07324bd91e19e01c8c1b5463f

Contents?: true

Size: 275 Bytes

Versions: 1

Compression:

Stored size: 275 Bytes

Contents

module GSL

  class Vector
    def _dump(v)
      Marshal.dump( self.to_a )
    end

    def self._load(arr)
      arry = Marshal.load(arr)
      return GSL::Vector.alloc(arry)
    end

  end

  class Matrix
     class <<self
        alias :diag :diagonal
     end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
classifier-1.3.5 lib/classifier/extensions/vector_serialize.rb