Skip to content

Instantly share code, notes, and snippets.

@ghorn
Created January 27, 2015 09:12
Show Gist options
  • Save ghorn/1d3be472ec61f666e130 to your computer and use it in GitHub Desktop.
Save ghorn/1d3be472ec61f666e130 to your computer and use it in GitHub Desktop.
SXElement not completely internal
$ grep -n10 "std::vector<(casadi::SXElement)>" ~/casadi-2.2.0/build/swig/json/casadi.json
44434- "methodDocslink": "",
44435- "methodKind": "Normal"
44436- },
44437- {
44438- "methodDocs": "",
44439- "methodName": "mul_no_alloc",
44440- "methodParams": [
44441- "r.q(const).casadi::Matrix<(casadi::SXElement)>",
44442- "r.q(const).casadi::Matrix<(casadi::SXElement)>",
44443- "r.casadi::Matrix<(casadi::SXElement)>",
44444: "r.std::vector<(casadi::SXElement)>",
44445- "bool"
44446- ],
44447- "methodReturn": "void",
44448- "methodDocslink": "",
44449- "methodKind": "Static"
44450- },
44451- {
44452- "methodDocs": "",
44453- "methodName": "mul_no_alloc",
44454- "methodParams": [
44455- "r.q(const).casadi::Matrix<(casadi::SXElement)>",
44456- "r.q(const).casadi::Matrix<(casadi::SXElement)>",
44457- "r.casadi::Matrix<(casadi::SXElement)>",
44458: "r.std::vector<(casadi::SXElement)>"
44459- ],
44460- "methodReturn": "void",
44461- "methodDocslink": "",
44462- "methodKind": "Static"
44463- },
44464- {
44465- "methodDocs": "",
44466- "methodName": "mul_no_alloc",
44467- "methodParams": [
44468- "r.q(const).casadi::Matrix<(casadi::SXElement)>",
44469: "r.q(const).std::vector<(casadi::SXElement)>",
44470: "r.std::vector<(casadi::SXElement)>",
44471- "bool"
44472- ],
44473- "methodReturn": "void",
44474- "methodDocslink": "",
44475- "methodKind": "Static"
44476- },
44477- {
44478- "methodDocs": "",
44479- "methodName": "mul_no_alloc",
44480- "methodParams": [
44481- "r.q(const).casadi::Matrix<(casadi::SXElement)>",
44482: "r.q(const).std::vector<(casadi::SXElement)>",
44483: "r.std::vector<(casadi::SXElement)>"
44484- ],
44485- "methodReturn": "void",
44486- "methodDocslink": "",
44487- "methodKind": "Static"
44488- },
44489- {
44490- "methodDocs": "",
44491- "methodName": "mul_no_alloc_nn",
44492- "methodParams": [
44493- "r.q(const).casadi::Matrix<(casadi::SXElement)>",
--
44520- ],
44521- "methodReturn": "void",
44522- "methodDocslink": "",
44523- "methodKind": "Static"
44524- },
44525- {
44526- "methodDocs": "",
44527- "methodName": "mul_no_alloc_tn",
44528- "methodParams": [
44529- "r.q(const).casadi::Matrix<(casadi::SXElement)>",
44530: "r.q(const).std::vector<(casadi::SXElement)>",
44531: "r.std::vector<(casadi::SXElement)>"
44532- ],
44533- "methodReturn": "void",
44534- "methodDocslink": "",
44535- "methodKind": "Static"
44536- },
44537- {
44538- "methodDocs": "",
44539- "methodName": "mul_no_alloc_nn",
44540- "methodParams": [
44541- "r.q(const).casadi::Matrix<(casadi::SXElement)>",
44542: "r.q(const).std::vector<(casadi::SXElement)>",
44543: "r.std::vector<(casadi::SXElement)>"
44544- ],
44545- "methodReturn": "void",
44546- "methodDocslink": "",
44547- "methodKind": "Static"
44548- },
44549- {
44550- "methodDocs": "",
44551- "methodName": "T",
44552- "methodParams": [],
44553- "methodReturn": "casadi::Matrix<(casadi::SXElement)>",
--
45198- "r.q(const).casadi::Matrix<(casadi::SXElement)>"
45199- ],
45200- "methodReturn": "casadi::Matrix<(casadi::SXElement)>",
45201- "methodDocslink": "",
45202- "methodKind": "Normal"
45203- },
45204- {
45205- "methodDocs": "",
45206- "methodName": "zz_addMultiple",
45207- "methodParams": [
45208: "r.q(const).std::vector<(casadi::SXElement)>",
45209: "r.std::vector<(casadi::SXElement)>",
45210- "bool"
45211- ],
45212- "methodReturn": "void",
45213- "methodDocslink": "",
45214- "methodKind": "Normal"
45215- },
45216- {
45217- "methodDocs": "",
45218- "methodName": "zz_addMultiple",
45219- "methodParams": [
45220: "r.q(const).std::vector<(casadi::SXElement)>",
45221: "r.std::vector<(casadi::SXElement)>"
45222- ],
45223- "methodReturn": "void",
45224- "methodDocslink": "",
45225- "methodKind": "Normal"
45226- },
45227- {
45228- "methodDocs": "",
45229- "methodName": "zz_project",
45230- "methodParams": [
45231- "r.q(const).casadi::Sparsity"
--
45557- "r.q(const).std::vector<(int)>"
45558- ],
45559- "methodReturn": "void",
45560- "methodDocslink": "",
45561- "methodKind": "Normal"
45562- },
45563- {
45564- "methodDocs": "",
45565- "methodName": "data",
45566- "methodParams": [],
45567: "methodReturn": "std::vector<(casadi::SXElement)>",
45568- "methodDocslink": "",
45569- "methodKind": "Normal"
45570- },
45571- {
45572- "methodDocs": "",
45573- "methodName": "data",
45574- "methodParams": [],
45575: "methodReturn": "q(const).std::vector<(casadi::SXElement)>",
45576- "methodDocslink": "",
45577- "methodKind": "Normal"
45578- },
45579- {
45580- "methodDocs": "",
45581- "methodName": "sparsity",
45582- "methodParams": [],
45583- "methodReturn": "q(const).casadi::Sparsity",
45584- "methodDocslink": "",
45585- "methodKind": "Normal"
--
45589- "methodName": "sparsityRef",
45590- "methodParams": [],
45591- "methodReturn": "casadi::Sparsity",
45592- "methodDocslink": "",
45593- "methodKind": "Normal"
45594- },
45595- {
45596- "methodDocs": "",
45597- "methodName": "set",
45598- "methodParams": [
45599: "r.q(const).std::vector<(casadi::SXElement)>",
45600- "casadi::SparsityType"
45601- ],
45602- "methodReturn": "void",
45603- "methodDocslink": "",
45604- "methodKind": "Normal"
45605- },
45606- {
45607- "methodDocs": "",
45608- "methodName": "set",
45609- "methodParams": [
45610: "r.q(const).std::vector<(casadi::SXElement)>"
45611- ],
45612- "methodReturn": "void",
45613- "methodDocslink": "",
45614- "methodKind": "Normal"
45615- },
45616- {
45617- "methodDocs": "",
45618- "methodName": "get",
45619- "methodParams": [
45620: "r.std::vector<(casadi::SXElement)>",
45621- "casadi::SparsityType"
45622- ],
45623- "methodReturn": "void",
45624- "methodDocslink": "",
45625- "methodKind": "Normal"
45626- },
45627- {
45628- "methodDocs": "",
45629- "methodName": "get",
45630- "methodParams": [
45631: "r.std::vector<(casadi::SXElement)>"
45632- ],
45633- "methodReturn": "void",
45634- "methodDocslink": "",
45635- "methodKind": "Normal"
45636- },
45637- {
45638- "methodDocs": "",
45639- "methodName": "set",
45640- "methodParams": [
45641- "r.q(const).casadi::Matrix<(casadi::SXElement)>",
--
45675- "methodReturn": "void",
45676- "methodDocslink": "",
45677- "methodKind": "Normal"
45678- },
45679- {
45680- "methodDocs": "",
45681- "methodName": "triplet",
45682- "methodParams": [
45683- "r.q(const).std::vector<(int)>",
45684- "r.q(const).std::vector<(int)>",
45685: "r.q(const).std::vector<(casadi::SXElement)>"
45686- ],
45687- "methodReturn": "casadi::Matrix<(casadi::SXElement)>",
45688- "methodDocslink": "",
45689- "methodKind": "Static"
45690- },
45691- {
45692- "methodDocs": "",
45693- "methodName": "triplet",
45694- "methodParams": [
45695- "r.q(const).std::vector<(int)>",
45696- "r.q(const).std::vector<(int)>",
45697: "r.q(const).std::vector<(casadi::SXElement)>",
45698- "int",
45699- "int"
45700- ],
45701- "methodReturn": "casadi::Matrix<(casadi::SXElement)>",
45702- "methodDocslink": "",
45703- "methodKind": "Static"
45704- },
45705- {
45706- "methodDocs": "",
45707- "methodName": "triplet",
45708- "methodParams": [
45709- "r.q(const).std::vector<(int)>",
45710- "r.q(const).std::vector<(int)>",
45711: "r.q(const).std::vector<(casadi::SXElement)>",
45712- "r.q(const).std::pair<(int,int)>"
45713- ],
45714- "methodReturn": "casadi::Matrix<(casadi::SXElement)>",
45715- "methodDocslink": "",
45716- "methodKind": "Static"
45717- },
45718- {
45719- "methodDocs": "",
45720- "methodName": "inf",
45721- "methodParams": [
--
46067- "r.q(const).casadi::Matrix<(casadi::SXElement)>"
46068- ],
46069- "methodReturn": "casadi::Matrix<(casadi::SXElement)>",
46070- "methodDocslink": "",
46071- "methodKind": "Constructor"
46072- },
46073- {
46074- "methodDocs": "",
46075- "methodName": "CONSTRUCTOR",
46076- "methodParams": [
46077: "r.q(const).std::vector<(std::vector<(casadi::SXElement)>)>"
46078- ],
46079- "methodReturn": "casadi::Matrix<(casadi::SXElement)>",
46080- "methodDocslink": "",
46081- "methodKind": "Constructor"
46082- },
46083- {
46084- "methodDocs": "",
46085- "methodName": "CONSTRUCTOR",
46086- "methodParams": [
46087- "r.q(const).casadi::Sparsity"
46088- ],
46089- "methodReturn": "casadi::Matrix<(casadi::SXElement)>",
46090- "methodDocslink": "",
46091- "methodKind": "Constructor"
46092- },
46093- {
46094- "methodDocs": "",
46095- "methodName": "CONSTRUCTOR",
46096- "methodParams": [
46097- "r.q(const).casadi::Sparsity",
46098: "r.q(const).std::vector<(casadi::SXElement)>"
46099- ],
46100- "methodReturn": "casadi::Matrix<(casadi::SXElement)>",
46101- "methodDocslink": "",
46102- "methodKind": "Constructor"
46103- },
46104- {
46105- "methodDocs": "",
46106- "methodName": "CONSTRUCTOR",
46107- "methodParams": [
46108- "double"
46109- ],
46110- "methodReturn": "casadi::Matrix<(casadi::SXElement)>",
46111- "methodDocslink": "",
46112- "methodKind": "Constructor"
46113- },
46114- {
46115- "methodDocs": "",
46116- "methodName": "CONSTRUCTOR",
46117- "methodParams": [
46118: "r.q(const).std::vector<(casadi::SXElement)>"
46119- ],
46120- "methodReturn": "casadi::Matrix<(casadi::SXElement)>",
46121- "methodDocslink": "",
46122- "methodKind": "Constructor"
46123- },
46124- {
46125- "methodDocs": "",
46126- "methodName": "CONSTRUCTOR",
46127- "methodParams": [
46128: "r.q(const).std::vector<(casadi::SXElement)>",
46129- "int",
46130- "int"
46131- ],
46132- "methodReturn": "casadi::Matrix<(casadi::SXElement)>",
46133- "methodDocslink": "",
46134- "methodKind": "Constructor"
46135- },
46136- {
46137- "methodDocs": "",
46138- "methodName": "CONSTRUCTOR",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment