def options_type(self): """Retrieves the types of the options (layout, transpose, side, etc.)""" if self.options: definitions = [ "const " + convert.option_to_clblast(o) for o in self.options ] return [", ".join(definitions)] return []
def options_doc(self): """Retrieves the documentation of the options""" if self.options: definitions = [ "`const " + convert.option_to_clblast(o) + " " + o + "`: " + convert.option_to_documentation(o) for o in self.options ] return definitions return []
def options_def_c(self): """As above, but now for the C API""" if self.options: definitions = [ "const CLBlast" + convert.option_to_clblast(o) + " " + o for o in self.options ] return [", ".join(definitions)] return []
def options_cast(self, indent): """As above, but now casted to CLBlast data-types""" if self.options: options = [ "static_cast<clblast::" + convert.option_to_clblast(o) + ">(" + o + ")" for o in self.options ] return [(",\n" + indent).join(options)] return []
def options_doc(self): """Retrieves the documentation of the options""" if self.options: definitions = ["`const " + convert.option_to_clblast(o) + " " + o + "`: " + convert.option_to_documentation(o) for o in self.options] return definitions return []
def options_type(self): """Retrieves the types of the options (layout, transpose, side, etc.)""" if self.options: definitions = ["const " + convert.option_to_clblast(o) for o in self.options] return [", ".join(definitions)] return []
def options_def_c(self): """As above, but now for the C API""" if self.options: definitions = ["const CLBlast" + convert.option_to_clblast(o) + " " + o for o in self.options] return [", ".join(definitions)] return []
def options_cast(self, indent): """As above, but now casted to CLBlast data-types""" if self.options: options = ["static_cast<clblast::" + convert.option_to_clblast(o) + ">(" + o + ")" for o in self.options] return [(",\n" + indent).join(options)] return []