query
stringlengths
9
3.4k
document
stringlengths
9
87.4k
metadata
dict
negatives
listlengths
4
101
negative_scores
listlengths
4
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Runs garbage collection on allocated space, to prevent memoryleaks. This function should be called once at the end of your scriptfile.
def cleanup(self): self.loader.cleanup() self.Loaded = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def collect_garbage(self) -> None:\n pass", "def _run_garbage_collection():\n sleep_time = 0.5\n done = False\n while not done:\n collected = gc.collect(2)\n logger.info(\"{} objects collected\".format(collected))\n if collected:\n logger.info(\"Sleeping for {} sec...
[ "0.75592524", "0.73604804", "0.73248816", "0.72240883", "0.7211107", "0.7113082", "0.68933505", "0.67799926", "0.66687465", "0.66379446", "0.661931", "0.661931", "0.661931", "0.6553741", "0.6529691", "0.65203846", "0.65177214", "0.64993566", "0.6487079", "0.6476979", "0.64546...
0.0
-1
Return a node partition based on the Modularity Matrix eigenvectors. This method calculates the eigenvector v associated with the second largest eigenvalue of the Modularity Matrix. Where the Modularity Matrix is defined as
def spectral_modularity_partition(G): try: import numpy as np except: raise ImportError("spectral_partition() \ requires NumPy: http://scipy.org/") k = np.matrix(G.degree().values()) m = G.number_of_edges() B = nx.adj_matrix(G) - (k.transpose() * k) / (2....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def partition_by_eigenvector(graph):\n ###TODO\n pass", "def get_second_eigenvector(graph):\n ###TODO\n pass", "def eigen_decomp(matrix):\n w = None\n v = None\n ### YOUR CODE HERE\n w,v=np.linalg.eig(matrix)\n ### END YOUR CODE\n return w, v", "def calculate_biggest_eigenvalue(...
[ "0.64587164", "0.6063995", "0.5738871", "0.5670563", "0.5506475", "0.5493674", "0.5468006", "0.54519945", "0.5425612", "0.538626", "0.53837824", "0.53741413", "0.53188396", "0.53172624", "0.5283776", "0.52623904", "0.52556574", "0.5252896", "0.522213", "0.5203772", "0.5151679...
0.5227392
18
Partition a graph G into two communities using greedy modularity maximization. The algorithm works by selecting a node to change communities by which will maximize the modularity. The swap is made and the community structure with the highest modularity is kept.
def greedy_max_modularity_partition(G, C_init=None, max_iter=10): if G.is_multigraph(): raise nx.NetworkXError("greed_max_modularity() not defined for multigraph") if C_init is None: m1 = G.order() / 2 m2 = G.order() - m1 C = nxt.random_partition(G.nodes(), partition_sizes=[m1, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def greedy_modularity_communities(G, weight=None):\n\n # Count nodes and edges\n N = len(G.nodes())\n m = sum([d.get('weight', 1) for u, v, d in G.edges(data=True)])\n q0 = 1.0 / (2.0*m)\n\n # Map node labels to contiguous integers\n label_for_node = dict((i, v) for i, v in enumerate(G.nodes()))\...
[ "0.7985895", "0.7863971", "0.7855224", "0.7789124", "0.7097632", "0.69124085", "0.6684569", "0.65042293", "0.6500123", "0.64222026", "0.6420805", "0.6327584", "0.61868286", "0.60904104", "0.60830534", "0.6052372", "0.5930056", "0.5916552", "0.5912683", "0.59000045", "0.588164...
0.7307236
4
Recursively partition the graph G using the the algorithm defined by partition function depth times.
def recursive_partition(G, partition_function, depth, dendogram=False, **kwargs): C = [set(G)] if dendogram: D = nx.Graph() for _ in range(depth): C_next = [] for c in C: C_nex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __call__(self, g, n_partitions):\n\n def _iterative_cutting(g, p):\n \"\"\"helper function (iterative version)\"\"\"\n\n to_be_processed = [g]\n K = math.ceil(len(g.nodes()) / p)\n\n res = []\n while len(to_be_processed) > 0:\n\n g = ...
[ "0.6947835", "0.6692274", "0.6523319", "0.64699167", "0.61639374", "0.61390674", "0.6134492", "0.5891478", "0.5791794", "0.57705605", "0.5603623", "0.5438325", "0.54188836", "0.53874147", "0.5370432", "0.5352181", "0.534992", "0.5345076", "0.53345937", "0.53251743", "0.529117...
0.8169132
0
Function to handle data files.
def openFile(dir): # If path is a directory if os.path.isdir(dir): # Check file sizes from first file Nt = len(glob.glob(dir + "/1_*.txt")) # Nt tmp = np.loadtxt(dir + "/1_0.txt") Ny, Nx = tmp.shape # Output array V = np.zeros((Nt, 2, Ny, Nx)) for n in ra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_file_data(filename):", "def process_data(*args, **kwargs):\n\n filepath = kwargs[\"filepath\"]\n func = kwargs[\"func\"]\n \n # get all files matching extension from directory\n all_files = []\n for root, dirs, files in os.walk(filepath):\n files = glob.glob(os.path.join(root,'*....
[ "0.7081344", "0.6695296", "0.6569301", "0.652842", "0.6515002", "0.6513492", "0.6484186", "0.64830065", "0.64793694", "0.64597356", "0.644613", "0.644613", "0.644039", "0.64369124", "0.64328086", "0.64319426", "0.63926923", "0.6369196", "0.63599026", "0.6351072", "0.6330499",...
0.0
-1
Open vector field with independent directories.
def openVectorWT(w_dir, t_dir): tx_dir, ty_dir = t_dir W = openFile(w_dir) Tx = openFile(tx_dir) Ty = openFile(ty_dir) assert Tx.shape == Ty.shape, "Tx and Ty must have same dimensions." Nt, Nc = W.shape Ny, Nx = Tx.shape V = np.zeros((Nt, 2, Ny, Nx)) for n in range(Nt): V[n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vol_open_path(volpath, open_flags=VMDK_OPEN_DEFAULT):\n dhandle = get_uint(0)\n ihandle = get_uint(0)\n key = c_uint32(0)\n\n res = lib.DiskLib_OpenWithInfo(volpath.encode(), open_flags,\n byref(key), byref(dhandle),\n byref(ihandl...
[ "0.61692727", "0.55802864", "0.55706215", "0.55380136", "0.5490979", "0.5486886", "0.5469945", "0.54595834", "0.542374", "0.5422143", "0.54089767", "0.53765655", "0.5329017", "0.532043", "0.5300465", "0.52988756", "0.5256425", "0.524063", "0.524063", "0.524063", "0.52376485",...
0.51535165
25
Copy the example source files after the package is installed to an install test subdirectory for use during `spack test run`.
def cache_test_sources(self): self.cache_extra_test_sources([join_path("examples", "apps")])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setup_build_tests(self):\n # Now copy the relative files\n self.cache_extra_test_sources(self.build_relpath)\n\n # Ensure the path exists since relying on a relative path at the\n # same level as the normal stage source path.\n mkdirp(self.install_test_root)", "def setup(se...
[ "0.6967905", "0.6740082", "0.64299864", "0.6414573", "0.62844384", "0.6230936", "0.62204343", "0.6206577", "0.61558056", "0.61538935", "0.6142146", "0.613289", "0.61247826", "0.61047703", "0.6058998", "0.60412216", "0.6023817", "0.6023817", "0.6018945", "0.6014771", "0.601258...
0.6493857
2
Tests the creation of LASCOMap using FITS.
def test_fitstoLASCO(lasco): assert isinstance(lasco, LASCOMap)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_initialized() -> None:\n MapieClassifier()", "def test_initialized() -> None:\n MapieRegressor()", "def test_make_ec_map():\n pass", "def test_on_map_of_constants(synthetic_checkerboard):\n img = synthetic_checkerboard['img']\n di = synthetic_checkerboard['cdi']\n\n cpp_vorimg = te...
[ "0.642239", "0.6291131", "0.61287856", "0.58283335", "0.5784628", "0.5760995", "0.5741576", "0.5735342", "0.56763834", "0.56645465", "0.5649165", "0.56062466", "0.5596278", "0.5567189", "0.55620426", "0.55452317", "0.55275035", "0.5512195", "0.5509079", "0.5508", "0.55052185"...
0.6583202
0
Test the is_datasource_for method of LASCOMap. Note that header data to be provided as an argument can be a MetaDict object.
def test_is_datasource_for(lasco): assert lasco.is_datasource_for(lasco.data, lasco.meta)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_is_datasource_for(eit_map):\n assert eit_map.is_datasource_for(eit_map.data, eit_map.meta)", "def is_datasource_for(cls, **kwargs):\n if 'source' in kwargs.keys():\n if kwargs.get('source', ''):\n return kwargs.get('source', '').lower().startswith(cls._source)\n ...
[ "0.74529046", "0.6727229", "0.57659274", "0.57537", "0.5483662", "0.5415242", "0.5341589", "0.52654755", "0.5249164", "0.522096", "0.5166681", "0.5155394", "0.5150383", "0.5117535", "0.5107733", "0.50836915", "0.50509775", "0.50261915", "0.5001209", "0.49781814", "0.495897", ...
0.762238
0
Tests the measurement property of the LASCOMap object.
def test_measurement(lasco): assert lasco.measurement == "white-light"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_measurement(eit_map):\n assert eit_map.measurement.value in [195, 171]", "def test_unit_of_measurement(self):\n for name in self.sensor_dict:\n sensor = self.sensor_dict[name][\"sensor\"]\n assert self.sensor_dict[name][\"units\"] == sensor.unit_of_measurement", "def te...
[ "0.7147487", "0.70588326", "0.6354547", "0.6340808", "0.62565184", "0.622547", "0.62038094", "0.614342", "0.6091599", "0.5935994", "0.5892707", "0.58639777", "0.5852712", "0.58456856", "0.57708514", "0.57647926", "0.5735114", "0.5731323", "0.57311", "0.5704018", "0.5696798", ...
0.70623285
1
Tests the observatory property of the LASCOMap object.
def test_observatory(lasco): assert lasco.observatory == "SOHO"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_observatory(eit_map):\n assert eit_map.observatory == \"SOHO\"", "def check_observatory(self):\n assert self.observatory in ALL_OBSERVATORIES, \\\n \"Invalid observatory \" + repr(self.observatory) + \" in \" + repr(self.filename)", "def observatories():\n\n obs_db = {}\n\n ...
[ "0.70502925", "0.5905423", "0.5631481", "0.55709904", "0.53638643", "0.53604794", "0.535205", "0.53501725", "0.53381866", "0.53307277", "0.5307905", "0.5280215", "0.52539486", "0.5241711", "0.51865333", "0.5175831", "0.51357836", "0.5132824", "0.51225543", "0.50932837", "0.50...
0.62336797
1
Tests that rotation metadata is correctly removed for JPEG2000 images provided by Helioviewer.org.
def test_helioviewer_rotation(lasco, lasco_helioviewer): np.testing.assert_allclose(lasco.rotation_matrix, [[0.999966, -0.008296], [0.008296, 0.999966]], rtol=1e-6) np.testing.assert_array_equal(lasco_helioviewer.rotation_matrix, [[1., 0.], [0., 1.]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_exif_data_removed_from_added_thumbnail(self):\n\n # The image that has GPS data:\n path = \"tests/core/fixtures/images/tester_exif_gps.jpg\"\n\n # Double-check the original image does have some GPS data:\n exif_dict = piexif.load(path)\n self.assertEqual(len(exif_dict[\"...
[ "0.7091541", "0.6875018", "0.6684414", "0.6390415", "0.62990373", "0.6178711", "0.60326755", "0.5979566", "0.5919938", "0.59135807", "0.58806163", "0.5868729", "0.5854647", "0.57815886", "0.5773003", "0.5765147", "0.57515615", "0.5746518", "0.573411", "0.57289803", "0.5725085...
0.5038498
95
Show running config send command
def show_run(ssh, tell): command = "sh run int " + tell ssh.send('terminal length 0\n') time.sleep(1) ssh.recv(1000) ssh.send(command + '\n') time.sleep(2) result = ssh.recv(20000).decode('ascii') k = result.split() first_steep = Table.chown_run_in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def config(self, ctx):\n await ctx.send_help(ctx.command)", "def config(ctx):\n if not ctx.invoked_subcommand:\n cfg = ctx.obj['cfg']\n for section in cfg.sections():\n print(\"[\", section, \"]\")\n for option in cfg[section]:\n print(option, \"...
[ "0.66976076", "0.6623098", "0.65153956", "0.64066315", "0.64043736", "0.637134", "0.6354019", "0.6347334", "0.63209146", "0.627261", "0.6210578", "0.61829835", "0.6150153", "0.6137609", "0.6073267", "0.60719395", "0.6047735", "0.6041152", "0.6037163", "0.6018082", "0.590123",...
0.0
-1
get value from query dict by key
def get_value(self, query_dict, k): if k in query_dict: return query_dict[k] return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __getitem__(self, key):\n return self.query(key)", "def find(cls, key):\r\n return cls.query().get(key)", "def getSpecific(self, keyword, key):", "def __getitem__(self, key):\n return self.keyvaluepair_set.get(key=key).value", "def __getitem__(self, key):\n return self.param...
[ "0.7332471", "0.7147431", "0.7024943", "0.68989784", "0.6870327", "0.6814481", "0.6814481", "0.68065345", "0.67460203", "0.67460203", "0.67460203", "0.67460203", "0.673437", "0.67057145", "0.6673087", "0.6667873", "0.66438895", "0.66222626", "0.6579917", "0.6568693", "0.65685...
0.8017572
0
Sort the contents of a directory by last modified date.
def _sorted_ls(path): def _get_modified_time(f): return os.stat(os.path.join(path, f)).st_mtime return list(sorted(os.listdir(path), key=_get_modified_time))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_files_list(dirname, date_order, rdate_order):\n file_list = os.listdir(dirname)\n file_mtimes = dict.fromkeys(file_list)\n for f in file_list:\n if f[0] == '.':\n print \"Skipping file: \", f\n del file_mtimes[f]\n continue\n if date_order or rdate_or...
[ "0.6985285", "0.64413553", "0.62352586", "0.62184626", "0.62138826", "0.62063205", "0.6144919", "0.6113929", "0.6106303", "0.6105642", "0.60882264", "0.5959481", "0.5916365", "0.58824", "0.5865776", "0.58552366", "0.582905", "0.57945603", "0.57103086", "0.5698084", "0.567522"...
0.7565834
0
Return a filepath that contains data about the next change to test.
def get_next_change_file(): path = '/tmp/perf/' changes_to_test = _sorted_ls(path) if changes_to_test: return os.path.join(path, changes_to_test[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def track_path(self, filename):\n return os.path.join(os.path.dirname(__file__), 'testdata', filename)", "def track_path(self, filename):\n return os.path.join(os.path.dirname(__file__), 'testdata', filename)", "def track_path(self, filename):\n return os.path.join(os.path.dirname(__file__...
[ "0.6054829", "0.6054829", "0.6054829", "0.58682424", "0.58409095", "0.57942855", "0.57845366", "0.56979823", "0.5621857", "0.56051517", "0.5566274", "0.5565939", "0.5536013", "0.5490917", "0.54188967", "0.5408854", "0.53556013", "0.5328166", "0.53233224", "0.5313902", "0.5301...
0.77210146
0
convert area in rad^2 to km^2
def area_rad_to_km(area_rad): r_earth = 6.37122e3 # SHR_CONST_REARTH, in km circ = 2*np.pi*r_earth foo = xr.ufuncs.sqrt(area_rad.copy()) foo *= r_earth area_km = foo**2 return area_km
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def convert_ha_to_km2(nb):\n return nb / 100", "def rad(area) :\n return sqrt(area/pi)", "def km2m(km):\n return km * 1000", "def km2_area(polygons):\n\n reprojected_polygons = [reproject(p) for p in polygons]\n return ops.cascaded_union(reprojected_polygons).area * 1e-6", "def mi_to_m...
[ "0.71732515", "0.6853367", "0.6772503", "0.6647387", "0.65435016", "0.65118784", "0.6350859", "0.6348541", "0.63110465", "0.622082", "0.61698097", "0.61480993", "0.61387134", "0.6091799", "0.60879374", "0.60483783", "0.60402596", "0.60270166", "0.60109943", "0.6004886", "0.59...
0.80855316
0
given a coupler history file, opened as Xarray dataset, print both the LAND and GLC icemask extent in km^2 By default, take the cell area from the mapping file
def print_CPL_icemask_areas(ds, area_xg='domg_aream', area_xl='doml_aream', fldname_xg='g2x_Sg_icemask', fldname_xl='x2l_Sg_icemask'): glc_area = ds[area_xg].squeeze() lnd_area = ds[area_xl].squeeze() # convert area to km^2 glc_area_km = area_rad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getCl(filename):\n powSpec = pf.getdata(filename,1)\n temps = powSpec.field('TEMPERATURE')\n ell = np.arange(temps.size)\n return ell,temps", "def openFullProfFile(self, filename):\n handle = open(filename)\n lines = handle.readlines()\n handle.close()\n atoms = []\n bo...
[ "0.555418", "0.54992247", "0.52755046", "0.5268108", "0.5262233", "0.52601403", "0.51926464", "0.5186282", "0.51615363", "0.5161252", "0.5121497", "0.5097654", "0.5093182", "0.5093085", "0.5066861", "0.50287604", "0.5013134", "0.4981871", "0.4980489", "0.4980489", "0.49727952...
0.0
-1
given a coupler history file, opened as Xarray dataset, print both the LAND and GLC glacier cover extent in km^2 By default, take the cell area from the mapping file
def print_CPL_glaciercover_areas(ds, area_xg='domg_aream', area_xl='doml_aream', fldname_xg='g2x_Sg_ice_covered', fldname_xl='x2l_Sg_ice_covered'): glc_area = ds[area_xg].squeeze() lnd_area = ds[area_xl].squeeze() # convert area to km^2 glc_area_k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GeneralProfile(binsz, filename):\n data_image = fits.open(filename)\n data_image= data_image[1]\n glons = np.arange(LonLow, LonHigh+binsz, binsz) \n glon_bounds = Table()\n glon_bounds['CHANNEL'] = np.arange(len(glons) - 1)\n glon_bounds['GLON_MIN'] = np.float64(glons[:-1])\n glon_bound...
[ "0.5609589", "0.5601541", "0.55048555", "0.54529756", "0.54399264", "0.54399264", "0.54047024", "0.5373725", "0.5327029", "0.5310322", "0.5244416", "0.52235144", "0.51699317", "0.5160779", "0.5159728", "0.5151086", "0.5126497", "0.5102221", "0.5094817", "0.50947016", "0.50794...
0.49858493
32
Process the VariableDeclarator(s) declared in this VariableDeclaration object. A VariableDeclarator is added to the children of this VariableDeclaration object
def _processDecl(self, decl): if not decl: pass elif isinstance(decl, list): self.setNumChildren(len(decl)) count = 0 for k in decl: if isinstance(k, Declarator): self.setChild(count, k) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _declaration_variable(self, node: ET.Element):\n # variable names\n variables_and_values = self.transform_all_subnodes(\n self.get_one(node, './variables'), skip_empty=True,\n ignored={'entity-decl-list__begin', 'entity-decl-list','attr-spec' })\n if not variables_and...
[ "0.6810748", "0.6578837", "0.6053343", "0.59713", "0.5935473", "0.59103817", "0.5832406", "0.5818021", "0.5752003", "0.5744763", "0.5647307", "0.5632013", "0.56183445", "0.55835354", "0.5564148", "0.55624855", "0.5562174", "0.55372584", "0.5528148", "0.55208623", "0.5486831",...
0.5426866
25
The specifier(s) associated with this VariableDeclaration is added to the _spec __slots__ list. For example, specifiers like int or char
def _processSpec(self, spec): if isinstance(spec, list): for k in spec: if isinstance(k, Specifier): self._spec.append(k) else: raise NotAValidSpecifierError(str(type(k))) elif isinstance(spec, Specifier): se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _create_slots(self, var_list):\n # No slots needed by default\n for v in var_list:\n self._zeros_slot(v, \"m\", self._name)\n self._zeros_slot(v, \"v\", self._name)", "def _create_slots(self, var_list):\n # No slots needed by default\n for v in var_list:\n ...
[ "0.52604717", "0.52604717", "0.5201867", "0.51641715", "0.51444745", "0.4977457", "0.49642998", "0.49199918", "0.49157214", "0.48912543", "0.48886278", "0.48856738", "0.48667434", "0.48653454", "0.4856379", "0.48158437", "0.48061067", "0.4801965", "0.47877678", "0.4766531", "...
0.49605078
7
Initializes VariableDeclaration class with a list or singleton of leading specifiers, and a list or singleton of VariableDeclarators. Specifiers are stored in __slots__._spec while the Declarators are set as the Traversable's children.
def __init__(self, spec, decl=None): self._spec = [] self.initialize() self._processDecl(decl) self._processSpec(spec)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _declaration_variable(self, node: ET.Element):\n # variable names\n variables_and_values = self.transform_all_subnodes(\n self.get_one(node, './variables'), skip_empty=True,\n ignored={'entity-decl-list__begin', 'entity-decl-list','attr-spec' })\n if not variables_and...
[ "0.6275647", "0.6155617", "0.578357", "0.57416016", "0.5729255", "0.5677622", "0.5557472", "0.55549604", "0.5540802", "0.55403185", "0.5524431", "0.55118006", "0.55104923", "0.547801", "0.54737693", "0.5459073", "0.5390455", "0.53899175", "0.5386324", "0.5367685", "0.53676826...
0.56387484
6
Returns the Ansi C representation of this object, for example int a,b
def __repr__(self): retval = '' for k in self._spec: retval += '%s ' % k retval += ','.join([repr(k) for k in self.getChildren()]) return retval
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def coerce(self, c):\n\t# Default: use printable representation\n\treturn `c`", "def __int__(self):\n return int(str(self),2)", "def c_str(self):\n return _libsbml.string_c_str(self)", "def SBO_intToString(*args):\n return _libsbml.SBO_intToString(*args)", "def intToString(*args):\n r...
[ "0.57383925", "0.5585024", "0.55128294", "0.54797655", "0.53910303", "0.53130233", "0.53029615", "0.52937627", "0.5279769", "0.5232459", "0.52185833", "0.5182179", "0.51701224", "0.5169652", "0.5156103", "0.5145193", "0.51357955", "0.5125165", "0.51012224", "0.5080231", "0.50...
0.0
-1
Used by pickle or copy to get the state associated with the class. The returned items dict contains _spec object from hir.his class and the contents of the __slots__ of the bases of this class
def items(self): items = {} items['_spec'] = self._spec for k in VariableDeclaration.__bases__: if hasattr(k, 'items'): supitems = k.items(self) for k, v in list(supitems.items()): items[k] = v return dict(items)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __getstate__(self):\n result_dict = {}\n for pickle_attr in self.pickle_attrs:\n result_dict[pickle_attr] = self.__dict__[pickle_attr]\n return result_dict", "def __getstate__(self):\n\n state = {}\n for key in self.__slots__:\n state[key] = getattr(se...
[ "0.7187282", "0.71103054", "0.7069516", "0.7069516", "0.6906408", "0.6862938", "0.68552864", "0.6698801", "0.6671827", "0.6624724", "0.65399987", "0.6491391", "0.64735425", "0.6471728", "0.6461241", "0.64488274", "0.64174575", "0.6403766", "0.6386938", "0.63760126", "0.635302...
0.59476286
49
Returns the results of self.items() call when called by pickle or copy
def __getstate__(self): return dict(self.items())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __call__(self):\n return self.get_items()", "def __call__(self):\n return self._main._items()", "def __call__(self):\n return self._main._values()", "def iteritems(self):", "def get_items(self):\r\n return self.items()", "def call(self) -> List[Dict]:", "def get(self):\n...
[ "0.7648818", "0.7183077", "0.7022631", "0.68654466", "0.6727224", "0.66725326", "0.6459323", "0.6459323", "0.63707757", "0.6357433", "0.63273364", "0.6308503", "0.6262151", "0.6262151", "0.62585175", "0.6251573", "0.6216152", "0.6208589", "0.6191592", "0.6191592", "0.6166413"...
0.67192966
6
Blindly sets state based on the items like statedict
def __setstate__(self, statedict): for k, v in list(statedict.items()): setattr(self, k, v)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_state( self ):", "def set_state(canvas, state):\n for key, value in state.items():\n set_attribute(canvas, key, value)", "def __setstate__(self, state):\n exclude_keys = ['_is_zero', '_is_positive', '_is_nonneg']\n for key,value in state.items():\n if key in exclude_k...
[ "0.6640367", "0.6613323", "0.6503467", "0.64254403", "0.6403489", "0.6403489", "0.61876637", "0.61295795", "0.6122762", "0.61179495", "0.60977346", "0.6040049", "0.60339725", "0.6022381", "0.5904621", "0.5903245", "0.58718616", "0.5868567", "0.5868567", "0.5859888", "0.584155...
0.6726932
1
Return twotuple consisting of last tick and timestamp according to the provider.
def lastTick():
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def last_tick_time(self):\n return self.last_tick_", "def _get_inner_time(self):\n timestamp = self.last_two_timestamps[0]\n if not timestamp:\n return '0000-00-00 00:00:00'\n return str(timestamp)", "def CopyToStatTimeTuple(self):\n if self._number_of_seconds is None:\n ...
[ "0.6058038", "0.5908135", "0.5744919", "0.57218426", "0.56084853", "0.55859977", "0.55482435", "0.55307746", "0.5460453", "0.54443234", "0.5392926", "0.53773177", "0.5367498", "0.53394985", "0.53265816", "0.53179586", "0.52925235", "0.5291002", "0.5247732", "0.52462095", "0.5...
0.54950005
8
Decorator for checking function arguments.
def accepts(*argtlst): def acceptsfun(fun): def accept(*args): if len(args) != len(argtlst): raise TypeError('Expected %d argument(s) (%d given)' % (len(argtlst), len(args))) try: return fun(*[ t(a) for (t,a) in zip(argtlst,args) ]) except ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_arg(function: Callable, arg_name: str, value: Any) -> None:\n Annotation = function.__annotations__.get(arg_name)\n if not is_valid(value, Annotation):\n raise ArgumentError(function, arg_name, value)", "def check_inputs(function):\n def decorated(self, data, *args, **kwargs):\n ...
[ "0.7241338", "0.71735525", "0.70431894", "0.70084655", "0.69977546", "0.6993821", "0.69763994", "0.69633996", "0.69536203", "0.69426346", "0.6865531", "0.6863752", "0.6848815", "0.6838962", "0.683391", "0.6827481", "0.68118894", "0.67408526", "0.6676843", "0.6661639", "0.6583...
0.0
-1
Create a new enum class with the given names and values.
def Enum(name,names,values=None): e = new.classobj(name,(EnumBase,),{}) e._initialize(names,values) return e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_enum(name, fields, values=None):\n Enum = namedtuple(name, fields)\n if values is None:\n return Enum(*fields)\n return Enum(*values)", "def Enum(name,names,values=None):\n e = type(name,(EnumBase,),{})\n e._initialize(names,values)\n return e", "def enum(cls, options, value...
[ "0.8069038", "0.77621424", "0.7693179", "0.67224294", "0.64560413", "0.64129335", "0.6399653", "0.6381578", "0.6362524", "0.6356486", "0.6356486", "0.6356486", "0.6356486", "0.6295191", "0.6264949", "0.622943", "0.61205715", "0.6103254", "0.6100767", "0.6011548", "0.597129", ...
0.79247373
1
Check out a license feature from the license server ahead of time. checkoutlicense(self,feature_)
def checkoutlicense(self,feature_): res = __library__.MSK_XX_checkoutlicense(self.__nativep,feature_) if res != 0: raise Error(rescode(res),Env.getcodedesc(rescode(res))[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def checkoutlicense(self,feature_): # 3\n if not isinstance(feature_,feature): raise TypeError(\"Argument feature has wrong type\")\n res = self.__obj.checkoutlicense(feature_)\n if res != 0:\n raise Error(rescode(res),\"\")", "def checkinlicense(self,feature_): # 3\n if not isinstance...
[ "0.8759661", "0.76959074", "0.7425138", "0.5600213", "0.5537508", "0.5521356", "0.548995", "0.54747057", "0.5455874", "0.5384995", "0.53284734", "0.5324986", "0.5264816", "0.511373", "0.5108549", "0.5074378", "0.50742406", "0.506557", "0.49946", "0.4989902", "0.49843487", "...
0.8638246
1
Check in a license feature back to the license server ahead of time. checkinlicense(self,feature_)
def checkinlicense(self,feature_): res = __library__.MSK_XX_checkinlicense(self.__nativep,feature_) if res != 0: raise Error(rescode(res),Env.getcodedesc(rescode(res))[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def checkinlicense(self,feature_): # 3\n if not isinstance(feature_,feature): raise TypeError(\"Argument feature has wrong type\")\n res = self.__obj.checkinlicense(feature_)\n if res != 0:\n raise Error(rescode(res),\"\")", "def checkoutlicense(self,feature_):\n res = __library__.MSK_XX...
[ "0.8578027", "0.7463757", "0.7390654", "0.5651141", "0.5581003", "0.5463787", "0.5270471", "0.52479464", "0.5114471", "0.5090737", "0.5089456", "0.503208", "0.49925858", "0.4985686", "0.4984008", "0.49691615", "0.49654573", "0.49629948", "0.49579397", "0.4957077", "0.49551493...
0.8341613
1
Check in all unused license features to the license token server. checkinall(self)
def checkinall(self): res = __library__.MSK_XX_checkinall(self.__nativep) if res != 0: raise Error(rescode(res),Env.getcodedesc(rescode(res))[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def checkinlicense(self,feature_):\n res = __library__.MSK_XX_checkinlicense(self.__nativep,feature_)\n if res != 0:\n raise Error(rescode(res),Env.getcodedesc(rescode(res))[1])", "def checkinlicense(self,feature_): # 3\n if not isinstance(feature_,feature): raise TypeError(\"Argument feature has...
[ "0.63698614", "0.6221822", "0.5931282", "0.5740085", "0.5677093", "0.55289596", "0.542468", "0.5373415", "0.52878785", "0.5231693", "0.5146559", "0.5137509", "0.5130173", "0.51154923", "0.5080095", "0.5038724", "0.5035732", "0.5019301", "0.50055707", "0.49882403", "0.4987122"...
0.5811207
3
Preallocates a thread pool. setupthreads(self,numthreads_)
def setupthreads(self,numthreads_): res = __library__.MSK_XX_setupthreads(self.__nativep,numthreads_) if res != 0: raise Error(rescode(res),Env.getcodedesc(rescode(res))[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _setup_workers(self, num_workers):\n self.pool = []\n\n for _ in range(num_workers):\n self.pool.append(Thread(target=self.threadloop))\n\n for a_thread in self.pool:\n a_thread.setDaemon(True)\n a_thread.start()", "def setNumThreads(self, num):\r\n ...
[ "0.67134285", "0.664693", "0.66045773", "0.65749764", "0.65331626", "0.6397342", "0.63319147", "0.6289505", "0.6270324", "0.6233809", "0.6203612", "0.6121451", "0.6111992", "0.61068666", "0.6090031", "0.60645485", "0.603164", "0.60059214", "0.5992909", "0.59382534", "0.59107"...
0.71301144
0
Prints an intro to message stream. echointro(self,longver_)
def echointro(self,longver_): res = __library__.MSK_XX_echointro(self.__nativep,longver_) if res != 0: raise Error(rescode(res),Env.getcodedesc(rescode(res))[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def echointro(self,longver_): # 3\n res = self.__obj.echointro(longver_)\n if res != 0:\n raise Error(rescode(res),\"\")", "def print_intro(self):\n \n print(\"Did you know that most insect migrations are intergenerational, meaning that offspring continue their parent's journey?\\n...
[ "0.67646956", "0.6153699", "0.6104376", "0.59173465", "0.58073634", "0.56515396", "0.550261", "0.5483312", "0.54654086", "0.54641277", "0.54259765", "0.54012567", "0.5313122", "0.5312723", "0.5293063", "0.5257486", "0.52515185", "0.5221724", "0.521526", "0.5208508", "0.520083...
0.58583564
4
Obtains a short description of a response code. getcodedesc(code_)
def getcodedesc(code_): symname_ = (ctypes.c_char * value.max_str_len)() str_ = (ctypes.c_char * value.max_str_len)() res = __library__.MSK_XX_getcodedesc(code_,symname_,str_) if res != 0: raise Error(rescode(res),Env.getcodedesc(rescode(res))[1]) _symname_retval = symname_.value.decode("utf-8...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_description(self, code):\n try:\n return self.message[str(code)]\n except KeyError:\n return \"Unknown (\" + str(code) + \")\"", "def get_error_description(self, code):\n self.c.execute(\"SELECT * FROM errorcode WHERE code=%d\" % code)\n return self.c.fet...
[ "0.7868941", "0.7265099", "0.71852154", "0.7024114", "0.68930936", "0.65707564", "0.6471099", "0.61716706", "0.6068444", "0.60453534", "0.5955093", "0.59224325", "0.59201384", "0.5877441", "0.5869272", "0.5843591", "0.584061", "0.58223593", "0.58223593", "0.58223593", "0.5772...
0.7308555
1
Obtains MOSEK version information. getversion()
def getversion(): major_ = ctypes.c_int32() minor_ = ctypes.c_int32() revision_ = ctypes.c_int32() res = __library__.MSK_XX_getversion(ctypes.byref(major_),ctypes.byref(minor_),ctypes.byref(revision_)) if res != 0: raise Error(rescode(res),Env.getcodedesc(rescode(res))[1]) major_ = major_....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_version(self):", "def get_version(self):\n pass", "def version():\n\n pass", "def get_version():\r\n return __version__", "def get_version():\n return 1", "def version(self):\n return self._get(\"version\")", "def version():\n return __VERSION__", "def getversion(se...
[ "0.75196946", "0.72990847", "0.7296857", "0.7293538", "0.72827107", "0.72488153", "0.72436064", "0.72343117", "0.72194815", "0.7173161", "0.71342564", "0.710485", "0.710485", "0.710485", "0.7074583", "0.7065602", "0.7065602", "0.7030908", "0.7029974", "0.7016896", "0.7016896"...
0.657121
88
Directs all output from a stream to a file. linkfiletostream(self,whichstream_,filename_,append_)
def linkfiletostream(self,whichstream_,filename_,append_): if isinstance(filename_,unicode): filename_ = filename_.encode("utf-8",errors="replace") res = __library__.MSK_XX_linkfiletoenvstream(self.__nativep,whichstream_,filename_,append_) if res != 0: raise Error(rescode(res),Env.getcodedesc(re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def linkfiletostream(self,whichstream_,filename_,append_): # 3\n if not isinstance(whichstream_,streamtype): raise TypeError(\"Argument whichstream has wrong type\")\n res = self.__obj.linkfiletotaskstream(whichstream_,filename_,append_)\n if res != 0:\n result,msg = self.__getlasterror(res)\...
[ "0.8230284", "0.8075898", "0.78177077", "0.5887671", "0.5797239", "0.5779203", "0.5750145", "0.5621454", "0.5610482", "0.5507235", "0.54676473", "0.53902507", "0.5375923", "0.52373123", "0.5158702", "0.5143754", "0.5114576", "0.5060143", "0.5022461", "0.49955034", "0.4979789"...
0.7388001
3
Enables debug information for the license system. putlicensedebug(self,licdebug_)
def putlicensedebug(self,licdebug_): res = __library__.MSK_XX_putlicensedebug(self.__nativep,licdebug_) if res != 0: raise Error(rescode(res),Env.getcodedesc(rescode(res))[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def putlicensedebug(self,licdebug_): # 3\n res = self.__obj.putlicensedebug(licdebug_)\n if res != 0:\n raise Error(rescode(res),\"\")", "def set_debug(self, debug):\n self.debug = debug", "def debug(self, debug):\n\n self._debug = debug", "def setDebug():\n\tglobal debug\n\tde...
[ "0.89798224", "0.6667688", "0.6555875", "0.6333619", "0.6249309", "0.62011623", "0.610661", "0.60838914", "0.6049035", "0.59686905", "0.59017515", "0.58994114", "0.58361554", "0.57802033", "0.5760369", "0.5759169", "0.5745018", "0.5731944", "0.5715388", "0.57055396", "0.56213...
0.871731
1
Input a runtime license code. putlicensecode(self,code_)
def putlicensecode(self,code_): _code_minlength = value.license_buffer_length if value.license_buffer_length > 0 and code_ is not None and len(code_) != value.license_buffer_length: raise ValueError("Array argument code is not long enough: Is %d, expected %d" % (len(code_),value.license_buffer_length)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def putlicensecode(self,code): # 3\n if code is None:\n code_ = None\n else:\n try:\n code_ = memoryview(code)\n except TypeError:\n try:\n _tmparr_code = array.array(\"i\",code)\n except TypeError:\n raise TypeError(\"Argument code ha...
[ "0.8494057", "0.69254506", "0.6896676", "0.6758022", "0.66151047", "0.6599839", "0.6433473", "0.6400917", "0.6400902", "0.6374781", "0.6374781", "0.6374159", "0.6374159", "0.6353943", "0.634261", "0.6289735", "0.6273301", "0.62477654", "0.6194605", "0.6178612", "0.61690074", ...
0.8169754
1
Control whether mosek should wait for an available license if no license is available. putlicensewait(self,licwait_)
def putlicensewait(self,licwait_): res = __library__.MSK_XX_putlicensewait(self.__nativep,licwait_) if res != 0: raise Error(rescode(res),Env.getcodedesc(rescode(res))[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def putlicensewait(self,licwait_): # 3\n res = self.__obj.putlicensewait(licwait_)\n if res != 0:\n raise Error(rescode(res),\"\")", "def license(self, license):\n\n self._license = license", "def accept_license():\r\n msg, status = \"\", True\r\n\r\n try:\r\n sleep(5)\r\n ...
[ "0.8608505", "0.61256635", "0.6123673", "0.5970834", "0.5939061", "0.58548045", "0.5833694", "0.5822022", "0.57427907", "0.5724147", "0.56733525", "0.5650425", "0.5636824", "0.5599726", "0.5547277", "0.5536273", "0.5516888", "0.5485797", "0.5453408", "0.5441463", "0.5418717",...
0.84320354
1
Set the path to the license file. putlicensepath(self,licensepath_)
def putlicensepath(self,licensepath_): if isinstance(licensepath_,unicode): licensepath_ = licensepath_.encode("utf-8",errors="replace") res = __library__.MSK_XX_putlicensepath(self.__nativep,licensepath_) if res != 0: raise Error(rescode(res),Env.getcodedesc(rescode(res))[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def putlicensepath(self,licensepath_): # 3\n res = self.__obj.putlicensepath(licensepath_)\n if res != 0:\n raise Error(rescode(res),\"\")", "def license(self, license):\n\n self._license = license", "def upload_license(self):\n param = self.module.params[\"param\"]\n lice...
[ "0.88523585", "0.71379733", "0.6935849", "0.67722934", "0.67470366", "0.6633295", "0.63802004", "0.6364983", "0.6364983", "0.6364983", "0.6364983", "0.6364983", "0.6356385", "0.6281657", "0.62535214", "0.62287545", "0.6200384", "0.61479205", "0.6000918", "0.59174573", "0.5909...
0.8595367
1
Computes vector addition and multiplication by a scalar. axpy(self,n_,alpha_,x_,y_)
def axpy(self,n_,alpha_,x_,y_): _x_minlength = (n_) if (n_) > 0 and x_ is not None and len(x_) != (n_): raise ValueError("Array argument x is not long enough: Is %d, expected %d" % (len(x_),(n_))) if x_ is None: raise ValueError("Argument x cannot be None") if x_ is None: raise ValueEr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def axpy(self,n_,alpha_,x,y): # 3\n if x is None: raise TypeError(\"Invalid type for argument x\")\n if x is None:\n x_ = None\n else:\n try:\n x_ = memoryview(x)\n except TypeError:\n try:\n _tmparr_x = array.array(\"d\",x)\n except TypeErr...
[ "0.74733484", "0.60606563", "0.60547745", "0.5907904", "0.5887075", "0.58122003", "0.57062954", "0.55805856", "0.5475544", "0.5468158", "0.54651934", "0.54209197", "0.541921", "0.5392053", "0.5377396", "0.5374282", "0.5341102", "0.5317172", "0.5305736", "0.52814037", "0.52740...
0.7002267
1
Computes the inner product of two vectors. dot(self,n_,x_,y_)
def dot(self,n_,x_,y_): _x_minlength = (n_) if (n_) > 0 and x_ is not None and len(x_) != (n_): raise ValueError("Array argument x is not long enough: Is %d, expected %d" % (len(x_),(n_))) if x_ is None: raise ValueError("Argument x cannot be None") if x_ is None: raise ValueError("Arg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vec_dot(x, y):\r\n return sum(a * b for a, b in zip(x, y))", "def vector_dot(x, y):\n\n if(len(x) != len(y)):\n raise ValueError(\"vector lengths differ\")\n else:\n # return x1*y1+x2*y2+...xn*yn\n return sum([x[i] * y[i] for i in range(len(x))])", "def dot(x,y):\n\treturn sum([...
[ "0.7724258", "0.7549486", "0.7496103", "0.7352206", "0.732253", "0.73218113", "0.73188835", "0.72784954", "0.7264976", "0.7238966", "0.72267455", "0.72038215", "0.7178318", "0.7174941", "0.7155059", "0.71423924", "0.7082818", "0.70600927", "0.70422834", "0.7040143", "0.703703...
0.67537916
42
Computes dense matrix times a dense vector product. gemv(self,transa_,m_,n_,alpha_,a_,x_,beta_,y_)
def gemv(self,transa_,m_,n_,alpha_,a_,x_,beta_,y_): _a_minlength = ((n_) * (m_)) if ((n_) * (m_)) > 0 and a_ is not None and len(a_) != ((n_) * (m_)): raise ValueError("Array argument a is not long enough: Is %d, expected %d" % (len(a_),((n_) * (m_)))) if a_ is None: raise ValueError("Argument a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gemv(self,transa_,m_,n_,alpha_,a,x,beta_,y): # 3\n if not isinstance(transa_,transpose): raise TypeError(\"Argument transa has wrong type\")\n if a is None: raise TypeError(\"Invalid type for argument a\")\n if a is None:\n a_ = None\n else:\n try:\n a_ = memoryview(a...
[ "0.79829377", "0.7744591", "0.6858341", "0.6395874", "0.6372895", "0.6168905", "0.5858304", "0.5748902", "0.5633987", "0.5538611", "0.5522281", "0.5460428", "0.54414135", "0.53847235", "0.5364882", "0.5344385", "0.53304935", "0.5325173", "0.5298962", "0.52883595", "0.5280534"...
0.792816
1
Performs a dense matrix multiplication. gemm(self,transa_,transb_,m_,n_,k_,alpha_,a_,b_,beta_,c_)
def gemm(self,transa_,transb_,m_,n_,k_,alpha_,a_,b_,beta_,c_): _a_minlength = ((m_) * (k_)) if ((m_) * (k_)) > 0 and a_ is not None and len(a_) != ((m_) * (k_)): raise ValueError("Array argument a is not long enough: Is %d, expected %d" % (len(a_),((m_) * (k_)))) if a_ is None: raise ValueError(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gemm(self,transa_,transb_,m_,n_,k_,alpha_,a,b,beta_,c): # 3\n if not isinstance(transa_,transpose): raise TypeError(\"Argument transa has wrong type\")\n if not isinstance(transb_,transpose): raise TypeError(\"Argument transb has wrong type\")\n if a is None: raise TypeError(\"Invalid type for a...
[ "0.797159", "0.6984396", "0.68837875", "0.6616794", "0.6429315", "0.6350331", "0.6247334", "0.60708445", "0.57550097", "0.5749969", "0.5730603", "0.5723331", "0.56517935", "0.56435114", "0.5592844", "0.5431652", "0.5431652", "0.5407086", "0.53182805", "0.5267758", "0.51957977...
0.7851844
1
Performs a rankk update of a symmetric matrix. syrk(self,uplo_,trans_,n_,k_,alpha_,a_,beta_,c_)
def syrk(self,uplo_,trans_,n_,k_,alpha_,a_,beta_,c_): _a_minlength = ((n_) * (k_)) if ((n_) * (k_)) > 0 and a_ is not None and len(a_) != ((n_) * (k_)): raise ValueError("Array argument a is not long enough: Is %d, expected %d" % (len(a_),((n_) * (k_)))) if a_ is None: raise ValueError("Argument...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def syrk(self,uplo_,trans_,n_,k_,alpha_,a,beta_,c): # 3\n if not isinstance(uplo_,uplo): raise TypeError(\"Argument uplo has wrong type\")\n if not isinstance(trans_,transpose): raise TypeError(\"Argument trans has wrong type\")\n if a is None: raise TypeError(\"Invalid type for argument a\")\n ...
[ "0.7740319", "0.5345925", "0.5307275", "0.5296073", "0.51972955", "0.51492083", "0.51247174", "0.5056189", "0.50554264", "0.5031491", "0.5031491", "0.50260574", "0.50148124", "0.49368647", "0.4909689", "0.48912278", "0.4885631", "0.48802838", "0.47982484", "0.4793419", "0.478...
0.6716742
1
Computes a Cholesky factorization of sparse matrix. computesparsecholesky(self,multithread_,ordermethod_,tolsingular_,anzc_,aptrc_,asubc_,avalc_)
def computesparsecholesky(self,multithread_,ordermethod_,tolsingular_,anzc_,aptrc_,asubc_,avalc_): n_ = None if n_ is None: n_ = len(anzc_) elif n_ != len(anzc_): raise IndexError("Inconsistent length of array anzc") if n_ is None: n_ = len(aptrc_) elif n_ != len(aptrc_): rai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def computesparsecholesky(self,multithread_,ordermethod_,tolsingular_,anzc,aptrc,asubc,avalc): # 3\n n_ = None\n if n_ is None:\n n_ = len(anzc)\n elif n_ != len(anzc):\n raise IndexError(\"Inconsistent length of array anzc\")\n if n_ is None:\n n_ = len(aptrc)\n elif ...
[ "0.7571543", "0.5584805", "0.5499678", "0.5440372", "0.53172606", "0.52564216", "0.52468324", "0.52155113", "0.51478595", "0.514581", "0.5113303", "0.51123667", "0.50142163", "0.5004762", "0.49805087", "0.4961134", "0.49372533", "0.49125624", "0.49123773", "0.48156536", "0.47...
0.7723914
0
Solves a sparse triangular system of linear equations. sparsetriangularsolvedense(self,transposed_,lnzc_,lptrc_,lsubc_,lvalc_,b_)
def sparsetriangularsolvedense(self,transposed_,lnzc_,lptrc_,lsubc_,lvalc_,b_): n_ = None if n_ is None: n_ = len(b_) elif n_ != len(b_): raise IndexError("Inconsistent length of array b") if n_ is None: n_ = len(lnzc_) elif n_ != len(lnzc_): raise IndexError("Inconsistent le...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sparsetriangularsolvedense(self,transposed_,lnzc,lptrc,lsubc,lvalc,b): # 3\n if not isinstance(transposed_,transpose): raise TypeError(\"Argument transposed has wrong type\")\n n_ = None\n if n_ is None:\n n_ = len(b)\n elif n_ != len(b):\n raise IndexError(\"Inconsistent leng...
[ "0.8438944", "0.54154617", "0.5376753", "0.53284895", "0.5311217", "0.52064824", "0.51942706", "0.51143026", "0.49586394", "0.4949625", "0.49304515", "0.49237528", "0.48860884", "0.4882467", "0.48812094", "0.48605898", "0.48446497", "0.4842036", "0.48256987", "0.48181957", "0...
0.8483068
0
Computes a Cholesky factorization of a dense matrix. potrf(self,uplo_,n_,a_)
def potrf(self,uplo_,n_,a_): _a_minlength = ((n_) * (n_)) if ((n_) * (n_)) > 0 and a_ is not None and len(a_) != ((n_) * (n_)): raise ValueError("Array argument a is not long enough: Is %d, expected %d" % (len(a_),((n_) * (n_)))) if isinstance(a_,numpy.ndarray) and not a_.flags.writeable: raise ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cholesky(A):\n n = len(A)\n\n # Create zero matrix for L\n L=np.zeros((n,n))\n\n # Perform the Cholesky decomposition\n for i in range(n):\n for k in range(i+1):\n tmp_sum = sum(L[i][j] * L[k][j] for j in xrange(k))\n \n if (i == k): # Diagonal elements\n\...
[ "0.6387226", "0.61609155", "0.59897465", "0.5824701", "0.58079535", "0.57489014", "0.5693151", "0.5668508", "0.55993855", "0.55892885", "0.5545973", "0.54544604", "0.54271024", "0.5358241", "0.52774936", "0.52692854", "0.52478313", "0.5180107", "0.5173138", "0.5172021", "0.51...
0.59195656
3
Computes all eigenvalues of a symmetric dense matrix. syeig(self,uplo_,n_,a_,w_)
def syeig(self,uplo_,n_,a_,w_): _a_minlength = ((n_) * (n_)) if ((n_) * (n_)) > 0 and a_ is not None and len(a_) != ((n_) * (n_)): raise ValueError("Array argument a is not long enough: Is %d, expected %d" % (len(a_),((n_) * (n_)))) if a_ is None: raise ValueError("Argument a cannot be None") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def syeig(self,uplo_,n_,a,w): # 3\n if not isinstance(uplo_,uplo): raise TypeError(\"Argument uplo has wrong type\")\n if a is None: raise TypeError(\"Invalid type for argument a\")\n if a is None:\n a_ = None\n else:\n try:\n a_ = memoryview(a)\n except TypeError:...
[ "0.81746787", "0.65293", "0.6337791", "0.6227501", "0.61773306", "0.61583877", "0.6139027", "0.6113723", "0.6071404", "0.5926805", "0.5913415", "0.5867152", "0.5759248", "0.574515", "0.5692723", "0.5674269", "0.5673998", "0.56041884", "0.5596572", "0.55924916", "0.5584967", ...
0.7566581
1
Computes all the eigenvalues and eigenvectors of a symmetric dense matrix, and thus its eigenvalue decomposition. syevd(self,uplo_,n_,a_,w_)
def syevd(self,uplo_,n_,a_,w_): _a_minlength = ((n_) * (n_)) if ((n_) * (n_)) > 0 and a_ is not None and len(a_) != ((n_) * (n_)): raise ValueError("Array argument a is not long enough: Is %d, expected %d" % (len(a_),((n_) * (n_)))) if isinstance(a_,numpy.ndarray) and not a_.flags.writeable: rai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def syeig(self,uplo_,n_,a,w): # 3\n if not isinstance(uplo_,uplo): raise TypeError(\"Argument uplo has wrong type\")\n if a is None: raise TypeError(\"Invalid type for argument a\")\n if a is None:\n a_ = None\n else:\n try:\n a_ = memoryview(a)\n except TypeError:...
[ "0.762131", "0.7074867", "0.69879603", "0.62617326", "0.61253196", "0.6078475", "0.60627306", "0.59903747", "0.5944606", "0.59257424", "0.58683413", "0.579515", "0.5727938", "0.56910884", "0.56848043", "0.56688", "0.56349427", "0.5588005", "0.55771166", "0.55645275", "0.55502...
0.6196969
4
Stops all threads and delete all handles used by the license system. licensecleanup()
def licensecleanup(): res = __library__.MSK_XX_licensecleanup() if res != 0: raise Error(rescode(res),Env.getcodedesc(rescode(res))[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def licensecleanup(): # 3\n res = _msk.Env.licensecleanup()\n if res != 0:\n raise Error(rescode(res),\"\")", "def cleanup(self):\n logger.debug('Beginning cleanup ...')\n self.stop()\n\n #Clear subscriptions\n for sub, dev in self.subs.items():\n dev.clear...
[ "0.69909203", "0.6920652", "0.68741477", "0.67954016", "0.67419183", "0.66345876", "0.6611523", "0.65672064", "0.65559095", "0.65391237", "0.64915305", "0.64907163", "0.6485269", "0.64084905", "0.6398197", "0.6396374", "0.6393423", "0.6385401", "0.6373598", "0.63693166", "0.6...
0.69317514
1
Construct a new Task object. Task(env=None,maxnumcon=0,maxnumvar=0,nativep=None,other=None)
def __init__(self,env=None,maxnumcon=0,maxnumvar=0,nativep=None,other=None): self.__library = __library__ self.__nativep = None self.__schandle = None self._lock = threading.RLock() if isinstance(env,Task): other = env env = None try: if native...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, env: MTEnv, n_tasks: int):\n super().__init__(env=env)\n self.n_tasks = n_tasks\n self.tasks: List[TaskStateType]\n self._are_tasks_set = False", "def __init__(self,target, name = \"\", prio = 10, period = 0, time2run = 0):\n Task.taskid += 1\n self.ti...
[ "0.6326176", "0.603982", "0.60264874", "0.6022742", "0.59993345", "0.59907025", "0.5958645", "0.5920431", "0.58973324", "0.58927375", "0.5887594", "0.5862502", "0.58127207", "0.5787428", "0.5779538", "0.57600564", "0.5736297", "0.57311445", "0.57209444", "0.5698059", "0.56828...
0.7289506
0
Set the progress callback function. If func is None, progress callbacks are detached and disabled.
def set_Progress(self,func): if func is None: self.__progress_func = None #res = self.__library.MSK_XX_putcallbackfunc(self.__nativep,None,None) else: self.__progress_func = func res = self.__library.MSK_XX_putcallbackfunc(self.__nativep,self.__progress_cb,N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_Progress(self,func):\n self.__obj.set_Progress(func)", "def progress_callback(self, func):\n self.curl.setopt(pycurl.PROGRESSFUNCTION, func)", "def svn_client_ctx_t_progress_func_set(svn_client_ctx_t_self, svn_ra_progress_notify_func_t_progress_func): # real signature unknown; restored fr...
[ "0.76210636", "0.73132217", "0.67322624", "0.62459373", "0.62381303", "0.62043667", "0.6173967", "0.5974019", "0.59440875", "0.59214973", "0.5781422", "0.5741869", "0.56839746", "0.5624882", "0.5602486", "0.55898565", "0.55845433", "0.5564059", "0.552527", "0.548637", "0.5454...
0.7993551
0
Set the progress callback function. If func is None, progress callbacks are detached and disabled.
def set_InfoCallback(self,func): if func is None: self.__infocallback_func = None #res = self.__library.MSK_XX_putcallbackfunc(self.__nativep,None,None) else: self.__infocallback_func = func res = self.__library.MSK_XX_putcallbackfunc(self.__nativep,self.__p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_Progress(self,func):\n if func is None:\n self.__progress_func = None\n #res = self.__library.MSK_XX_putcallbackfunc(self.__nativep,None,None)\n else:\n self.__progress_func = func \n res = self.__library.MSK_XX_putcallbackfunc(self.__nativep,self.__pr...
[ "0.7993143", "0.76209813", "0.731291", "0.6731336", "0.62466186", "0.62391365", "0.6202586", "0.6175435", "0.5974019", "0.59456486", "0.5923007", "0.5781629", "0.5743591", "0.56242794", "0.56027734", "0.559077", "0.55824286", "0.5566021", "0.55251116", "0.5486115", "0.5453305...
0.568447
13
Analyze the data of a task. analyzeproblem(self,whichstream_)
def analyzeproblem(self,whichstream_): res = __library__.MSK_XX_analyzeproblem(self.__nativep,whichstream_) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def analyzeproblem(self,whichstream_): # 3\n if not isinstance(whichstream_,streamtype): raise TypeError(\"Argument whichstream has wrong type\")\n res = self.__obj.analyzeproblem(whichstream_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)", "...
[ "0.7656688", "0.66234916", "0.61678094", "0.61584896", "0.61026996", "0.5949743", "0.58778185", "0.58460075", "0.57688403", "0.5664479", "0.5660007", "0.5589258", "0.55565846", "0.5520233", "0.54727155", "0.5431195", "0.53835535", "0.5372877", "0.5285206", "0.52802324", "0.52...
0.7232371
1
Analyze the names and issue an error for the first invalid name. analyzenames(self,whichstream_,nametype_)
def analyzenames(self,whichstream_,nametype_): res = __library__.MSK_XX_analyzenames(self.__nativep,whichstream_,nametype_) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def analyzenames(self,whichstream_,nametype_): # 3\n if not isinstance(whichstream_,streamtype): raise TypeError(\"Argument whichstream has wrong type\")\n if not isinstance(nametype_,nametype): raise TypeError(\"Argument nametype has wrong type\")\n res = self.__obj.analyzenames(whichstream_,namety...
[ "0.856169", "0.6125964", "0.5851493", "0.5766484", "0.5649188", "0.5622006", "0.552477", "0.55118906", "0.55098695", "0.5505015", "0.55004114", "0.54994583", "0.5494788", "0.5492459", "0.5460644", "0.5454948", "0.54511714", "0.544296", "0.5436722", "0.5407702", "0.53509", "...
0.7843094
1
Print information related to the quality of the solution. analyzesolution(self,whichstream_,whichsol_)
def analyzesolution(self,whichstream_,whichsol_): res = __library__.MSK_XX_analyzesolution(self.__nativep,whichstream_,whichsol_) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def analyzesolution(self,whichstream_,whichsol_): # 3\n if not isinstance(whichstream_,streamtype): raise TypeError(\"Argument whichstream has wrong type\")\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n res = self.__obj.analyzesolution(whichstream_,w...
[ "0.75133455", "0.73406655", "0.73010904", "0.71412873", "0.6950169", "0.6524369", "0.6344713", "0.6188728", "0.6182085", "0.61371076", "0.6001918", "0.59650385", "0.58990616", "0.5842757", "0.5792607", "0.57907444", "0.5786922", "0.5766608", "0.57455885", "0.56941146", "0.569...
0.7367534
1
Prepare a task for basis solver. initbasissolve(self,basis_)
def initbasissolve(self,basis_): _basis_minlength = self.getnumcon() if self.getnumcon() > 0 and basis_ is not None and len(basis_) != self.getnumcon(): raise ValueError("Array argument basis is not long enough: Is %d, expected %d" % (len(basis_),self.getnumcon())) if isinstance(basis_,numpy.ndarray) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def initbasissolve(self,basis): # 3\n _copyback_basis = False\n if basis is None:\n basis_ = None\n else:\n try:\n basis_ = memoryview(basis)\n except TypeError:\n try:\n _tmparr_basis = array.array(\"i\",basis)\n except TypeError:\n ...
[ "0.75565845", "0.5916598", "0.5722016", "0.56191593", "0.55989605", "0.5507775", "0.5439479", "0.54063594", "0.53515726", "0.5298564", "0.5275407", "0.5211078", "0.5209353", "0.5185748", "0.5182779", "0.51719403", "0.5151672", "0.51347935", "0.5133514", "0.5122238", "0.510710...
0.72589576
1
Solve a linear equation system involving a basis matrix. solvewithbasis(self,transp_,numnz_,sub_,val_)
def solvewithbasis(self,transp_,numnz_,sub_,val_): _numnz_tmp = ctypes.c_int32(numnz_) _sub_minlength = self.getnumcon() if self.getnumcon() > 0 and sub_ is not None and len(sub_) != self.getnumcon(): raise ValueError("Array argument sub is not long enough: Is %d, expected %d" % (len(sub_),self.getnum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def solvewithbasis(self,transp_,numnz_,sub,val): # 3\n _copyback_sub = False\n if sub is None:\n sub_ = None\n else:\n try:\n sub_ = memoryview(sub)\n except TypeError:\n try:\n _tmparr_sub = array.array(\"i\",sub)\n except TypeError:\n ...
[ "0.8131871", "0.59714824", "0.5729135", "0.5628742", "0.56091446", "0.55008405", "0.5451734", "0.5344914", "0.53239274", "0.5203088", "0.52024055", "0.5150057", "0.50754064", "0.50556207", "0.5001627", "0.49995735", "0.49937603", "0.49653995", "0.49574485", "0.4943281", "0.49...
0.81305534
1
Computes conditioning information for the basis matrix. basiscond(self)
def basiscond(self): nrmbasis_ = ctypes.c_double() nrminvbasis_ = ctypes.c_double() res = __library__.MSK_XX_basiscond(self.__nativep,ctypes.byref(nrmbasis_),ctypes.byref(nrminvbasis_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) nrmbasis_ = nrmbasis_.valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def basiscond(self): # 3\n res,resargs = self.__obj.basiscond()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _nrmbasis_return_value,_nrminvbasis_return_value = resargs\n return _nrmbasis_return_value,_nrminvbasis_return_value", "def _t...
[ "0.7401494", "0.64921606", "0.57574993", "0.5757078", "0.57382345", "0.5737791", "0.57173383", "0.5618264", "0.56107277", "0.56098473", "0.5554291", "0.5542242", "0.55095696", "0.54061496", "0.53822345", "0.53605485", "0.53488797", "0.53358144", "0.5334709", "0.5314764", "0.5...
0.7459991
0
Appends a number of constraints to the optimization task. appendcons(self,num_)
def appendcons(self,num_): res = __library__.MSK_XX_appendcons(self.__nativep,num_) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def appendcons(self,num_): # 3\n res = self.__obj.appendcons(num_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)", "def add_constraint(self, constraint):\n constraint_type = constraint[0]\n if constraint_type == 'time':\n d...
[ "0.71618354", "0.5837507", "0.57036966", "0.5674323", "0.5663676", "0.564805", "0.5605173", "0.5550933", "0.55144083", "0.544833", "0.5390708", "0.5379284", "0.5327178", "0.5318046", "0.5295975", "0.529086", "0.52815723", "0.5280168", "0.527523", "0.52032757", "0.51928747", ...
0.7185383
0
Appends a number of variables to the optimization task. appendvars(self,num_)
def appendvars(self,num_): res = __library__.MSK_XX_appendvars(self.__nativep,num_) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def appendvars(self,num_): # 3\n res = self.__obj.appendvars(num_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)", "def addVars(self, *indexes, **kwargs):\n ...", "def add_variables(self, variables):\n for variable in variables:\n ...
[ "0.7904469", "0.59922993", "0.5989691", "0.5909687", "0.5740387", "0.56843954", "0.5554662", "0.55087805", "0.5492639", "0.54744667", "0.5469596", "0.5469596", "0.5439085", "0.54265416", "0.5411829", "0.54096377", "0.5366153", "0.5350174", "0.53359", "0.53321993", "0.5321142"...
0.77544904
1
Removes a number of constraints. removecons(self,subset_)
def removecons(self,subset_): num_ = None if num_ is None: num_ = len(subset_) elif num_ != len(subset_): raise IndexError("Inconsistent length of array subset") if subset_ is None: raise ValueError("Argument subset cannot be None") if subset_ is None: raise ValueError("Argum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def removecons(self,subset): # 3\n num_ = None\n if num_ is None:\n num_ = len(subset)\n elif num_ != len(subset):\n raise IndexError(\"Inconsistent length of array subset\")\n if num_ is None: num_ = 0\n if subset is None: raise TypeError(\"Invalid type for argument subset\"...
[ "0.82700276", "0.7332951", "0.72566605", "0.67324287", "0.6559985", "0.64388156", "0.63277817", "0.6175792", "0.614257", "0.5968138", "0.5823671", "0.580427", "0.5789894", "0.57380253", "0.5684563", "0.5578613", "0.55290496", "0.5512659", "0.53915256", "0.5372119", "0.5369376...
0.81802654
1
Removes a number of variables. removevars(self,subset_)
def removevars(self,subset_): num_ = None if num_ is None: num_ = len(subset_) elif num_ != len(subset_): raise IndexError("Inconsistent length of array subset") if subset_ is None: raise ValueError("Argument subset cannot be None") if subset_ is None: raise ValueError("Argum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def removevars(self,subset): # 3\n num_ = None\n if num_ is None:\n num_ = len(subset)\n elif num_ != len(subset):\n raise IndexError(\"Inconsistent length of array subset\")\n if num_ is None: num_ = 0\n if subset is None: raise TypeError(\"Invalid type for argument subset\"...
[ "0.8907224", "0.78043014", "0.7453004", "0.6692764", "0.6318491", "0.6138598", "0.59088767", "0.58950776", "0.5870665", "0.58485174", "0.5781053", "0.5777436", "0.5639282", "0.5567257", "0.55330926", "0.54802483", "0.5447446", "0.53930205", "0.53908974", "0.5379356", "0.53722...
0.854354
1
Removes a number of symmetric matrices. removebarvars(self,subset_)
def removebarvars(self,subset_): num_ = None if num_ is None: num_ = len(subset_) elif num_ != len(subset_): raise IndexError("Inconsistent length of array subset") if subset_ is None: raise ValueError("Argument subset cannot be None") if subset_ is None: raise ValueError("Ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def removebarvars(self,subset): # 3\n num_ = None\n if num_ is None:\n num_ = len(subset)\n elif num_ != len(subset):\n raise IndexError(\"Inconsistent length of array subset\")\n if num_ is None: num_ = 0\n if subset is None: raise TypeError(\"Invalid type for argument subse...
[ "0.8297461", "0.72585315", "0.72363526", "0.5895367", "0.5825849", "0.5779745", "0.5747303", "0.5530704", "0.55015457", "0.5498184", "0.5485593", "0.531922", "0.5292177", "0.5290783", "0.5279861", "0.52415746", "0.52012604", "0.5192966", "0.51445", "0.51120937", "0.509378", ...
0.8265025
1
Removes a number of conic constraints from the problem. removecones(self,subset_)
def removecones(self,subset_): num_ = None if num_ is None: num_ = len(subset_) elif num_ != len(subset_): raise IndexError("Inconsistent length of array subset") if subset_ is None: raise ValueError("Argument subset cannot be None") if subset_ is None: raise ValueError("Argu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def removecones(self,subset): # 3\n num_ = None\n if num_ is None:\n num_ = len(subset)\n elif num_ != len(subset):\n raise IndexError(\"Inconsistent length of array subset\")\n if num_ is None: num_ = 0\n if subset is None: raise TypeError(\"Invalid type for argument subset\...
[ "0.83215594", "0.7152217", "0.7077424", "0.6343125", "0.609424", "0.5977655", "0.5930062", "0.5876391", "0.5876157", "0.57800704", "0.5628625", "0.5434072", "0.5406661", "0.5321781", "0.5312178", "0.52586085", "0.5258399", "0.52080315", "0.51944923", "0.5176773", "0.513047", ...
0.8212127
1
Appends semidefinite variables to the problem. appendbarvars(self,dim_)
def appendbarvars(self,dim_): num_ = None if num_ is None: num_ = len(dim_) elif num_ != len(dim_): raise IndexError("Inconsistent length of array dim") if dim_ is None: raise ValueError("Argument dim cannot be None") if dim_ is None: raise ValueError("Argument dim may not be...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def appendbarvars(self,dim): # 3\n num_ = None\n if num_ is None:\n num_ = len(dim)\n elif num_ != len(dim):\n raise IndexError(\"Inconsistent length of array dim\")\n if num_ is None: num_ = 0\n if dim is None: raise TypeError(\"Invalid type for argument dim\")\n if dim...
[ "0.8159918", "0.55441445", "0.53684646", "0.533822", "0.5304417", "0.5274865", "0.51826805", "0.51651216", "0.5160413", "0.5143895", "0.5126579", "0.49842018", "0.49332213", "0.4922936", "0.48779106", "0.47955328", "0.47735283", "0.47632688", "0.47520563", "0.47460842", "0.47...
0.80840147
1
Appends a new conic constraint to the problem. appendcone(self,ct_,conepar_,submem_)
def appendcone(self,ct_,conepar_,submem_): nummem_ = None if nummem_ is None: nummem_ = len(submem_) elif nummem_ != len(submem_): raise IndexError("Inconsistent length of array submem") if submem_ is None: raise ValueError("Argument submem cannot be None") if submem_ is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def appendcone(self,ct_,conepar_,submem): # 3\n if not isinstance(ct_,conetype): raise TypeError(\"Argument ct has wrong type\")\n nummem_ = None\n if nummem_ is None:\n nummem_ = len(submem)\n elif nummem_ != len(submem):\n raise IndexError(\"Inconsistent length of array submem\"...
[ "0.8244941", "0.77045983", "0.74703234", "0.74599016", "0.7063304", "0.6341248", "0.6041502", "0.5657737", "0.53261125", "0.5275094", "0.5257149", "0.5240593", "0.52378", "0.5133575", "0.51317424", "0.51154685", "0.51087177", "0.50969726", "0.5067879", "0.50591534", "0.501998...
0.8216878
1
Appends a new conic constraint to the problem. appendconeseq(self,ct_,conepar_,nummem_,j_)
def appendconeseq(self,ct_,conepar_,nummem_,j_): res = __library__.MSK_XX_appendconeseq(self.__nativep,ct_,conepar_,nummem_,j_) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def appendconeseq(self,ct_,conepar_,nummem_,j_): # 3\n if not isinstance(ct_,conetype): raise TypeError(\"Argument ct has wrong type\")\n res = self.__obj.appendconeseq(ct_,conepar_,nummem_,j_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)", "...
[ "0.86378384", "0.75416327", "0.7458773", "0.7380015", "0.73679143", "0.646462", "0.6225315", "0.51709515", "0.5064763", "0.48974988", "0.48840624", "0.48815274", "0.48780966", "0.4864251", "0.48559266", "0.47979966", "0.4756608", "0.4728465", "0.47282267", "0.4699578", "0.467...
0.86945903
0
Appends multiple conic constraints to the problem. appendconesseq(self,ct_,conepar_,nummem_,j_)
def appendconesseq(self,ct_,conepar_,nummem_,j_): num_ = None if num_ is None: num_ = len(ct_) elif num_ != len(ct_): raise IndexError("Inconsistent length of array ct") if num_ is None: num_ = len(conepar_) elif num_ != len(conepar_): raise IndexError("Inconsistent length of...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def appendconeseq(self,ct_,conepar_,nummem_,j_): # 3\n if not isinstance(ct_,conetype): raise TypeError(\"Argument ct has wrong type\")\n res = self.__obj.appendconeseq(ct_,conepar_,nummem_,j_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)", "...
[ "0.804992", "0.7942396", "0.7373104", "0.67235893", "0.66512686", "0.5923257", "0.5694749", "0.5581973", "0.5278961", "0.5160132", "0.5134265", "0.49960873", "0.49393323", "0.49215627", "0.49015927", "0.48836264", "0.4847048", "0.47998023", "0.479868", "0.479868", "0.47911417...
0.74851453
2
Changes the bounds for one constraint. chgconbound(self,i_,lower_,finite_,value_)
def chgconbound(self,i_,lower_,finite_,value_): res = __library__.MSK_XX_chgconbound(self.__nativep,i_,lower_,finite_,value_) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chgconbound(self,i_,lower_,finite_,value_): # 3\n res = self.__obj.chgconbound(i_,lower_,finite_,value_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)", "def chgbound(self,accmode_,i_,lower_,finite_,value_): # 3\n if not isinstance(accmode...
[ "0.9179256", "0.7916872", "0.7376792", "0.7195413", "0.6016417", "0.6004763", "0.5817389", "0.5724509", "0.5707932", "0.56736284", "0.5642968", "0.5613745", "0.5549648", "0.5543372", "0.55391896", "0.5501184", "0.5480884", "0.5466385", "0.5455747", "0.54376006", "0.543686", ...
0.8795833
1
Changes the bounds for one variable. chgvarbound(self,j_,lower_,finite_,value_)
def chgvarbound(self,j_,lower_,finite_,value_): res = __library__.MSK_XX_chgvarbound(self.__nativep,j_,lower_,finite_,value_) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chgvarbound(self,j_,lower_,finite_,value_): # 3\n res = self.__obj.chgvarbound(j_,lower_,finite_,value_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)", "def chgconbound(self,i_,lower_,finite_,value_): # 3\n res = self.__obj.chgconbound(i_...
[ "0.92657965", "0.6645805", "0.66179705", "0.63044393", "0.6285839", "0.6257946", "0.62345994", "0.61521727", "0.57639956", "0.56784153", "0.5577765", "0.5573649", "0.54211104", "0.5403837", "0.53660214", "0.52223015", "0.52110463", "0.5164623", "0.51575583", "0.51482254", "0....
0.8982534
1
Obtains a single coefficient in linear constraint matrix. getaij(self,i_,j_)
def getaij(self,i_,j_): aij_ = ctypes.c_double() res = __library__.MSK_XX_getaij(self.__nativep,i_,j_,ctypes.byref(aij_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) aij_ = aij_.value _aij_return_value = aij_ return (_aij_return_value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getaij(self,i_,j_): # 3\n res,resargs = self.__obj.getaij(i_,j_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _aij_return_value = resargs\n return _aij_return_value", "def getqobjij(self,i_,j_): # 3\n res,resargs = self.__obj....
[ "0.7493986", "0.64376247", "0.6392298", "0.6329551", "0.6308506", "0.6269593", "0.6261952", "0.6139124", "0.61024755", "0.61000454", "0.60522926", "0.5945203", "0.5922942", "0.59190106", "0.5905818", "0.5891535", "0.5806236", "0.578032", "0.57758945", "0.5755988", "0.572439",...
0.7658511
0
Obtains the number nonzeros in a rectangular piece of the linear constraint matrix. getapiecenumnz(self,firsti_,lasti_,firstj_,lastj_)
def getapiecenumnz(self,firsti_,lasti_,firstj_,lastj_): numnz_ = ctypes.c_int32() res = __library__.MSK_XX_getapiecenumnz(self.__nativep,firsti_,lasti_,firstj_,lastj_,ctypes.byref(numnz_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) numnz_ = numnz_.value _...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getapiecenumnz(self,firsti_,lasti_,firstj_,lastj_): # 3\n res,resargs = self.__obj.getapiecenumnz(firsti_,lasti_,firstj_,lastj_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _numnz_return_value = resargs\n return _numnz_return_value"...
[ "0.81828666", "0.7616695", "0.75478375", "0.7345593", "0.7094305", "0.69862217", "0.6438003", "0.6430326", "0.61437994", "0.5996406", "0.57730126", "0.5638592", "0.55720025", "0.5547465", "0.5504438", "0.54538846", "0.54515296", "0.5447022", "0.5447022", "0.5447022", "0.54470...
0.79388636
1
Obtains the number of nonzero elements in one column of the linear constraint matrix getacolnumnz(self,i_)
def getacolnumnz(self,i_): nzj_ = ctypes.c_int32() res = __library__.MSK_XX_getacolnumnz(self.__nativep,i_,ctypes.byref(nzj_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) nzj_ = nzj_.value _nzj_return_value = nzj_ return (_nzj_return_value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getacolnumnz(self,i_): # 3\n res,resargs = self.__obj.getacolnumnz(i_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _nzj_return_value = resargs\n return _nzj_return_value", "def getarownumnz(self,i_): # 3\n res,resargs = self....
[ "0.78955895", "0.6964569", "0.66872597", "0.6391909", "0.63877714", "0.632295", "0.63077927", "0.6225606", "0.6197037", "0.61326903", "0.61255556", "0.60932916", "0.60414433", "0.60414433", "0.5994617", "0.5992448", "0.59544677", "0.5947154", "0.5945124", "0.5940501", "0.5913...
0.7779385
1
Obtains one column of the linear constraint matrix. getacol(self,j_,subj_,valj_)
def getacol(self,j_,subj_,valj_): nzj_ = ctypes.c_int32() _subj_minlength = self.getacolnumnz((j_)) if self.getacolnumnz((j_)) > 0 and subj_ is not None and len(subj_) != self.getacolnumnz((j_)): raise ValueError("Array argument subj is not long enough: Is %d, expected %d" % (len(subj_),self.getacolnu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getacol(self,j_,subj,valj): # 3\n if subj is None: raise TypeError(\"Invalid type for argument subj\")\n _copyback_subj = False\n if subj is None:\n subj_ = None\n else:\n try:\n subj_ = memoryview(subj)\n except TypeError:\n try:\n _tmparr_...
[ "0.7543346", "0.6976331", "0.6404439", "0.6330695", "0.6330695", "0.6330695", "0.6279653", "0.6225708", "0.6189424", "0.61752653", "0.61163116", "0.5897423", "0.5880596", "0.5877866", "0.5869485", "0.58650994", "0.58379793", "0.57342744", "0.56699353", "0.564279", "0.5636988"...
0.74751633
1
Obtains a sequence of columns from the coefficient matrix. getacolslice(self,first_,last_,ptrb_,ptre_,sub_,val_)
def getacolslice(self,first_,last_,ptrb_,ptre_,sub_,val_): maxnumnz_ = self.getacolslicenumnz((first_),(last_)) _ptrb_minlength = ((last_) - (first_)) if ((last_) - (first_)) > 0 and ptrb_ is not None and len(ptrb_) != ((last_) - (first_)): raise ValueError("Array argument ptrb is not long enough: Is ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def putacolslice(self,first_,last_,ptrb_,ptre_,asub_,aval_):\n if ptrb_ is None:\n raise ValueError(\"Argument ptrb cannot be None\")\n if ptrb_ is None:\n raise ValueError(\"Argument ptrb may not be None\")\n if isinstance(ptrb_, numpy.ndarray) and ptrb_.dtype is numpy.dtype(numpy.int64) and pt...
[ "0.68298435", "0.68189096", "0.6633351", "0.6410343", "0.635861", "0.62143683", "0.59577066", "0.58845204", "0.5850808", "0.5840428", "0.5830795", "0.5818751", "0.5787353", "0.5729822", "0.57094395", "0.5652637", "0.5626832", "0.5602785", "0.557522", "0.55677515", "0.5536629"...
0.8195238
0
Obtains the number of nonzero elements in one row of the linear constraint matrix getarownumnz(self,i_)
def getarownumnz(self,i_): nzi_ = ctypes.c_int32() res = __library__.MSK_XX_getarownumnz(self.__nativep,i_,ctypes.byref(nzi_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) nzi_ = nzi_.value _nzi_return_value = nzi_ return (_nzi_return_value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getacolnumnz(self,i_):\n nzj_ = ctypes.c_int32()\n res = __library__.MSK_XX_getacolnumnz(self.__nativep,i_,ctypes.byref(nzj_))\n if res != 0:\n _,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n nzj_ = nzj_.value\n _nzj_return_value = nzj_\n return (_nzj_return_value...
[ "0.7470606", "0.7418583", "0.72705734", "0.6671628", "0.65264225", "0.64747626", "0.6341131", "0.62474984", "0.62369037", "0.6191386", "0.61299306", "0.60664266", "0.60327625", "0.60295826", "0.59809643", "0.58457065", "0.5787058", "0.57626253", "0.567574", "0.56754756", "0.5...
0.70268023
3
Obtains one row of the linear constraint matrix. getarow(self,i_,subi_,vali_)
def getarow(self,i_,subi_,vali_): nzi_ = ctypes.c_int32() _subi_minlength = self.getarownumnz((i_)) if self.getarownumnz((i_)) > 0 and subi_ is not None and len(subi_) != self.getarownumnz((i_)): raise ValueError("Array argument subi is not long enough: Is %d, expected %d" % (len(subi_),self.getarownu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getarow(self,i_,subi,vali): # 3\n if subi is None: raise TypeError(\"Invalid type for argument subi\")\n _copyback_subi = False\n if subi is None:\n subi_ = None\n else:\n try:\n subi_ = memoryview(subi)\n except TypeError:\n try:\n _tmparr_...
[ "0.6920191", "0.6274343", "0.62173253", "0.62173253", "0.62173253", "0.6196485", "0.5856732", "0.5815419", "0.5781744", "0.5771555", "0.5736372", "0.56483686", "0.5642731", "0.5605737", "0.55912125", "0.5473553", "0.5381739", "0.53433347", "0.5286959", "0.52848995", "0.525561...
0.6652325
1
Obtains the number of nonzeros in a slice of columns of the coefficient matrix. getacolslicenumnz(self,first_,last_)
def getacolslicenumnz(self,first_,last_): numnz_ = ctypes.c_int64() res = __library__.MSK_XX_getacolslicenumnz64(self.__nativep,first_,last_,ctypes.byref(numnz_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) numnz_ = numnz_.value _numnz_return_value = numnz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getarowslicenumnz(self,first_,last_):\n numnz_ = ctypes.c_int64()\n res = __library__.MSK_XX_getarowslicenumnz64(self.__nativep,first_,last_,ctypes.byref(numnz_))\n if res != 0:\n _,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n numnz_ = numnz_.value\n _numnz_return_v...
[ "0.7030425", "0.6908309", "0.69077706", "0.68798804", "0.67562634", "0.6697987", "0.60632735", "0.60440516", "0.59911394", "0.5967844", "0.59044164", "0.5890069", "0.58208543", "0.57897", "0.5725127", "0.5724517", "0.57188284", "0.5676727", "0.5675189", "0.5605064", "0.559714...
0.7720494
0
Obtains the number of nonzeros in a slice of rows of the coefficient matrix. getarowslicenumnz(self,first_,last_)
def getarowslicenumnz(self,first_,last_): numnz_ = ctypes.c_int64() res = __library__.MSK_XX_getarowslicenumnz64(self.__nativep,first_,last_,ctypes.byref(numnz_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) numnz_ = numnz_.value _numnz_return_value = numnz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getacolslicenumnz(self,first_,last_):\n numnz_ = ctypes.c_int64()\n res = __library__.MSK_XX_getacolslicenumnz64(self.__nativep,first_,last_,ctypes.byref(numnz_))\n if res != 0:\n _,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n numnz_ = numnz_.value\n _numnz_return_v...
[ "0.6821424", "0.6395617", "0.63196206", "0.6160555", "0.6055939", "0.5976274", "0.5861332", "0.57293874", "0.57270485", "0.5675843", "0.5640828", "0.5561198", "0.5522415", "0.5509788", "0.5488033", "0.5468512", "0.5459757", "0.54302907", "0.5399739", "0.5388458", "0.5382514",...
0.7653431
0
Obtains a sequence of rows from the coefficient matrix. getarowslice(self,first_,last_,ptrb_,ptre_,sub_,val_)
def getarowslice(self,first_,last_,ptrb_,ptre_,sub_,val_): maxnumnz_ = self.getarowslicenumnz((first_),(last_)) _ptrb_minlength = ((last_) - (first_)) if ((last_) - (first_)) > 0 and ptrb_ is not None and len(ptrb_) != ((last_) - (first_)): raise ValueError("Array argument ptrb is not long enough: Is ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getacolslice(self,first_,last_,ptrb_,ptre_,sub_,val_):\n maxnumnz_ = self.getacolslicenumnz((first_),(last_))\n _ptrb_minlength = ((last_) - (first_))\n if ((last_) - (first_)) > 0 and ptrb_ is not None and len(ptrb_) != ((last_) - (first_)):\n raise ValueError(\"Array argument ptrb is not long e...
[ "0.72424006", "0.7017984", "0.6397862", "0.6392683", "0.6295936", "0.62946856", "0.62616587", "0.6202416", "0.6158898", "0.60779953", "0.5999932", "0.59529024", "0.5874609", "0.5798113", "0.57943004", "0.5755523", "0.56610376", "0.5640397", "0.5582677", "0.55730736", "0.55696...
0.7663158
0
Obtains a sequence of rows from the coefficient matrix in sparse triplet format. getarowslicetrip(self,first_,last_,subi_,subj_,val_)
def getarowslicetrip(self,first_,last_,subi_,subj_,val_): maxnumnz_ = self.getarowslicenumnz((first_),(last_)) _subi_minlength = (maxnumnz_) if (maxnumnz_) > 0 and subi_ is not None and len(subi_) != (maxnumnz_): raise ValueError("Array argument subi is not long enough: Is %d, expected %d" % (len(subi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getarowslicetrip(self,first_,last_,subi,subj,val): # 3\n maxnumnz_ = self.getaslicenumnz(accmode.con,(first_),(last_))\n _copyback_subi = False\n if subi is None:\n subi_ = None\n else:\n try:\n subi_ = memoryview(subi)\n except TypeError:\n try:\n ...
[ "0.7290529", "0.70560914", "0.6958755", "0.61386895", "0.5720467", "0.5619456", "0.56170875", "0.5535816", "0.5501307", "0.5492698", "0.5491768", "0.54850245", "0.5449865", "0.5407904", "0.5361041", "0.5322481", "0.53132904", "0.5291811", "0.5257537", "0.5243826", "0.5230079"...
0.7172589
1
Obtains a sequence of columns from the coefficient matrix in triplet format. getacolslicetrip(self,first_,last_,subi_,subj_,val_)
def getacolslicetrip(self,first_,last_,subi_,subj_,val_): maxnumnz_ = self.getacolslicenumnz((first_),(last_)) _subi_minlength = (maxnumnz_) if (maxnumnz_) > 0 and subi_ is not None and len(subi_) != (maxnumnz_): raise ValueError("Array argument subi is not long enough: Is %d, expected %d" % (len(subi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getacolslicetrip(self,first_,last_,subi,subj,val): # 3\n maxnumnz_ = self.getaslicenumnz(accmode.var,(first_),(last_))\n _copyback_subi = False\n if subi is None:\n subi_ = None\n else:\n try:\n subi_ = memoryview(subi)\n except TypeError:\n try:\n ...
[ "0.77380747", "0.69819945", "0.67847955", "0.6653259", "0.6169519", "0.5882231", "0.58708996", "0.57938963", "0.570199", "0.56744456", "0.56735504", "0.5606898", "0.5576777", "0.5566366", "0.5544074", "0.55073357", "0.5492098", "0.54868627", "0.5441892", "0.5436611", "0.54346...
0.7907325
0
Obtains bound information for one constraint. getconbound(self,i_)
def getconbound(self,i_): bk_ = ctypes.c_int32() bl_ = ctypes.c_double() bu_ = ctypes.c_double() res = __library__.MSK_XX_getconbound(self.__nativep,i_,ctypes.byref(bk_),ctypes.byref(bl_),ctypes.byref(bu_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) _...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getconbound(self,i_): # 3\n res,resargs = self.__obj.getconbound(i_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _bk_return_value,_bl_return_value,_bu_return_value = resargs\n _bk_return_value = boundkey(_bk_return_value)\n ret...
[ "0.8117996", "0.67920166", "0.6751894", "0.67239743", "0.6467672", "0.62063897", "0.6088784", "0.6081014", "0.6081014", "0.6081014", "0.6081014", "0.6081014", "0.6081014", "0.6081014", "0.6081014", "0.6065061", "0.5971675", "0.59263587", "0.59000784", "0.59000784", "0.5864605...
0.7855516
1
Obtains bound information for one variable. getvarbound(self,i_)
def getvarbound(self,i_): bk_ = ctypes.c_int32() bl_ = ctypes.c_double() bu_ = ctypes.c_double() res = __library__.MSK_XX_getvarbound(self.__nativep,i_,ctypes.byref(bk_),ctypes.byref(bl_),ctypes.byref(bu_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) _...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getvarbound(self,i_): # 3\n res,resargs = self.__obj.getvarbound(i_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _bk_return_value,_bl_return_value,_bu_return_value = resargs\n _bk_return_value = boundkey(_bk_return_value)\n ret...
[ "0.88780814", "0.6618329", "0.6337327", "0.6297966", "0.6271888", "0.6069767", "0.606333", "0.603762", "0.59093964", "0.5864278", "0.5855671", "0.57791764", "0.5742324", "0.5674004", "0.56727177", "0.56428105", "0.5599474", "0.55750924", "0.5573686", "0.5553733", "0.554883", ...
0.8567469
1
Obtains bounds information for a slice of the constraints. getconboundslice(self,first_,last_,bk_,bl_,bu_)
def getconboundslice(self,first_,last_,bk_,bl_,bu_): _bk_minlength = ((last_) - (first_)) if ((last_) - (first_)) > 0 and bk_ is not None and len(bk_) != ((last_) - (first_)): raise ValueError("Array argument bk is not long enough: Is %d, expected %d" % (len(bk_),((last_) - (first_)))) if isinstance(b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getconboundslice(self,first_,last_,bk,bl,bu): # 3\n _copyback_bk = False\n if bk is None:\n bk_ = None\n else:\n try:\n bk_ = memoryview(bk)\n except TypeError:\n try:\n _tmparr_bk = array.array(\"i\",bk)\n except TypeError:\n ...
[ "0.83687973", "0.7650801", "0.7564731", "0.7493438", "0.74723506", "0.7434169", "0.7281272", "0.72708595", "0.69236696", "0.6754937", "0.67351925", "0.6625706", "0.6625706", "0.6625706", "0.6625706", "0.6625706", "0.6625706", "0.6625706", "0.6625706", "0.64139324", "0.6381346...
0.80538183
1
Obtains bounds information for a slice of the variables. getvarboundslice(self,first_,last_,bk_,bl_,bu_)
def getvarboundslice(self,first_,last_,bk_,bl_,bu_): _bk_minlength = ((last_) - (first_)) if ((last_) - (first_)) > 0 and bk_ is not None and len(bk_) != ((last_) - (first_)): raise ValueError("Array argument bk is not long enough: Is %d, expected %d" % (len(bk_),((last_) - (first_)))) if isinstance(b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getvarboundslice(self,first_,last_,bk,bl,bu): # 3\n _copyback_bk = False\n if bk is None:\n bk_ = None\n else:\n try:\n bk_ = memoryview(bk)\n except TypeError:\n try:\n _tmparr_bk = array.array(\"i\",bk)\n except TypeError:\n ...
[ "0.8427269", "0.76399803", "0.7581138", "0.72763824", "0.7077902", "0.6877357", "0.67139685", "0.65998864", "0.64918834", "0.63755333", "0.63566226", "0.6347929", "0.63300616", "0.62415", "0.6238382", "0.62190634", "0.62190634", "0.62190634", "0.62190634", "0.62190634", "0.62...
0.8042054
1
Obtains one objective coefficient. getcj(self,j_)
def getcj(self,j_): cj_ = ctypes.c_double() res = __library__.MSK_XX_getcj(self.__nativep,j_,ctypes.byref(cj_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) cj_ = cj_.value _cj_return_value = cj_ return (_cj_return_value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getcj(self,j_): # 3\n res,resargs = self.__obj.getcj(j_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _cj_return_value = resargs\n return _cj_return_value", "def jac(self):\n return self.unit_jac if self._jac is None else se...
[ "0.7897348", "0.694601", "0.649423", "0.64774793", "0.6358544", "0.6241598", "0.62322664", "0.62282366", "0.61798847", "0.6176942", "0.60854423", "0.6068824", "0.60608375", "0.6059429", "0.60535663", "0.6037667", "0.60261023", "0.6021581", "0.6002902", "0.5994126", "0.5985048...
0.7652591
1
Obtains all objective coefficients. getc(self,c_)
def getc(self,c_): _c_minlength = self.getnumvar() if self.getnumvar() > 0 and c_ is not None and len(c_) != self.getnumvar(): raise ValueError("Array argument c is not long enough: Is %d, expected %d" % (len(c_),self.getnumvar())) if isinstance(c_,numpy.ndarray) and not c_.flags.writeable: rais...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def coefficients(self) :\n return self.__coefficients", "def coefficients(self) :\n raise NotImplementedError", "def coefficients(self):\r\n return self.coef_['x']", "def coefficients(self):\n return self._coefficients", "def coefficients(self):\n return self._coefficient...
[ "0.65427005", "0.63974696", "0.63769525", "0.635677", "0.635677", "0.625591", "0.62489706", "0.6245763", "0.6245763", "0.61773825", "0.61445075", "0.612955", "0.6082035", "0.60051066", "0.5921834", "0.5798229", "0.57925135", "0.5790028", "0.57677597", "0.5748355", "0.56996524...
0.61323375
11
Obtains the fixed term in the objective. getcfix(self)
def getcfix(self): cfix_ = ctypes.c_double() res = __library__.MSK_XX_getcfix(self.__nativep,ctypes.byref(cfix_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) cfix_ = cfix_.value _cfix_return_value = cfix_ return (_cfix_return_value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getcfix(self): # 3\n res,resargs = self.__obj.getcfix()\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _cfix_return_value = resargs\n return _cfix_return_value", "def getCF(self):\r\n return self.lEq;", "def CFL(self):\n ...
[ "0.7102011", "0.69387436", "0.61814743", "0.61706793", "0.6118419", "0.6102831", "0.60178024", "0.59100634", "0.58950984", "0.5895022", "0.5848309", "0.58352464", "0.5788822", "0.5725575", "0.57214016", "0.56842697", "0.56441844", "0.56353074", "0.56272084", "0.56272084", "0....
0.723974
0
Obtains a cone. getcone(self,k_,submem_)
def getcone(self,k_,submem_): ct_ = ctypes.c_int32() conepar_ = ctypes.c_double() nummem_ = ctypes.c_int32() _submem_minlength = self.getconeinfo((k_))[2] if self.getconeinfo((k_))[2] > 0 and submem_ is not None and len(submem_) != self.getconeinfo((k_))[2]: raise ValueError("Array argument su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getcone(self,k_,submem): # 3\n _copyback_submem = False\n if submem is None:\n submem_ = None\n else:\n try:\n submem_ = memoryview(submem)\n except TypeError:\n try:\n _tmparr_submem = array.array(\"i\",submem)\n except TypeError:\n ...
[ "0.85851794", "0.74542636", "0.6922491", "0.6714365", "0.6663073", "0.6131412", "0.61234295", "0.60180366", "0.59645844", "0.5906362", "0.5844101", "0.55410284", "0.5464269", "0.5432204", "0.54281247", "0.54012233", "0.5308824", "0.5305274", "0.5274296", "0.52731514", "0.5224...
0.783578
1
Obtains information about a cone. getconeinfo(self,k_)
def getconeinfo(self,k_): ct_ = ctypes.c_int32() conepar_ = ctypes.c_double() nummem_ = ctypes.c_int32() res = __library__.MSK_XX_getconeinfo(self.__nativep,k_,ctypes.byref(ct_),ctypes.byref(conepar_),ctypes.byref(nummem_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getconeinfo(self,k_): # 3\n res,resargs = self.__obj.getconeinfo(k_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _ct_return_value,_conepar_return_value,_nummem_return_value = resargs\n _ct_return_value = conetype(_ct_return_value)\n...
[ "0.88562346", "0.65607196", "0.6062003", "0.6057762", "0.6046421", "0.6028648", "0.57615036", "0.57012206", "0.5669752", "0.56304246", "0.5603641", "0.5487404", "0.5487404", "0.53959966", "0.53923273", "0.53695613", "0.5355254", "0.5324863", "0.531304", "0.5291991", "0.528119...
0.85250115
1
Obtains a sequence of coefficients from the objective. getclist(self,subj_,c_)
def getclist(self,subj_,c_): num_ = None if num_ is None: num_ = len(subj_) elif num_ != len(subj_): raise IndexError("Inconsistent length of array subj") if subj_ is None: raise ValueError("Argument subj cannot be None") if subj_ is None: raise ValueError("Argument subj may ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def coefficients(self) :\n return self.__coefficients", "def coefficients(self):\n return self._coefficients", "def coefficients(self):\n return self._coefficients", "def coefficients(self) :\n raise NotImplementedError", "def coefficients(self):\r\n return self.coef_['x'...
[ "0.61023015", "0.60017306", "0.60017306", "0.6000582", "0.58433247", "0.581803", "0.581803", "0.57937485", "0.5704129", "0.55387217", "0.5518362", "0.5512744", "0.5497052", "0.54852647", "0.5466663", "0.54118663", "0.54016364", "0.537931", "0.5366499", "0.5345296", "0.5335419...
0.70591795
0
Obtains a sequence of coefficients from the objective. getcslice(self,first_,last_,c_)
def getcslice(self,first_,last_,c_): _c_minlength = ((last_) - (first_)) if ((last_) - (first_)) > 0 and c_ is not None and len(c_) != ((last_) - (first_)): raise ValueError("Array argument c is not long enough: Is %d, expected %d" % (len(c_),((last_) - (first_)))) if isinstance(c_,numpy.ndarray) and ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getcslice(self,first_,last_,c): # 3\n _copyback_c = False\n if c is None:\n c_ = None\n else:\n try:\n c_ = memoryview(c)\n except TypeError:\n try:\n _tmparr_c = array.array(\"d\",c)\n except TypeError:\n raise TypeError(\"Ar...
[ "0.74884826", "0.6898075", "0.6749403", "0.6479534", "0.6430882", "0.62302166", "0.6188517", "0.59158885", "0.5810388", "0.5780244", "0.56624705", "0.56085896", "0.5574313", "0.5566425", "0.55087215", "0.5465687", "0.5429033", "0.5421072", "0.5413725", "0.53567517", "0.534522...
0.7475892
1
Obtains a double information item. getdouinf(self,whichdinf_)
def getdouinf(self,whichdinf_): dvalue_ = ctypes.c_double() res = __library__.MSK_XX_getdouinf(self.__nativep,whichdinf_,ctypes.byref(dvalue_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) dvalue_ = dvalue_.value _dvalue_return_value = dvalue_ return (_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getdouinf(self,whichdinf_): # 3\n if not isinstance(whichdinf_,dinfitem): raise TypeError(\"Argument whichdinf has wrong type\")\n res,resargs = self.__obj.getdouinf(whichdinf_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _dvalue_re...
[ "0.8139567", "0.61747223", "0.57404494", "0.56027913", "0.54675555", "0.5288993", "0.5271653", "0.52566004", "0.5161955", "0.5105282", "0.50878364", "0.50546545", "0.5054538", "0.5047877", "0.5047438", "0.5029467", "0.50197035", "0.5018882", "0.5017841", "0.49776104", "0.4976...
0.7271567
1
Obtains a double parameter. getdouparam(self,param_)
def getdouparam(self,param_): parvalue_ = ctypes.c_double() res = __library__.MSK_XX_getdouparam(self.__nativep,param_,ctypes.byref(parvalue_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) parvalue_ = parvalue_.value _parvalue_return_value = parvalue_ r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getdouparam(self,param_): # 3\n if not isinstance(param_,dparam): raise TypeError(\"Argument param has wrong type\")\n res,resargs = self.__obj.getdouparam(param_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _parvalue_return_value =...
[ "0.7216291", "0.6473787", "0.63799834", "0.6056583", "0.6039823", "0.60313606", "0.5998796", "0.59530497", "0.5941797", "0.5872715", "0.5843549", "0.5813088", "0.5800583", "0.576759", "0.57210326", "0.56473833", "0.5598247", "0.5590956", "0.55658185", "0.5548109", "0.5548043"...
0.7105613
1
Computes the dual objective value associated with the solution. getdualobj(self,whichsol_)
def getdualobj(self,whichsol_): dualobj_ = ctypes.c_double() res = __library__.MSK_XX_getdualobj(self.__nativep,whichsol_,ctypes.byref(dualobj_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) dualobj_ = dualobj_.value _dualobj_return_value = dualobj_ ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getdualobj(self,whichsol_): # 3\n if not isinstance(whichsol_,soltype): raise TypeError(\"Argument whichsol has wrong type\")\n res,resargs = self.__obj.getdualobj(whichsol_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _dualobj_retu...
[ "0.8319954", "0.6920154", "0.6874271", "0.63215345", "0.6047877", "0.5961174", "0.59548587", "0.59537184", "0.58911043", "0.5846982", "0.5843001", "0.5692419", "0.5645508", "0.5627053", "0.5615924", "0.5534404", "0.5509056", "0.5460137", "0.5445977", "0.5432232", "0.5387754",...
0.79599565
1
Obtains an integer information item. getintinf(self,whichiinf_)
def getintinf(self,whichiinf_): ivalue_ = ctypes.c_int32() res = __library__.MSK_XX_getintinf(self.__nativep,whichiinf_,ctypes.byref(ivalue_)) if res != 0: _,msg = self.__getlasterror(res) raise Error(rescode(res),msg) ivalue_ = ivalue_.value _ivalue_return_value = ivalue_ return (_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getintinf(self,whichiinf_): # 3\n if not isinstance(whichiinf_,iinfitem): raise TypeError(\"Argument whichiinf has wrong type\")\n res,resargs = self.__obj.getintinf(whichiinf_)\n if res != 0:\n result,msg = self.__getlasterror(res)\n raise Error(rescode(res),msg)\n _ivalue_re...
[ "0.8475795", "0.7179274", "0.71271324", "0.6888658", "0.61792326", "0.61792326", "0.61284137", "0.6106969", "0.6090202", "0.60640436", "0.5953424", "0.5949886", "0.5806069", "0.5791027", "0.57118326", "0.57102764", "0.5709367", "0.5658817", "0.56567997", "0.5631905", "0.55623...
0.80981195
1