Skip to content

Commit

Permalink
Add an example for creating kernel by its name
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Dec 20, 2017
1 parent 00b73c8 commit 1461621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/meta/src/base_api/kernel.sg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Kernel k = kernel("GaussianKernel")
4 changes: 2 additions & 2 deletions src/shogun/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ IF (CTAGS_FOUND)
SET(CTAGS_FILE ${CMAKE_CURRENT_BINARY_DIR}/tags CACHE INTERNAL "" FORCE)
ADD_CUSTOM_COMMAND(OUTPUT ${CTAGS_FILE}
COMMAND ${CTAGS_EXECUTABLE} -f ${CTAGS_FILE}
# functions, classes, macroses, enumerations, enumerators, typedefs
--c++-kinds=fcdgetp
# classes, enums
--c++-kinds=+cg
--fields=+im
-h "h.hpp"
-R ${CMAKE_SOURCE_DIR})
Expand Down

0 comments on commit 1461621

Please sign in to comment.