class Yadriggy::C::CType::OclArray

OpenCL array.

Public Class Methods

new(size) click to toggle source
# File lib/yadriggy/c/opencl.rb, line 46
def initialize(size)
  @size = size
end
type() click to toggle source
# File lib/yadriggy/c/opencl.rb, line 50
def self.type()
  Float32Type
end

Public Instance Methods

copyfrom(array, len) click to toggle source
# File lib/yadriggy/c/opencl.rb, line 66
def copyfrom(array, len) ! Integer
  typedecl array: arrayof(Float32), len: Integer,
           native: 'return 0;'
  return 0
end
copyto(array, len) click to toggle source
# File lib/yadriggy/c/opencl.rb, line 72
def copyto(array, len) ! Integer
  typedecl array: arrayof(Float32), len: Integer,
           native: 'return 0;'
  return 0
end
size() click to toggle source
# File lib/yadriggy/c/opencl.rb, line 58
def size()
  @size
end
sizes() click to toggle source
# File lib/yadriggy/c/opencl.rb, line 62
def sizes()
  [ @size ]
end
type() click to toggle source
# File lib/yadriggy/c/opencl.rb, line 54
def type()
  Float32Type
end