text
stringlengths
0
13M
imap_get_quota (PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8) imap_get_quota — Retrieve the quota level settings, and usage statics per mailbox Description imap_get_quota(IMAP\Connection $imap, string $quota_root): array|false Retrieve the quota level settings, and usage statics per mailbox. For a non-admin user version of this function, please see the imap_get_quotaroot() function of PHP. Parameters imap An IMAP\Connection instance. quota_root quota_root should normally be in the form of user.name where name is the mailbox you wish to retrieve information about. Return Values Returns an array with integer values limit and usage for the given mailbox. The value of limit represents the total amount of space allowed for this mailbox. The usage value represents the mailboxes current level of capacity. Will return false in the case of failure. As of PHP 4.3, the function more properly reflects the functionality as dictated by the » RFC2087. The array return value has changed to support an unlimited number of returned resources (i.e. messages, or sub-folders) with each named resource receiving an individual array key. Each key value then contains an another array with the usage and limit values within it. For backwards compatibility reasons, the original access methods are still available for use, although it is suggested to update. Changelog Version Description 8.1.0 The imap parameter expects an IMAP\Connection instance now; previously, a resource was expected. Examples Example #1 imap_get_quota() example <?php $mbox = imap_open("{imap.example.org}", "mailadmin", "password", OP_HALFOPEN)       or die("can't connect: " . imap_last_error()); $quota_value = imap_get_quota($mbox, "user.kalowsky"); if (is_array($quota_value)) {     echo "Usage level is: " . $quota_value['usage'];     echo "Limit level is: " . $quota_value['limit']; } imap_close($mbox); ?> Example #2 imap_get_quota() 4.3 or greater example <?php $mbox = imap_open("{imap.example.org}", "mailadmin", "password", OP_HALFOPEN)       or die("can't connect: " . imap_last_error()); $quota_values = imap_get_quota($mbox, "user.kalowsky"); if (is_array($quota_values)) {    $storage = $quota_values['STORAGE'];    echo "STORAGE usage level is: " .  $storage['usage'];    echo "STORAGE limit level is: " .  $storage['limit'];    $message = $quota_values['MESSAGE'];    echo "MESSAGE usage level is: " .  $message['usage'];    echo "MESSAGE limit is: " .  $message['limit'];    /* ...  */ } imap_close($mbox); ?> Notes This function is currently only available to users of the c-client2000 or greater library. The given imap must be opened as the mail administrator, otherwise this function will fail. See Also imap_open() - Open an IMAP stream to a mailbox imap_set_quota() - Sets a quota for a given mailbox imap_get_quotaroot() - Retrieve the quota settings per user
Subprocesses This section describes high-level async/await asyncio APIs to create and manage subprocesses. Here’s an example of how asyncio can run a shell command and obtain its result: import asyncio async def run(cmd): proc = await asyncio.create_subprocess_shell( cmd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE) stdout, stderr = await proc.communicate() print(f'[{cmd!r} exited with {proc.returncode}]') if stdout: print(f'[stdout]\n{stdout.decode()}') if stderr: print(f'[stderr]\n{stderr.decode()}') asyncio.run(run('ls /zzz')) will print: ['ls /zzz' exited with 1] [stderr] ls: /zzz: No such file or directory Because all asyncio subprocess functions are asynchronous and asyncio provides many tools to work with such functions, it is easy to execute and monitor multiple subprocesses in parallel. It is indeed trivial to modify the above example to run several commands simultaneously: async def main(): await asyncio.gather( run('ls /zzz'), run('sleep 1; echo "hello"')) asyncio.run(main()) See also the Examples subsection. Creating Subprocesses coroutine asyncio.create_subprocess_exec(program, *args, stdin=None, stdout=None, stderr=None, loop=None, limit=None, **kwds) Create a subprocess. The limit argument sets the buffer limit for StreamReader wrappers for Process.stdout and Process.stderr (if subprocess.PIPE is passed to stdout and stderr arguments). Return a Process instance. See the documentation of loop.subprocess_exec() for other parameters. coroutine asyncio.create_subprocess_shell(cmd, stdin=None, stdout=None, stderr=None, loop=None, limit=None, **kwds) Run the cmd shell command. The limit argument sets the buffer limit for StreamReader wrappers for Process.stdout and Process.stderr (if subprocess.PIPE is passed to stdout and stderr arguments). Return a Process instance. See the documentation of loop.subprocess_shell() for other parameters. Important It is the application’s responsibility to ensure that all whitespace and special characters are quoted appropriately to avoid shell injection vulnerabilities. The shlex.quote() function can be used to properly escape whitespace and special shell characters in strings that are going to be used to construct shell commands. Note The default asyncio event loop implementation on Windows does not support subprocesses. Subprocesses are available for Windows if a ProactorEventLoop is used. See Subprocess Support on Windows for details. See also asyncio also has the following low-level APIs to work with subprocesses: loop.subprocess_exec(), loop.subprocess_shell(), loop.connect_read_pipe(), loop.connect_write_pipe(), as well as the Subprocess Transports and Subprocess Protocols. Constants asyncio.subprocess.PIPE Can be passed to the stdin, stdout or stderr parameters. If PIPE is passed to stdin argument, the Process.stdin attribute will point to a StreamWriter instance. If PIPE is passed to stdout or stderr arguments, the Process.stdout and Process.stderr attributes will point to StreamReader instances. asyncio.subprocess.STDOUT Special value that can be used as the stderr argument and indicates that standard error should be redirected into standard output. asyncio.subprocess.DEVNULL Special value that can be used as the stdin, stdout or stderr argument to process creation functions. It indicates that the special file os.devnull will be used for the corresponding subprocess stream. Interacting with Subprocesses Both create_subprocess_exec() and create_subprocess_shell() functions return instances of the Process class. Process is a high-level wrapper that allows communicating with subprocesses and watching for their completion. class asyncio.subprocess.Process An object that wraps OS processes created by the create_subprocess_exec() and create_subprocess_shell() functions. This class is designed to have a similar API to the subprocess.Popen class, but there are some notable differences: unlike Popen, Process instances do not have an equivalent to the poll() method; the communicate() and wait() methods don’t have a timeout parameter: use the wait_for() function; the Process.wait() method is asynchronous, whereas subprocess.Popen.wait() method is implemented as a blocking busy loop; the universal_newlines parameter is not supported. This class is not thread safe. See also the Subprocess and Threads section. coroutine wait() Wait for the child process to terminate. Set and return the returncode attribute. Note This method can deadlock when using stdout=PIPE or stderr=PIPE and the child process generates so much output that it blocks waiting for the OS pipe buffer to accept more data. Use the communicate() method when using pipes to avoid this condition. coroutine communicate(input=None) Interact with process: send data to stdin (if input is not None); read data from stdout and stderr, until EOF is reached; wait for process to terminate. The optional input argument is the data (bytes object) that will be sent to the child process. Return a tuple (stdout_data, stderr_data). If either BrokenPipeError or ConnectionResetError exception is raised when writing input into stdin, the exception is ignored. This condition occurs when the process exits before all data are written into stdin. If it is desired to send data to the process’ stdin, the process needs to be created with stdin=PIPE. Similarly, to get anything other than None in the result tuple, the process has to be created with stdout=PIPE and/or stderr=PIPE arguments. Note, that the data read is buffered in memory, so do not use this method if the data size is large or unlimited. send_signal(signal) Sends the signal signal to the child process. Note On Windows, SIGTERM is an alias for terminate(). CTRL_C_EVENT and CTRL_BREAK_EVENT can be sent to processes started with a creationflags parameter which includes CREATE_NEW_PROCESS_GROUP. terminate() Stop the child process. On POSIX systems this method sends signal.SIGTERM to the child process. On Windows the Win32 API function TerminateProcess() is called to stop the child process. kill() Kill the child. On POSIX systems this method sends SIGKILL to the child process. On Windows this method is an alias for terminate(). stdin Standard input stream (StreamWriter) or None if the process was created with stdin=None. stdout Standard output stream (StreamReader) or None if the process was created with stdout=None. stderr Standard error stream (StreamReader) or None if the process was created with stderr=None. Warning Use the communicate() method rather than process.stdin.write(), await process.stdout.read() or await process.stderr.read. This avoids deadlocks due to streams pausing reading or writing and blocking the child process. pid Process identification number (PID). Note that for processes created by the create_subprocess_shell() function, this attribute is the PID of the spawned shell. returncode Return code of the process when it exits. A None value indicates that the process has not terminated yet. A negative value -N indicates that the child was terminated by signal N (POSIX only). Subprocess and Threads Standard asyncio event loop supports running subprocesses from different threads, but there are limitations: An event loop must run in the main thread. The child watcher must be instantiated in the main thread before executing subprocesses from other threads. Call the get_child_watcher() function in the main thread to instantiate the child watcher. Note that alternative event loop implementations might not share the above limitations; please refer to their documentation. See also The Concurrency and multithreading in asyncio section. Examples An example using the Process class to control a subprocess and the StreamReader class to read from its standard output. The subprocess is created by the create_subprocess_exec() function: import asyncio import sys async def get_date(): code = 'import datetime; print(datetime.datetime.now())' # Create the subprocess; redirect the standard output # into a pipe. proc = await asyncio.create_subprocess_exec( sys.executable, '-c', code, stdout=asyncio.subprocess.PIPE) # Read one line of output. data = await proc.stdout.readline() line = data.decode('ascii').rstrip() # Wait for the subprocess exit. await proc.wait() return line if sys.platform == "win32": asyncio.set_event_loop_policy( asyncio.WindowsProactorEventLoopPolicy()) date = asyncio.run(get_date()) print(f"Current date: {date}") See also the same example written using low-level APIs.
XRFrame.trackedAnchors The read-only trackedAnchor property of the XRFrame interface returns an XRAnchorSet object containing all anchors still tracked in the frame. Value An XRAnchorSet object. Examples Updating anchors for (const anchor of frame.trackedAnchors) { const pose = frame.getPose(anchor.anchorSpace, referenceSpace); } Specifications Specification WebXR Anchors Module # dom-xrframe-trackedanchors Browser compatibility Desktop Mobile Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet trackedAnchors 85 85 No No No No No 85 No No No 14.0 Found a problem with this page? Edit on GitHub Source on GitHub Report a problem with this content on GitHub Want to fix the problem yourself? See our Contribution guide. Last modified: Sep 2, 2021, by MDN contributors
arista.eos.eos – Use eos cliconf to run command on Arista EOS platform Note This plugin is part of the arista.eos collection (version 2.2.0). You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list. To install it, use: ansible-galaxy collection install arista.eos. To use it in a playbook, specify: arista.eos.eos. New in version 1.0.0: of arista.eos Synopsis Parameters Synopsis This eos plugin provides low level abstraction apis for sending and receiving CLI commands from Arista EOS network devices. Parameters Parameter Choices/Defaults Configuration Comments config_commands list / elements=string added in 2.0.0 of arista.eos Default:[] var: ansible_eos_config_commands Specifies a list of commands that can make configuration changes to the target device. When `ansible_network_single_user_mode` is enabled, if a command sent to the device is present in this list, the existing cache is invalidated. eos_use_sessions boolean Choices: no yes ← env:ANSIBLE_EOS_USE_SESSIONS var: ansible_eos_use_sessions Specifies if sessions should be used on remote host or not Authors Ansible Networking Team © 2012–2018 Michael DeHaan
public function ApcuBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069delete public ApcuBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069delete($cid) Deletes an item from the cache. If the cache item is being deleted because it is no longer "fresh", you may consider using invalidate() instead. This allows callers to retrieve the invalid item by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache. Parameters string $cid: The cache ID to delete. Overrides CacheBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069delete See also \Drupal\Core\Cache\CacheBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069invalidate() \Drupal\Core\Cache\CacheBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069deleteMultiple() \Drupal\Core\Cache\CacheBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069deleteAll() File core/lib/Drupal/Core/Cache/ApcuBackend.php, line 192 Class ApcuBackend Stores cache items in the Alternative PHP Cache User Cache (APCu). Namespace Drupal\Core\Cache Code public function delete($cid) { apcu_delete($this->getApcuKey($cid)); }
Argon2iPasswordEncoder class Argon2iPasswordEncoder extends BasePasswordEncoder implements SelfSaltingEncoderInterface Argon2iPasswordEncoder uses the Argon2i hashing algorithm. Constants MAX_PASSWORD_LENGTH Methods array demergePasswordAndSalt(string $mergedPasswordSalt) Demerges a merge password and salt string. from BasePasswordEncoder string mergePasswordAndSalt(string $password, string $salt) Merges a password and a salt. from BasePasswordEncoder bool comparePasswords(string $password1, string $password2) Compares two passwords. from BasePasswordEncoder bool isPasswordTooLong(string $password) Checks if the password is too long. from BasePasswordEncoder __construct(int $memoryCost = null, int $timeCost = null, int $threads = null) Argon2iPasswordEncoder constructor. static isSupported() string encodePassword(string $raw, string $salt) Encodes the raw password. bool isPasswordValid(string $encoded, string $raw, string $salt) Checks a raw password against an encoded password. Details protected array demergePasswordAndSalt(string $mergedPasswordSalt) Demerges a merge password and salt string. Parameters string $mergedPasswordSalt The merged password and salt string Return Value array An array where the first element is the password and the second the salt protected string mergePasswordAndSalt(string $password, string $salt) Merges a password and a salt. Parameters string $password The password to be used string $salt The salt to be used Return Value string a merged password and salt Exceptions InvalidArgumentException protected bool comparePasswords(string $password1, string $password2) Compares two passwords. This method implements a constant-time algorithm to compare passwords to avoid (remote) timing attacks. Parameters string $password1 The first password string $password2 The second password Return Value bool true if the two passwords are the same, false otherwise protected bool isPasswordTooLong(string $password) Checks if the password is too long. Parameters string $password The password to check Return Value bool true if the password is too long, false otherwise __construct(int $memoryCost = null, int $timeCost = null, int $threads = null) Argon2iPasswordEncoder constructor. Parameters int $memoryCost memory usage of the algorithm int $timeCost number of iterations int $threads number of parallel threads static isSupported() string encodePassword(string $raw, string $salt) Encodes the raw password. Parameters string $raw The password to encode string $salt The salt Return Value string The encoded password bool isPasswordValid(string $encoded, string $raw, string $salt) Checks a raw password against an encoded password. Parameters string $encoded An encoded password string $raw A raw password string $salt The salt Return Value bool true if the password is valid, false otherwise
fortinet.fortios.fortios_system_fortimanager – Configure FortiManager in Fortinet’s FortiOS and FortiGate. Note This plugin is part of the fortinet.fortios collection (version 1.1.8). To install it use: ansible-galaxy collection install fortinet.fortios. To use it in a playbook, specify: fortinet.fortios.fortios_system_fortimanager. New in version 2.9: of fortinet.fortios Synopsis Requirements Parameters Notes Examples Return Values Synopsis This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify system feature and fortimanager category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0 Requirements The below requirements are needed on the host that executes this module. ansible>=2.9.0 Parameters Parameter Choices/Defaults Comments access_token string Token-based authentication. Generated from GUI of Fortigate. system_fortimanager dictionary Configure FortiManager. central_management string Choices: enable disable Enable/disable FortiManager central management. central_mgmt_auto_backup string Choices: enable disable Enable/disable central management auto backup. central_mgmt_schedule_config_restore string Choices: enable disable Enable/disable central management schedule config restore. central_mgmt_schedule_script_restore string Choices: enable disable Enable/disable central management schedule script restore. ip string IP address. ipsec string Choices: enable disable Enable/disable FortiManager IPsec tunnel. vdom string Virtual domain name. Source system.vdom.name. vdom string Default:"root" Virtual domain, among those defined previously. A vdom is a virtual instance of the FortiGate that can be configured and used as a different unit. Notes Note Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks Examples - hosts: fortigates collections: - fortinet.fortios connection: httpapi vars: vdom: "root" ansible_httpapi_use_ssl: yes ansible_httpapi_validate_certs: no ansible_httpapi_port: 443 tasks: - name: Configure FortiManager. fortios_system_fortimanager: vdom: "{{ vdom }}" system_fortimanager: central_management: "enable" central_mgmt_auto_backup: "enable" central_mgmt_schedule_config_restore: "enable" central_mgmt_schedule_script_restore: "enable" ip: "<your_own_value>" ipsec: "enable" vdom: "<your_own_value> (source system.vdom.name)" Return Values Common return values are documented here, the following are the fields unique to this module: Key Returned Description build string always Build number of the fortigate image Sample: 1547 http_method string always Last method used to provision the content into FortiGate Sample: PUT http_status string always Last result given by FortiGate on last operation applied Sample: 200 mkey string success Master key (id) used in the last call to FortiGate Sample: id name string always Name of the table used to fulfill the request Sample: urlfilter path string always Path of the table used to fulfill the request Sample: webfilter revision string always Internal revision number Sample: 30.886-74-16318 serial string always Serial number of the unit Sample: FGVMEVYYQT3AB5352 status string always Indication of the operation's result Sample: success vdom string always Virtual domain used Sample: root version string always Version of the FortiGate Sample: v5.6.3 Authors Link Zheng (@chillancezen) Jie Xue (@JieX19) Hongbin Lu (@fgtdev-hblu) Frank Shen (@frankshen01) Miguel Angel Munoz (@mamunozgonzalez) Nicolas Thomas (@thomnico) © 2012–2018 Michael DeHaan
Symfony\Component\WebLink Namespaces Symfony\Component\WebLink\EventListener Classes HttpHeaderSerializer Serializes a list of Link instances to a HTTP Link header.
Source:getChannelCount Available since LÖVE 11.0 It has been renamed from Source:getChannels. Gets the number of channels in the Source. Only 1-channel (mono) Sources can use directional and positional effects. Function Synopsis channels = Source:getChannelCount( ) Arguments None. Returns number channels 1 for mono, 2 for stereo. See Also Source
st8b7c:f320:99b9:690f:4595:cd17:293a:c069moneypunct Defined in header <locale> template< class CharT, bool International = false > class moneypunct; The facet st8b7c:f320:99b9:690f:4595:cd17:293a:c069moneypunct encapsulates monetary value format preferences. Stream I/O manipulators st8b7c:f320:99b9:690f:4595:cd17:293a:c069get_money and st8b7c:f320:99b9:690f:4595:cd17:293a:c069put_money use st8b7c:f320:99b9:690f:4595:cd17:293a:c069moneypunct through st8b7c:f320:99b9:690f:4595:cd17:293a:c069money_get and st8b7c:f320:99b9:690f:4595:cd17:293a:c069money_put for parsing monetary value input and formatting monetary value output. Inheritance diagram. Four standalone (locale-independent) specializations are provided by the standard library: Defined in header <locale> st8b7c:f320:99b9:690f:4595:cd17:293a:c069moneypunct<char> provides equivalents of the "C" locale preferences st8b7c:f320:99b9:690f:4595:cd17:293a:c069moneypunct<wchar_t> provides wide character equivalents of the "C" locale preferences st8b7c:f320:99b9:690f:4595:cd17:293a:c069moneypunct<char, true> provides equivalents of the "C" locale preferences, with international currency symbols st8b7c:f320:99b9:690f:4595:cd17:293a:c069moneypunct<wchar_t, true> provides wide character equivalents of the "C" locale preferences, with international currency symbols In addition, every locale object constructed in a C++ program implements its own (locale-specific) versions of these specializations. Member types Member type Definition char_type CharT string_type st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_string<CharT> Member functions (constructor) constructs a new moneypunct facet (public member function) (destructor) destructs a moneypunct facet (protected member function) decimal_point invokes do_decimal_point (public member function) thousands_sep invokes do_thousands_sep (public member function) grouping invokes do_grouping (public member function) curr_symbol invokes do_curr_symbol (public member function) positive_signnegative_sign invokes do_positive_sign or do_negative_sign (public member function) frac_digits invokes do_frac_digits (public member function) pos_formatneg_format invokes do_pos_format/do_neg_format (public member function) Protected member functions do_decimal_point [virtual] provides the character to use as decimal point (virtual protected member function) do_thousands_sep [virtual] provides the character to use as thousands separator (virtual protected member function) do_grouping [virtual] provides the numbers of digits between each pair of thousands separators (virtual protected member function) do_curr_symbol [virtual] provides the string to use as the currency identifier (virtual protected member function) do_positive_signdo_negative_sign [virtual] provides the string to indicate a positive or negative value (virtual protected member function) do_frac_digits [virtual] provides the number of digits to display after the decimal point (virtual protected member function) do_pos_formatdo_neg_format [virtual] provides the formatting pattern for currency values (virtual protected member function) Member constants Member Definition const bool intl (static) International Member objects static st8b7c:f320:99b9:690f:4595:cd17:293a:c069local8b7c:f320:99b9:690f:4595:cd17:293a:c069id id id of the locale (public member object) Inherited from st8b7c:f320:99b9:690f:4595:cd17:293a:c069money_base Member type Definition enum part { none, space, symbol, sign, value }; unscoped enumeration type struct pattern { char field[4]; }; the monetary format type Enumeration constant Definition none whitespace is permitted but not required except in the last position, where whitespace is not permitted space one or more whitespace characters are required symbol the sequence of characters returned by moneypunct8b7c:f320:99b9:690f:4595:cd17:293a:c069urr_symbol is required sign the first of the characters returned by moneypunct8b7c:f320:99b9:690f:4595:cd17:293a:c069positive_sign or moneypunct8b7c:f320:99b9:690f:4595:cd17:293a:c069negative_sign is required value the absolute numeric monetary value is required See also money_base defines monetary formatting patterns (class) moneypunct_byname represents the system-supplied st8b7c:f320:99b9:690f:4595:cd17:293a:c069moneypunct for the named locale (class template) money_get parses and constructs a monetary value from an input character sequence (class template) money_put formats a monetary value for output as a character sequence (class template)
size_format( int|string $bytes, int $decimals ): string|false Converts a number of bytes to the largest unit the bytes will fit into. Description It is easier to read 1 KB than 1024 bytes and 1 MB than 1048576 bytes. Converts number of bytes to human readable number by taking the number of that unit that the bytes will go into it. Supports YB value. Please note that integers in PHP are limited to 32 bits, unless they are on 64 bit architecture, then they have 64 bit size. If you need to place the larger size then what PHP integer type will hold, then use a string. It will be converted to a double, which should always have 64 bit length. Technically the correct unit names for powers of 1024 are KiB, MiB etc. Parameters $bytes int|string Required Number of bytes. Note max integer size for integers. $decimals int Optional Precision of number of decimal places. Default 0. Return string|false Number string on success, false on failure. More Information Usage: // Returns the string '1 KiB' <?php $size_to_display = size_format(1024); ?> Source File: wp-includes/functions.php. View all references function size_format( $bytes, $decimals = 0 ) { $quant = array( /* translators: Unit symbol for yottabyte. */ _x( 'YB', 'unit symbol' ) => YB_IN_BYTES, /* translators: Unit symbol for zettabyte. */ _x( 'ZB', 'unit symbol' ) => ZB_IN_BYTES, /* translators: Unit symbol for exabyte. */ _x( 'EB', 'unit symbol' ) => EB_IN_BYTES, /* translators: Unit symbol for petabyte. */ _x( 'PB', 'unit symbol' ) => PB_IN_BYTES, /* translators: Unit symbol for terabyte. */ _x( 'TB', 'unit symbol' ) => TB_IN_BYTES, /* translators: Unit symbol for gigabyte. */ _x( 'GB', 'unit symbol' ) => GB_IN_BYTES, /* translators: Unit symbol for megabyte. */ _x( 'MB', 'unit symbol' ) => MB_IN_BYTES, /* translators: Unit symbol for kilobyte. */ _x( 'KB', 'unit symbol' ) => KB_IN_BYTES, /* translators: Unit symbol for byte. */ _x( 'B', 'unit symbol' ) => 1, ); if ( 0 === $bytes ) { /* translators: Unit symbol for byte. */ return number_format_i18n( 0, $decimals ) . ' ' . _x( 'B', 'unit symbol' ); } foreach ( $quant as $unit => $mag ) { if ( (float) $bytes >= $mag ) { return number_format_i18n( $bytes / $mag, $decimals ) . ' ' . $unit; } } return false; } Related Uses Uses Description _x() wp-includes/l10n.php Retrieves translated string with gettext context. number_format_i18n() wp-includes/functions.php Converts float number to format based on the locale. Used By Used By Description WP_Debug_Dat8b7c:f320:99b9:690f:4595:cd17:293a:c069get_sizes() wp-admin/includes/class-wp-debug-data.php Fetches the sizes of the WordPress directories: wordpress (ABSPATH), plugins, themes, and uploads. WP_Debug_Dat8b7c:f320:99b9:690f:4595:cd17:293a:c069debug_data() wp-admin/includes/class-wp-debug-data.php Static function for generating site debug data when required. upload_is_user_over_quota() wp-admin/includes/ms.php Check whether a site has used its allotted upload space. display_space_usage() wp-admin/includes/ms.php Displays the amount of disk space used by the current site. Not used in core. wp_import_upload_form() wp-admin/includes/template.php Outputs the form used by the importers to accept the data to be imported. multisite_over_quota_message() wp-admin/includes/media.php Displays the out of storage quota message in Multisite. attachment_submitbox_metadata() wp-admin/includes/media.php Displays non-editable attachment metadata in the publish meta box. media_upload_form() wp-admin/includes/media.php Outputs the legacy media upload form. wpmu_checkAvailableSpace() wp-admin/includes/ms-deprecated.php Determines if the available space defined by the admin has been exceeded by the user. wp_prepare_attachment_for_js() wp-includes/media.php Prepares an attachment post object for JS, where it is expected to be JSON-encoded and fit into an Attachment model. wp_xmlrpc_server8b7c:f320:99b9:690f:4595:cd17:293a:c069mw_newMediaObject() wp-includes/class-wp-xmlrpc-server.php Uploads a file, following your settings. wp_print_media_templates() wp-includes/media-template.php Prints the templates used in the media manager. Changelog Version Description 6.0.0 Support for PB, EB, ZB, and YB was added. 2.3.0 Introduced.
community.network.pn_cpu_class – CLI command to create/modify/delete cpu-class Note This plugin is part of the community.network collection (version 1.3.0). To install it use: ansible-galaxy collection install community.network. To use it in a playbook, specify: community.network.pn_cpu_class. Synopsis Parameters Examples Return Values Synopsis This module can be used to create, modify and delete CPU class information. Parameters Parameter Choices/Defaults Comments pn_cliswitch string Target switch to run the CLI on. pn_hog_protect string Choices: disable enable enable-and-drop enable host-based hog protection. pn_name string name for the CPU class. pn_rate_limit string rate-limit for CPU class. pn_scope string Choices: local fabric scope for CPU class. state string / required Choices: present absent update State the action to perform. Use present to create cpu-class and absent to delete cpu-class update to modify the cpu-class. Examples - name: Create cpu class community.network.pn_cpu_class: pn_cliswitch: 'sw01' state: 'present' pn_name: 'icmp' pn_rate_limit: '1000' pn_scope: 'local' - name: Delete cpu class community.network.pn_cpu_class: pn_cliswitch: 'sw01' state: 'absent' pn_name: 'icmp' - name: Modify cpu class community.network.pn_cpu_class: pn_cliswitch: 'sw01' state: 'update' pn_name: 'icmp' pn_rate_limit: '2000' Return Values Common return values are documented here, the following are the fields unique to this module: Key Returned Description changed boolean always indicates whether the CLI caused changes on the target. command string always the CLI command run on the target node. stderr list / elements=string on error set of error responses from the cpu-class command. stdout list / elements=string always set of responses from the cpu-class command. Authors Pluribus Networks (@rajaspachipulusu17) © 2012–2018 Michael DeHaan
pandas.cut pandas.cut(x, bins, right=True, labels=None, retbins=False, precision=3, include_lowest=False) [source] Return indices of half-open bins to which each value of x belongs. Parameters: x : array-like Input array to be binned. It has to be 1-dimensional. bins : int or sequence of scalars If bins is an int, it defines the number of equal-width bins in the range of x. However, in this case, the range of x is extended by .1% on each side to include the min or max values of x. If bins is a sequence it defines the bin edges allowing for non-uniform bin width. No extension of the range of x is done in this case. right : bool, optional Indicates whether the bins include the rightmost edge or not. If right == True (the default), then the bins [1,2,3,4] indicate (1,2], (2,3], (3,4]. labels : array or boolean, default None Used as labels for the resulting bins. Must be of the same length as the resulting bins. If False, return only integer indicators of the bins. retbins : bool, optional Whether to return the bins or not. Can be useful if bins is given as a scalar. precision : int The precision at which to store and display the bins labels include_lowest : bool Whether the first interval should be left-inclusive or not. Returns: out : Categorical or Series or array of integers if labels is False The return type (Categorical or Series) depends on the input: a Series of type category if input is a Series else Categorical. Bins are represented as categories when categorical data is returned. bins : ndarray of floats Returned only if retbins is True. Notes The cut function can be useful for going from a continuous variable to a categorical variable. For example, cut could convert ages to groups of age ranges. Any NA values will be NA in the result. Out of bounds values will be NA in the resulting Categorical object Examples >>> pd.cut(np.array([.2, 1.4, 2.5, 6.2, 9.7, 2.1]), 3, retbins=True) ([(0.191, 3.367], (0.191, 3.367], (0.191, 3.367], (3.367, 6.533], (6.533, 9.7], (0.191, 3.367]] Categories (3, object): [(0.191, 3.367] < (3.367, 6.533] < (6.533, 9.7]], array([ 0.1905 , 3.36666667, 6.53333333, 9.7 ])) >>> pd.cut(np.array([.2, 1.4, 2.5, 6.2, 9.7, 2.1]), 3, labels=["good","medium","bad"]) [good, good, good, medium, bad, good] Categories (3, object): [good < medium < bad] >>> pd.cut(np.ones(5), 4, labels=False) array([1, 1, 1, 1, 1], dtype=int64)
CMAKE_CONFIGURE_DEPENDS Tell CMake about additional input files to the configuration process. If any named file is modified the build system will re-run CMake to re-configure the file and generate the build system again. Specify files as a semicolon-separated list of paths. Relative paths are interpreted as relative to the current source directory.
numpy.ma.sum numpy.ma.sum(self, axis=None, dtype=None, out=None, keepdims=<class numpy._globals._NoValue at 0x40b6a26c>) = <numpy.ma.core._frommethod instance at 0x52d13c4c> Return the sum of the array elements over the given axis. Masked elements are set to 0 internally. Refer to numpy.sum for full documentation. See also ndarray.sum corresponding function for ndarrays numpy.sum equivalent function Examples >>> x = np.ma.array([[1,2,3],[4,5,6],[7,8,9]], mask=[0] + [1,0]*4) >>> print(x) [[1 -- 3] [-- 5 --] [7 -- 9]] >>> print(x.sum()) 25 >>> print(x.sum(axis=1)) [4 5 16] >>> print(x.sum(axis=0)) [8 5 12] >>> print(type(x.sum(axis=0, dtype=np.int64)[0])) <type 'numpy.int64'>
HTMLVideoElement.msIsStereo3D Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. msIsStereo3D is a read-only property which determines whether the system considers the loaded video source to be stereo 3-D or not. This proprietary property is specific to Internet Explorer and Microsoft Edge. Value Boolean value set to true indicates that the video source is stereo 3D. This uses metadata set in MP4 or MPEG-2 file containers and H.264 Supplemental enhancement information (SEI) messages to determine the stereo capability of the source. Browser compatibility Desktop Mobile Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet msIsStereo3D No 12-79 No 10 No No No No No No No No See also HTMLVideoElement Microsoft API extensions Found a problem with this page? Edit on GitHub Source on GitHub Report a problem with this content on GitHub Want to fix the problem yourself? See our Contribution guide. Last modified: Mar 29, 2022, by MDN contributors
st8b7c:f320:99b9:690f:4595:cd17:293a:c069local8b7c:f320:99b9:690f:4595:cd17:293a:c069locale Defined in header <locale> (1) locale() throw(); (until C++11) locale() noexcept; (since C++11) (2) locale( const locale& other ) throw(); (until C++11) locale( const locale& other ) noexcept; (since C++11) explicit locale( const char* std_name ); (3) explicit locale( const st8b7c:f320:99b9:690f:4595:cd17:293a:c069string& std_name ); (4) (since C++11) locale( const locale& other, const char* std_name, category cat ); (5) locale( const locale& other, const st8b7c:f320:99b9:690f:4595:cd17:293a:c069string& std_name, category cat ); (6) (since C++11) template< class Facet > locale( const locale& other, Facet* f ); (7) locale( const locale& other, const locale& one, category cat ); (8) Contstructs a new locale object. 1) Default constructor. Constructs a copy of the global C++ locale, which is the locale most recently used as the argument to st8b7c:f320:99b9:690f:4595:cd17:293a:c069local8b7c:f320:99b9:690f:4595:cd17:293a:c069global or a copy of st8b7c:f320:99b9:690f:4595:cd17:293a:c069local8b7c:f320:99b9:690f:4595:cd17:293a:c069classic if no call to st8b7c:f320:99b9:690f:4595:cd17:293a:c069local8b7c:f320:99b9:690f:4595:cd17:293a:c069global has been made. 2) Copy constructor. Constructs a copy of other. 3-4) Constructs a copy of the system locale with specified std_name (such as "C", or "POSIX", or "en_US.UTF-8", or "English_US.1251"), if such locale is supported by the operating system. The locale constructed in this manner has a name. 5-6) Constructs a copy of other except for all the facets identified by the cat argument, which are copied from the system locale identified by its std_name. The locale constructed in this manner has a name if and only if other has a name. 7) Constructs a copy of other except for the facet of type Facet (typically deduced from the type of the argument) which is installed from the argument facet. If facet is a null pointer, the constructed locale is a full copy of other. The locale constructed in this manner has no name. 8) Constructs a copy of other except for all the facets identified by the cat argument, which are copied from one. If both other and one have names, then the resulting locale also has a name. Parameters other - another locale to copy std_name - name of the system locale to use f - pointer to a facet to merge with other cat - the locale category used to identify the facets to merge with other one - another locale to take facets from Exceptions 3,5) st8b7c:f320:99b9:690f:4595:cd17:293a:c069runtime_error if the operating system has no locale named std_name or if std_name is a null pointer. 4,6) st8b7c:f320:99b9:690f:4595:cd17:293a:c069runtime_error if the operating system has no locale named std_name. 7,8) May throw implementation-defined exceptions. Notes Overload 7 is typically called with its second argument, f, obtained directly from a new-expression: the locale is responsible for calling the matching delete from its own destructor. Example #include <codecvt> #include <iostream> #include <locale> st8b7c:f320:99b9:690f:4595:cd17:293a:c069ostream& operator<< (st8b7c:f320:99b9:690f:4595:cd17:293a:c069ostream& os, st8b7c:f320:99b9:690f:4595:cd17:293a:c069locale const& loc) { if (loc.name().length() <= 80) { return os << loc.name() << '\n'; } for (const auto c : loc.name()) { c != ';' ? os << c : os << "\n "; } return os << '\n'; } int main() { st8b7c:f320:99b9:690f:4595:cd17:293a:c069locale l1; // l1 is a copy of the classic "C" locale st8b7c:f320:99b9:690f:4595:cd17:293a:c069locale l2("en_US.UTF-8"); // l2 is a unicode locale st8b7c:f320:99b9:690f:4595:cd17:293a:c069locale l3(l1, l2, st8b7c:f320:99b9:690f:4595:cd17:293a:c069local8b7c:f320:99b9:690f:4595:cd17:293a:c069ctype); // l3 is "C" except for ctype, which is unicode st8b7c:f320:99b9:690f:4595:cd17:293a:c069locale l4(l1, new st8b7c:f320:99b9:690f:4595:cd17:293a:c069codecvt_utf8<wchar_t>); // l4 is "C" except for codecvt st8b7c:f320:99b9:690f:4595:cd17:293a:c069cout << "Locale names:\n" << "l1: " << l1 << "l2: " << l2 << "l3: " << l3 << "l4: " << l4; } Possible output: Locale names: l1: C l2: en_US.UTF-8 l3: LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=C LC_COLLATE=C LC_MONETARY=C LC_MESSAGES=C LC_PAPER=C LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=C l4: * See also (destructor) destructs the locale and the facets whose reference count becomes zero (public member function)
numpy.nditer.itersize attribute nditer.itersize
salt.states.mysql_query Execution of MySQL queries New in version 2014.7.0. depends MySQLdb Python module configuration See salt.modules.mysql for setup instructions. The mysql_query module is used to execute queries on MySQL databases. Its output may be stored in a file or in a grain. query_id: mysql_query.run - database: my_database - query: "SELECT * FROM table;" - output: "/tmp/query_id.txt" salt.states.mysql_query.run(name, database, query, output=None, grain=None, key=None, overwrite=True, check_db_exists=True, client_flags=None, **connection_args) Execute an arbitrary query on the specified database name Used only as an ID database The name of the database to execute the query on query The query to execute output grain: output in a grain other: the file to store results None: output to the result comment (default) grain: grain to store the output (need output=grain) key: the specified grain will be treated as a dictionary, the result of this state will be stored under the specified key. overwrite: The file or grain will be overwritten if it already exists (default) check_db_exists: The state run will check that the specified database exists (default=True) before running any queries client_flags: A list of client flags to pass to the MySQL connection. https://dev.mysql.com/doc/internals/en/capability-flags.html salt.states.mysql_query.run_file(name, database, query_file=None, output=None, grain=None, key=None, overwrite=True, saltenv=None, check_db_exists=True, client_flags=None, **connection_args) Execute an arbitrary query on the specified database New in version 2017.7.0. name Used only as an ID database The name of the database to execute the query_file on query_file The file of mysql commands to run output grain: output in a grain other: the file to store results None: output to the result comment (default) grain: grain to store the output (need output=grain) key: the specified grain will be treated as a dictionary, the result of this state will be stored under the specified key. overwrite: The file or grain will be overwritten if it already exists (default) saltenv: The saltenv to pull the query_file from check_db_exists: The state run will check that the specified database exists (default=True) before running any queries client_flags: A list of client flags to pass to the MySQL connection. https://dev.mysql.com/doc/internals/en/capability-flags.html
public function ConfigDependencyManager8b7c:f320:99b9:690f:4595:cd17:293a:c069setData public ConfigDependencyManager8b7c:f320:99b9:690f:4595:cd17:293a:c069setData(array $data) Sets data to calculate dependencies for. The data is converted into lightweight ConfigEntityDependency objects. Parameters array $data: Configuration data keyed by configuration object name. Typically the output of \Drupal\Core\Config\StorageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069loadMultiple(). Return value $this File core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php, line 309 Class ConfigDependencyManager Provides a class to discover configuration entity dependencies. Namespace Drupal\Core\Config\Entity Code public function setData(array $data) { array_walk($data, function(&$config, $name) { $config = new ConfigEntityDependency($name, $config); }); $this->data = $data; $this->graph = NULL; return $this; }
Symfony\Component\Form\Extension\HttpFoundation\Type Classes FormTypeHttpFoundationExtension
DOM Parsing and Serialization Various DOM parsing and serializing functions, specifically DOMParser, XMLSerializer, innerHTML, outerHTML and insertAdjacentHTML. Spec https://www.w3.org/TR/DOM-Parsing/ Status W3C Candidate Recommendation IE Edge Firefox Chrome Safari Opera       110         108 109 TP       107 108 16.2   11 107 106 107 16.1 91 10 106 105 106 16.0 90 9 (2) 105 104 105 15.6 89 8 (2) 104 103 104 15.5 88 Show all 7 (2) 103 102 103 15.4 87 6 (2) 102 101 102 15.2-15.3 86 5.5 (2) 101 100 101 15.1 85   100 99 100 15 84   99 98 99 14.1 83   98 97 98 14 82   97 96 97 13.1 81   96 95 96 13 80   95 94 95 12.1 79   94 93 94 12 78   93 92 93 11.1 77   92 91 92 11 76   91 90 91 10.1 75   90 89 90 10 74   89 88 89 9.1 73   88 87 88 9 72   87 86 87 8 71   86 85 86 7.1 70   85 84 85 7 (1) 69   84 83 84 6.1 (1) 68   83 82 83 6 (1) 67   81 81 81 5.1 (1) 66   80 80 80 5 (1) 65   79 79 79 4 (1) 64   18 78 78 3.2 (1) 63   17 77 77 3.1 (1) 62   16 76 76   60   15 75 75   58   14 74 74   57   13 73 73   56   12 72 72   55     71 71   54     70 70   53     69 69   52     68 68   51     67 67   50     66 66   49     65 65   48     64 64   47     63 63   46     62 62   45     61 61   44     60 60   43     59 59   42     58 58   41     57 57   40     56 56   39     55 55   38     54 54   37     53 53   36     52 52   35     51 51   34     50 50   33     49 49   32     48 48   31     47 47   30     46 46   29     45 45   28     44 44   27     43 43   26     42 42   25     41 41   24     40 40   23     39 39   22     38 38   21     37 37   20     36 36   19     35 35   18     34 34   17 (1)     33 33   16 (1)     32 32   15 (1)     31 31   12.1 (1)     30 30 (1)   12 (1)     29 29 (1)   11.6 (1)     28 28 (1)   11.5 (1)     27 27 (1)   11.1 (1)     26 26 (1)   11 (1)     25 25 (1)   10.6 (1)     24 24 (1)   10.5 (1)     23 23 (1)   10.0-10.1 (1)     22 22 (1)   9.5-9.6     21 21 (1)   9     20 20 (1)         19 19 (1)         18 18 (1)         17 17 (1)         16 16 (1)         15 15 (1)         14 14 (1)         13 13 (1)         12 12 (1)         11 (1) 11 (1)         10 (3) 10 (1)         9 (3) 9 (1)         8 (3) 8 (1)         7 (2) 7 (1)         6 (2) 6 (1)         5 (2) 5 (1)         4 (2) 4 (1)         3.6 (2)           3.5 (2)           3 (2)           2 (2)       Safari on iOS Opera Mini Android Browser Blackberry Browser Opera Mobile Android Chrome Android Firefox IE Mobile Android UC Browser Samsung Internet QQ Browser Baidu Browser KaiOS Browser 16.1 all (1) 107 10 (1) 64 107 106 11 13.4 18.0 13.1 13.18 2.5 16.0   4.4.3-4.4.4 7 (1) 12.1 (1)     10   17.0       15.6   4.4   12 (1)         16.0       15.5   4.2-4.3 (1)   11.5 (1)         15.0       Show all 15.4   4.1 (1)   11.1 (1)         14.0       15.2-15.3   4 (1)   11 (1)         13.0       15.0-15.1   3 (1)   10         12.0       14.5-14.8   2.3 (1)             11.1-11.2       14.0-14.4   2.2 (1)             10.1       13.4-13.7   2.1 (1)             9.2       13.3                 8.2       13.2                 7.2-7.4       13.0-13.1                 6.2-6.4       12.2-12.5                 5.0-5.4       12.0-12.1                 4       11.3-11.4                         11.0-11.2                         10.3                         10.0-10.2                         9.3                         9.0-9.2                         8.1-8.4                         8                         7.0-7.1 (1)                         6.0-6.1 (1)                         5.0-5.1 (1)                         4.2-4.3 (1)                         4.0-4.1 (1)                         3.2 (1)                         Notes Partial support refers to lacking support for parseFromString on the DOMParser. Partial support refers to supporting only innerHTML. Partial support refers to supporting only innerHTML and insertAdjacentHTML. Bugs In IE10 and IE11, when using innerText, innerHTML or outerHTML on a textarea which has a placeholder attribute, the returned HTML/text also uses the placeholder's value as the actual textarea's value. See bug. innerHTML, insertAdjacentHTML, etc aren't supported or are read-only on the following elements in IE9 and below: col, colgroup, frameset, html, head, style, table, tbody, tfoot, thead, title, and tr. Resources MDN Web Docs - XMLSerializer Comparing Document Position by John Resig Data by caniuse.com Licensed under the Creative Commons Attribution License v4.0. https://caniuse.com/xml-serializer
dart:html MessageEvent constructor MessageEvent( String type, {bool canBubble = false, bool cancelable = false, Object? data, String? origin, String? lastEventId, Window? source, List<MessagePort> messagePorts = const []} ) Implementation factory MessageEvent(String type, {bool canBubble: false, bool cancelable: false, Object? data, String? origin, String? lastEventId, Window? source, List<MessagePort> messagePorts: const []}) { if (source == null) { source = window; } if (!Device.isIE) { // TODO: This if check should be removed once IE // implements the constructor. return JS( 'MessageEvent', 'new MessageEvent(#, {bubbles: #, cancelable: #, data: #, origin: #, lastEventId: #, source: #, ports: #})', type, canBubble, cancelable, data, origin, lastEventId, source, messagePorts); } MessageEvent event = document._createEvent("MessageEvent") as MessageEvent; event._initMessageEvent(type, canBubble, cancelable, data, origin, lastEventId, source, messagePorts); return event; }
matplotlib.patches.Rectangle classmatplotlib.patches.Rectangle(xy, width, height, angle=0.0, **kwargs)[source] Bases: matplotlib.patches.Patch A rectangle defined via an anchor point xy and its width and height. The rectangle extends from xy[0] to xy[0] + width in x-direction and from xy[1] to xy[1] + height in y-direction. : +------------------+ : | | : height | : | | : (xy)---- width -----+ One may picture xy as the bottom left corner, but which corner xy is actually depends on the direction of the axis and the sign of width and height; e.g. xy would be the bottom right corner if the x-axis was inverted or if width was negative. Parameters xy(float, float) The anchor point. widthfloat Rectangle width. heightfloat Rectangle height. anglefloat, default: 0 Rotation in degrees anti-clockwise about xy. Other Parameters **kwargsPatch properties Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha unknown animated bool antialiased or aa bool or None capstyle CapStyle or {'butt', 'projecting', 'round'} clip_box Bbox clip_on bool clip_path Patch or (Path, Transform) or None color color edgecolor or ec color or None facecolor or fc color or None figure Figure fill bool gid str hatch {'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} in_layout bool joinstyle JoinStyle or {'miter', 'round', 'bevel'} label object linestyle or ls {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} linewidth or lw float or None path_effects AbstractPathEffect picker None or bool or float or callable rasterized bool sketch_params (scale: float, length: float, randomness: float) snap bool or None transform Transform url str visible bool zorder float get_angle()[source] Get the rotation angle in degrees. get_bbox()[source] Return the Bbox. get_height()[source] Return the height of the rectangle. get_patch_transform()[source] Return the Transform instance mapping patch coordinates to data coordinates. For example, one may define a patch of a circle which represents a radius of 5 by providing coordinates for a unit circle, and a transform which scales the coordinates (the patch coordinate) by 5. get_path()[source] Return the vertices of the rectangle. get_width()[source] Return the width of the rectangle. get_x()[source] Return the left coordinate of the rectangle. get_xy()[source] Return the left and bottom coords of the rectangle as a tuple. get_y()[source] Return the bottom coordinate of the rectangle. set(*, agg_filter=<UNSET>, alpha=<UNSET>, angle=<UNSET>, animated=<UNSET>, antialiased=<UNSET>, bounds=<UNSET>, capstyle=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, color=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, fill=<UNSET>, gid=<UNSET>, hatch=<UNSET>, height=<UNSET>, in_layout=<UNSET>, joinstyle=<UNSET>, label=<UNSET>, linestyle=<UNSET>, linewidth=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, rasterized=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, width=<UNSET>, x=<UNSET>, xy=<UNSET>, y=<UNSET>, zorder=<UNSET>)[source] Set multiple [email protected]. Supported properties are Property Description agg_filter a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alpha scalar or None angle unknown animated bool antialiased or aa bool or None bounds (left, bottom, width, height) capstyle CapStyle or {'butt', 'projecting', 'round'} clip_box Bbox clip_on bool clip_path Patch or (Path, Transform) or None color color edgecolor or ec color or None facecolor or fc color or None figure Figure fill bool gid str hatch {'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} height unknown in_layout bool joinstyle JoinStyle or {'miter', 'round', 'bevel'} label object linestyle or ls {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} linewidth or lw float or None path_effects AbstractPathEffect picker None or bool or float or callable rasterized bool sketch_params (scale: float, length: float, randomness: float) snap bool or None transform Transform url str visible bool width unknown x unknown xy (float, float) y unknown zorder float set_angle(angle)[source] Set the rotation angle in degrees. The rotation is performed anti-clockwise around xy. set_bounds(*args)[source] Set the bounds of the rectangle as left, bottom, width, height. The values may be passed as separate parameters or as a tuple: set_bounds(left, bottom, width, height) set_bounds((left, bottom, width, height)) set_height(h)[source] Set the height of the rectangle. set_width(w)[source] Set the width of the rectangle. set_x(x)[source] Set the left coordinate of the rectangle. set_xy(xy)[source] Set the left and bottom coordinates of the rectangle. Parameters xy(float, float) set_y(y)[source] Set the bottom coordinate of the rectangle. propertyxy Return the left and bottom coords of the rectangle as a tuple. Examples using matplotlib.patches.Rectangle Creating boxes from error bars using PatchCollection Histograms Text Rotation Mode Precise text layout Fig Axes Customize Simple Text Layout List of named colors Reference for Matplotlib artists Hatch style reference Inset Locator Demo Anatomy of a figure Pick Event Demo Viewlims Changing colors of lines intersecting a box Matplotlib logo Hinton diagrams Artist tests Menu Artist tutorial Legend guide Transformations Tutorial Specifying Colors Text properties and layout
F.29. pg_stat_statements F.29.1. The pg_stat_statements View F.29.2. Functions F.29.3. Configuration Parameters F.29.4. Sample Output F.29.5. Authors The pg_stat_statements module provides a means for tracking planning and execution statistics of all SQL statements executed by a server. The module must be loaded by adding pg_stat_statements to shared_preload_libraries in postgresql.conf, because it requires additional shared memory. This means that a server restart is needed to add or remove the module. When pg_stat_statements is loaded, it tracks statistics across all databases of the server. To access and manipulate these statistics, the module provides a view, pg_stat_statements, and the utility functions pg_stat_statements_reset and pg_stat_statements. These are not available globally but can be enabled for a specific database with CREATE EXTENSION pg_stat_statements. F.29.1. The pg_stat_statements View The statistics gathered by the module are made available via a view named pg_stat_statements. This view contains one row for each distinct database ID, user ID and query ID (up to the maximum number of distinct statements that the module can track). The columns of the view are shown in Table F.21. Table F.21. pg_stat_statements Columns Column Type Description userid oid (references pg_authid.oid) OID of user who executed the statement dbid oid (references pg_database.oid) OID of database in which the statement was executed queryid bigint Internal hash code, computed from the statement's parse tree query text Text of a representative statement plans bigint Number of times the statement was planned (if pg_stat_statements.track_planning is enabled, otherwise zero) total_plan_time double precision Total time spent planning the statement, in milliseconds (if pg_stat_statements.track_planning is enabled, otherwise zero) min_plan_time double precision Minimum time spent planning the statement, in milliseconds (if pg_stat_statements.track_planning is enabled, otherwise zero) max_plan_time double precision Maximum time spent planning the statement, in milliseconds (if pg_stat_statements.track_planning is enabled, otherwise zero) mean_plan_time double precision Mean time spent planning the statement, in milliseconds (if pg_stat_statements.track_planning is enabled, otherwise zero) stddev_plan_time double precision Population standard deviation of time spent planning the statement, in milliseconds (if pg_stat_statements.track_planning is enabled, otherwise zero) calls bigint Number of times the statement was executed total_exec_time double precision Total time spent executing the statement, in milliseconds min_exec_time double precision Minimum time spent executing the statement, in milliseconds max_exec_time double precision Maximum time spent executing the statement, in milliseconds mean_exec_time double precision Mean time spent executing the statement, in milliseconds stddev_exec_time double precision Population standard deviation of time spent executing the statement, in milliseconds rows bigint Total number of rows retrieved or affected by the statement shared_blks_hit bigint Total number of shared block cache hits by the statement shared_blks_read bigint Total number of shared blocks read by the statement shared_blks_dirtied bigint Total number of shared blocks dirtied by the statement shared_blks_written bigint Total number of shared blocks written by the statement local_blks_hit bigint Total number of local block cache hits by the statement local_blks_read bigint Total number of local blocks read by the statement local_blks_dirtied bigint Total number of local blocks dirtied by the statement local_blks_written bigint Total number of local blocks written by the statement temp_blks_read bigint Total number of temp blocks read by the statement temp_blks_written bigint Total number of temp blocks written by the statement blk_read_time double precision Total time the statement spent reading blocks, in milliseconds (if track_io_timing is enabled, otherwise zero) blk_write_time double precision Total time the statement spent writing blocks, in milliseconds (if track_io_timing is enabled, otherwise zero) wal_records bigint Total number of WAL records generated by the statement wal_fpi bigint Total number of WAL full page images generated by the statement wal_bytes numeric Total amount of WAL generated by the statement in bytes For security reasons, only superusers and members of the pg_read_all_stats role are allowed to see the SQL text and queryid of queries executed by other users. Other users can see the statistics, however, if the view has been installed in their database. Plannable queries (that is, SELECT, INSERT, UPDATE, and DELETE) are combined into a single pg_stat_statements entry whenever they have identical query structures according to an internal hash calculation. Typically, two queries will be considered the same for this purpose if they are semantically equivalent except for the values of literal constants appearing in the query. Utility commands (that is, all other commands) are compared strictly on the basis of their textual query strings, however. When a constant's value has been ignored for purposes of matching the query to other queries, the constant is replaced by a parameter symbol, such as $1, in the pg_stat_statements display. The rest of the query text is that of the first query that had the particular queryid hash value associated with the pg_stat_statements entry. In some cases, queries with visibly different texts might get merged into a single pg_stat_statements entry. Normally this will happen only for semantically equivalent queries, but there is a small chance of hash collisions causing unrelated queries to be merged into one entry. (This cannot happen for queries belonging to different users or databases, however.) Since the queryid hash value is computed on the post-parse-analysis representation of the queries, the opposite is also possible: queries with identical texts might appear as separate entries, if they have different meanings as a result of factors such as different search_path settings. Consumers of pg_stat_statements may wish to use queryid (perhaps in combination with dbid and userid) as a more stable and reliable identifier for each entry than its query text. However, it is important to understand that there are only limited guarantees around the stability of the queryid hash value. Since the identifier is derived from the post-parse-analysis tree, its value is a function of, among other things, the internal object identifiers appearing in this representation. This has some counterintuitive implications. For example, pg_stat_statements will consider two apparently-identical queries to be distinct, if they reference a table that was dropped and recreated between the executions of the two queries. The hashing process is also sensitive to differences in machine architecture and other facets of the platform. Furthermore, it is not safe to assume that queryid will be stable across major versions of PostgreSQL. As a rule of thumb, queryid values can be assumed to be stable and comparable only so long as the underlying server version and catalog metadata details stay exactly the same. Two servers participating in replication based on physical WAL replay can be expected to have identical queryid values for the same query. However, logical replication schemes do not promise to keep replicas identical in all relevant details, so queryid will not be a useful identifier for accumulating costs across a set of logical replicas. If in doubt, direct testing is recommended. The parameter symbols used to replace constants in representative query texts start from the next number after the highest $n parameter in the original query text, or $1 if there was none. It's worth noting that in some cases there may be hidden parameter symbols that affect this numbering. For example, PL/pgSQL uses hidden parameter symbols to insert values of function local variables into queries, so that a PL/pgSQL statement like SELECT i + 1 INTO j would have representative text like SELECT i + $2. The representative query texts are kept in an external disk file, and do not consume shared memory. Therefore, even very lengthy query texts can be stored successfully. However, if many long query texts are accumulated, the external file might grow unmanageably large. As a recovery method if that happens, pg_stat_statements may choose to discard the query texts, whereupon all existing entries in the pg_stat_statements view will show null query fields, though the statistics associated with each queryid are preserved. If this happens, consider reducing pg_stat_statements.max to prevent recurrences. plans and calls aren't always expected to match because planning and execution statistics are updated at their respective end phase, and only for successful operations. For example, if a statement is successfully planned but fails during the execution phase, only its planning statistics will be updated. If planning is skipped because a cached plan is used, only its execution statistics will be updated. F.29.2. Functions pg_stat_statements_reset(userid Oid, dbid Oid, queryid bigint) returns void pg_stat_statements_reset discards statistics gathered so far by pg_stat_statements corresponding to the specified userid, dbid and queryid. If any of the parameters are not specified, the default value 0(invalid) is used for each of them and the statistics that match with other parameters will be reset. If no parameter is specified or all the specified parameters are 0(invalid), it will discard all statistics. By default, this function can only be executed by superusers. Access may be granted to others using GRANT. pg_stat_statements(showtext boolean) returns setof record The pg_stat_statements view is defined in terms of a function also named pg_stat_statements. It is possible for clients to call the pg_stat_statements function directly, and by specifying showtext := false have query text be omitted (that is, the OUT argument that corresponds to the view's query column will return nulls). This feature is intended to support external tools that might wish to avoid the overhead of repeatedly retrieving query texts of indeterminate length. Such tools can instead cache the first query text observed for each entry themselves, since that is all pg_stat_statements itself does, and then retrieve query texts only as needed. Since the server stores query texts in a file, this approach may reduce physical I/O for repeated examination of the pg_stat_statements data. F.29.3. Configuration Parameters pg_stat_statements.max (integer) pg_stat_statements.max is the maximum number of statements tracked by the module (i.e., the maximum number of rows in the pg_stat_statements view). If more distinct statements than that are observed, information about the least-executed statements is discarded. The default value is 5000. This parameter can only be set at server start. pg_stat_statements.track (enum) pg_stat_statements.track controls which statements are counted by the module. Specify top to track top-level statements (those issued directly by clients), all to also track nested statements (such as statements invoked within functions), or none to disable statement statistics collection. The default value is top. Only superusers can change this setting. pg_stat_statements.track_utility (boolean) pg_stat_statements.track_utility controls whether utility commands are tracked by the module. Utility commands are all those other than SELECT, INSERT, UPDATE and DELETE. The default value is on. Only superusers can change this setting. pg_stat_statements.track_planning (boolean) pg_stat_statements.track_planning controls whether planning operations and duration are tracked by the module. Enabling this parameter may incur a noticeable performance penalty, especially when statements with identical query structure are executed by many concurrent connections which compete to update a small number of pg_stat_statements entries. The default value is off. Only superusers can change this setting. pg_stat_statements.save (boolean) pg_stat_statements.save specifies whether to save statement statistics across server shutdowns. If it is off then statistics are not saved at shutdown nor reloaded at server start. The default value is on. This parameter can only be set in the postgresql.conf file or on the server command line. The module requires additional shared memory proportional to pg_stat_statements.max. Note that this memory is consumed whenever the module is loaded, even if pg_stat_statements.track is set to none. These parameters must be set in postgresql.conf. Typical usage might be: # postgresql.conf shared_preload_libraries = 'pg_stat_statements' pg_stat_statements.max = 10000 pg_stat_statements.track = all F.29.4. Sample Output bench=# SELECT pg_stat_statements_reset(); $ pgbench -i bench $ pgbench -c10 -t300 bench bench=# \x bench=# SELECT query, calls, total_exec_time, rows, 100.0 * shared_blks_hit / nullif(shared_blks_hit + shared_blks_read, 0) AS hit_percent FROM pg_stat_statements ORDER BY total_exec_time DESC LIMIT 5; -[ RECORD 1 ]---+--------------------------------------------------​------------------ query | UPDATE pgbench_branches SET bbalance = bbalance + $1 WHERE bid = $2 calls | 3000 total_exec_time | 25565.855387 rows | 3000 hit_percent | 100.0000000000000000 -[ RECORD 2 ]---+--------------------------------------------------​------------------ query | UPDATE pgbench_tellers SET tbalance = tbalance + $1 WHERE tid = $2 calls | 3000 total_exec_time | 20756.669379 rows | 3000 hit_percent | 100.0000000000000000 -[ RECORD 3 ]---+--------------------------------------------------​------------------ query | copy pgbench_accounts from stdin calls | 1 total_exec_time | 291.865911 rows | 100000 hit_percent | 100.0000000000000000 -[ RECORD 4 ]---+--------------------------------------------------​------------------ query | UPDATE pgbench_accounts SET abalance = abalance + $1 WHERE aid = $2 calls | 3000 total_exec_time | 271.232977 rows | 3000 hit_percent | 98.8454011741682975 -[ RECORD 5 ]---+--------------------------------------------------​------------------ query | alter table pgbench_accounts add primary key (aid) calls | 1 total_exec_time | 160.588563 rows | 0 hit_percent | 100.0000000000000000 bench=# SELECT pg_stat_statements_reset(0,0,s.queryid) FROM pg_stat_statements AS s WHERE s.query = 'UPDATE pgbench_branches SET bbalance = bbalance + $1 WHERE bid = $2'; bench=# SELECT query, calls, total_exec_time, rows, 100.0 * shared_blks_hit / nullif(shared_blks_hit + shared_blks_read, 0) AS hit_percent FROM pg_stat_statements ORDER BY total_exec_time DESC LIMIT 5; -[ RECORD 1 ]---+--------------------------------------------------​------------------ query | UPDATE pgbench_tellers SET tbalance = tbalance + $1 WHERE tid = $2 calls | 3000 total_exec_time | 20756.669379 rows | 3000 hit_percent | 100.0000000000000000 -[ RECORD 2 ]---+--------------------------------------------------​------------------ query | copy pgbench_accounts from stdin calls | 1 total_exec_time | 291.865911 rows | 100000 hit_percent | 100.0000000000000000 -[ RECORD 3 ]---+--------------------------------------------------​------------------ query | UPDATE pgbench_accounts SET abalance = abalance + $1 WHERE aid = $2 calls | 3000 total_exec_time | 271.232977 rows | 3000 hit_percent | 98.8454011741682975 -[ RECORD 4 ]---+--------------------------------------------------​------------------ query | alter table pgbench_accounts add primary key (aid) calls | 1 total_exec_time | 160.588563 rows | 0 hit_percent | 100.0000000000000000 -[ RECORD 5 ]---+--------------------------------------------------​------------------ query | vacuum analyze pgbench_accounts calls | 1 total_exec_time | 136.448116 rows | 0 hit_percent | 99.9201915403032721 bench=# SELECT pg_stat_statements_reset(0,0,0); bench=# SELECT query, calls, total_exec_time, rows, 100.0 * shared_blks_hit / nullif(shared_blks_hit + shared_blks_read, 0) AS hit_percent FROM pg_stat_statements ORDER BY total_exec_time DESC LIMIT 5; -[ RECORD 1 ]---+--------------------------------------------------​--------------------------- query | SELECT pg_stat_statements_reset(0,0,0) calls | 1 total_exec_time | 0.189497 rows | 1 hit_percent | -[ RECORD 2 ]---+--------------------------------------------------​--------------------------- query | SELECT query, calls, total_exec_time, rows, $1 * shared_blks_hit / + | nullif(shared_blks_hit + shared_blks_read, $2) AS hit_percent+ | FROM pg_stat_statements ORDER BY total_exec_time DESC LIMIT $3 calls | 0 total_exec_time | 0 rows | 0 hit_percent | F.29.5. Authors Takahiro Itagaki <[email protected]>. Query normalization added by Peter Geoghegan <[email protected]>. Prev Up Next F.28. pgrowlocks Home F.30. pgstattuple
Module: Padrino Extended by: Configuration, Loader Overview This module is based on Sequel 5.4.0 sequel-5.4.0/lib/sequel/model/default_inflections.rb Defined Under Namespace Modules: Admin, ApplicationSetup, Cache, Configuration, Flash, Generators, Helpers, Inflections, Loader, Mailer, Module, ParamsProtection, PathRouter, Performance, Reloader, Rendering, Routing, Tasks, Utils Classes: Application, AuthenticityToken, Filter, Logger, Mounter, Router, SafeBuffer, Server Constant Summary collapse PADRINO_IGNORE_CALLERS = List of callers in a Padrino application that should be ignored as part of a stack trace. [ %r{lib/padrino-.*$}, %r{/padrino-.*/(lib|bin)}, %r{/bin/padrino$}, %r{/sinatra(/(base|main|show_?exceptions))?\.rb$}, %r{lib/tilt.*\.rb$}, %r{lib/rack.*\.rb$}, %r{lib/mongrel.*\.rb$}, %r{lib/shotgun.*\.rb$}, %r{bin/shotgun$}, %r{\(.*\)}, %r{shoulda/context\.rb$}, %r{mocha/integration}, %r{test/unit}, %r{rake_test_loader\.rb}, %r{custom_require\.rb$}, %r{active_support}, %r{/thor}, %r{/lib/bundler}, ] VERSION = The version constant for the current version of Padrino. '0.15.0' DEFAULT_INFLECTIONS_PROC = Proc that is instance evaled to create the default inflections for both the model inflector and the inflector extension. proc do plural(/$/, 's') plural(/s$/i, 's') plural(/(alias|(?:stat|octop|vir|b)us)$/i, '\1es') plural(/(buffal|tomat)o$/i, '\1oes') plural(/([ti])um$/i, '\1a') plural(/sis$/i, 'ses') plural(/(?:([^f])fe|([lr])f)$/i, '\1\2ves') plural(/(hive)$/i, '\1s') plural(/([^aeiouy]|qu)y$/i, '\1ies') plural(/(x|ch|ss|sh)$/i, '\1es') plural(/(matr|vert|ind)ix|ex$/i, '\1ices') plural(/([m|l])ouse$/i, '\1ice') singular(/s$/i, '') singular(/([ti])a$/i, '\1um') singular(/(analy|ba|cri|diagno|parenthe|progno|synop|the)ses$/i, '\1sis') singular(/([^f])ves$/i, '\1fe') singular(/([h|t]ive)s$/i, '\1') singular(/([lr])ves$/i, '\1f') singular(/([^aeiouy]|qu)ies$/i, '\1y') singular(/(m)ovies$/i, '\1ovie') singular(/(x|ch|ss|sh)es$/i, '\1') singular(/([m|l])ice$/i, '\1ouse') singular(/buses$/i, 'bus') singular(/oes$/i, 'o') singular(/shoes$/i, 'shoe') singular(/(alias|(?:stat|octop|vir|b)us)es$/i, '\1') singular(/(vert|ind)ices$/i, '\1ex') singular(/matrices$/i, 'matrix') irregular('person', 'people') irregular('man', 'men') irregular('child', 'children') irregular('sex', 'sexes') irregular('move', 'moves') irregular('quiz', 'quizzes') irregular('testis', 'testes') uncountable(%w(equipment information rice money species series fish sheep news)) end Class Attribute Summary .mounted_root(*args) ⇒ String The root to the mounted apps base directory. Class Method Summary .add_middleware(router) ⇒ Object Creates Rack stack with the router added to the middleware chain. .after_load(&block) ⇒ Object .application ⇒ Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Router The resulting rack builder mapping each 'mounted' application. .before_load(&block) ⇒ Object .bin(*args) ⇒ Boolean This method return the correct location of padrino bin or exec it using Kernel#system with the given args. .bin_gen(*args) ⇒ Object This method return the correct location of padrino-gen bin or exec it using Kernel#system with the given args. .cache ⇒ Object Returns the caching engine. .cache=(value) ⇒ Object Set the caching engine. .clear_middleware! ⇒ Array Clears all previously configured middlewares. .configure_apps { ... } ⇒ Object Configure Global Project Settings for mounted apps. .env ⇒ Symbol Helper method that return RACK_ENV. .gem(name, main_module) ⇒ Object Registers a gem with padrino. .gems ⇒ Object .global_configurations ⇒ Object Stores global configuration blocks. .insert_mounted_app(mounter) ⇒ Object Inserts a Mounter object into the mounted applications (avoids duplicates). .logger ⇒ Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Logger .logger=(value) ⇒ Object Set the padrino logger. .middleware ⇒ Array<Array<Class, Array, Proc>> A Rack8b7c:f320:99b9:690f:4595:cd17:293a:c069uilder object that allows to add middlewares in front of all Padrino applications. .modules ⇒ Object .mount(name, options = {}) ⇒ Object Mounts a new sub-application onto Padrino project. .mounted_apps ⇒ Array The mounted padrino applications (MountedApp objects). .perf_memusage_command ⇒ Object .root(*args) ⇒ String Helper method for file references. .ruby_command ⇒ String Return the path to the ruby interpreter taking into account multiple installations and windows extensions. .run!(options = {}) ⇒ Object Runs the Padrino apps as a self-hosted server using: thin, mongrel, or WEBrick in that order. .set_encoding ⇒ NilClass Set Encoding.default_internal and Encoding.default_external to Encoding8b7c:f320:99b9:690f:4595:cd17:293a:c069UFT_8. .use(mw, *args) { ... } ⇒ Object Convenience method for adding a Middleware to the whole padrino app. .version ⇒ String The current Padrino version. Instance Method Summary #RUBY_IGNORE_CALLERS ⇒ Object Add rubinius (and hopefully other VM implementations) ignore patterns … Methods included from Loader after_load, before_load, called_from, clear!, dependency_paths, load!, loaded?, precompile_all_routes!, reload!, require_dependencies Methods included from Configuration config, configure Class Attribute Details .mounted_root(*args) ⇒ String Returns the root to the mounted apps base directory. Parameters: args (Array) Returns: (String) — the root to the mounted apps base directory. Class Method Details .add_middleware(router) ⇒ Object Creates Rack stack with the router added to the middleware chain. .after_load(&block) ⇒ Object .application ⇒ Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Router The resulting rack builder mapping each 'mounted' application. Returns: (Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Router) — The router for the application. Raises: (ApplicationLoadError) — No applications were mounted. .before_load(&block) ⇒ Object .bin(*args) ⇒ Boolean This method return the correct location of padrino bin or exec it using Kernel#system with the given args. Examples: Padrino.bin('start', '-e production') Parameters: args (Array) — command or commands to execute Returns: (Boolean) .bin_gen(*args) ⇒ Object This method return the correct location of padrino-gen bin or exec it using Kernel#system with the given args. Examples: Padrino.bin_gen(:app, name.to_s, "-r=#{destination_root}") Parameters: args. (Array<String>) — Splat of arguments to pass to padrino-gen. .cache ⇒ Object Returns the caching engine. Examples: # with: Padrino.cache = Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069he.new(:File, :dir => /my/cache/path) Padrino.cache['val'] = 'test' Padrino.cache['val'] # => 'test' Padrino.cache.delete('val') Padrino.cache.clear .cache=(value) ⇒ Object Set the caching engine. Examples: Padrino.cache = Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069he.new(:LRUHash) # default choice Padrino.cache = Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069he.new(:File, :dir => Padrino.root('tmp', app_name.to_s, 'cache')) # Keeps cached values in file Padrino.cache = Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069he.new(:Memcached) # Uses default server at localhost Padrino.cache = Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069he.new(:Memcached, :server => '7269639803:11211', :exception_retry_limit => 1) Padrino.cache = Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069he.new(:Memcached, :backend => memcached_or_dalli_instance) Padrino.cache = Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069he.new(:Redis) # Uses default server at localhost Padrino.cache = Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069he.new(:Redis, :host => '7269639803', :port => 6379, :db => 0) Padrino.cache = Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069he.new(:Redis, :backend => redis_instance) Padrino.cache = Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069he.new(:Mongo) # Uses default server at localhost Padrino.cache = Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069he.new(:Mongo, :backend => mongo_client_instance) # You can manage your cache from anywhere in your app: Padrino.cache['val'] = 'test' Padrino.cache['val'] # => 'test' Padrino.cache.delete('val') Padrino.cache.clear Parameters: value — Instance of Moneta store .clear_middleware! ⇒ Array Clears all previously configured middlewares. Returns: (Array) — An empty array .configure_apps { ... } ⇒ Object Configure Global Project Settings for mounted apps. These can be overloaded in each individual app's own personal configuration. This can be used like: Examples: Padrino.configure_apps do enable :sessions disable :raise_errors end Yields: The given block will be called to configure each application. .env ⇒ Symbol Helper method that return RACK_ENV. Returns: (Symbol) — The Padrino Environment. .gem(name, main_module) ⇒ Object Registers a gem with padrino. This relieves the caller from setting up loadpaths by itself and enables Padrino to look up apps in gem folder. The name given has to be the proper gem name as given in the gemspec. Parameters: name (String) — The name of the gem being registered. main_module (Module) — The main module of the gem. .gems ⇒ Object .global_configurations ⇒ Object Stores global configuration blocks. .insert_mounted_app(mounter) ⇒ Object Inserts a Mounter object into the mounted applications (avoids duplicates). Parameters: mounter (Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Mounter) .logger ⇒ Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Logger Examples: logger.debug "foo" logger.warn "bar" Returns: (Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Logger) .logger=(value) ⇒ Object Set the padrino logger. Examples: using ruby default logger require 'logger' new_logger = 8b7c:f320:99b9:690f:4595:cd17:293a:c069Logger.new(STDOUT) new_logger.extend(Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Logger8b7c:f320:99b9:690f:4595:cd17:293a:c069xtensions) Padrino.logger = new_logger using ActiveSupport require 'active_support/buffered_logger' Padrino.logger = Buffered.new(STDOUT) using custom logger class require 'logger' class CustomLogger < 8b7c:f320:99b9:690f:4595:cd17:293a:c069Logger include Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Logger8b7c:f320:99b9:690f:4595:cd17:293a:c069xtensions end Padrino.logger = CustomLogger.new(STDOUT) Parameters: value (Object) — an object that respond to <<, write, puts, debug, warn, devel, etc.. Returns: (Object) — The given value. .middleware ⇒ Array<Array<Class, Array, Proc>> A Rack8b7c:f320:99b9:690f:4595:cd17:293a:c069uilder object that allows to add middlewares in front of all Padrino applications. Returns: (Array<Array<Class, Array, Proc>>) — The middleware classes. .modules ⇒ Object .mount(name, options = {}) ⇒ Object Mounts a new sub-application onto Padrino project. Examples: Padrino.mount("blog_app").to("/blog") See Also: Padrino8b7c:f320:99b9:690f:4595:cd17:293a:c069Mounter#new .mounted_apps ⇒ Array Returns the mounted padrino applications (MountedApp objects). Returns: (Array) — the mounted padrino applications (MountedApp objects) .perf_memusage_command ⇒ Object .root(*args) ⇒ String Helper method for file references. Examples: # Referencing a file in config called settings.yml Padrino.root("config", "settings.yml") # returns PADRINO_ROOT + "/config/setting.yml" Parameters: args (Array<String>) — The directories to join to PADRINO_ROOT. Returns: (String) — The absolute path. .ruby_command ⇒ String Return the path to the ruby interpreter taking into account multiple installations and windows extensions. Returns: (String) — path to ruby bin executable .run!(options = {}) ⇒ Object Runs the Padrino apps as a self-hosted server using: thin, mongrel, or WEBrick in that order. Examples: Padrino.run! # with these defaults => host: "7269639803", port: "3000", adapter: the first found Padrino.run!("7269639803", "4000", "mongrel") # use => host: "7269639803", port: "4000", adapter: "mongrel" .set_encoding ⇒ NilClass Set Encoding.default_internal and Encoding.default_external to Encoding8b7c:f320:99b9:690f:4595:cd17:293a:c069UFT_8. Please note that in 1.9.2 with some template engines like haml you should turn off Encoding.default_internal to prevent problems. Returns: (NilClass) See Also: https://github.com/rtomayko/tilt/issues/75 .use(mw, *args) { ... } ⇒ Object Convenience method for adding a Middleware to the whole padrino app. Parameters: m (Class) — The middleware class. args (Array) — The arguments for the middleware. Yields: The given block will be passed to the initialized middleware. .version ⇒ String The current Padrino version. Returns: (String) — The version number. Instance Method Details #RUBY_IGNORE_CALLERS ⇒ Object Add rubinius (and hopefully other VM implementations) ignore patterns …
XRReferenceSpaceEvent.transform The read-only XRReferenceSpaceEvent property transform indicates the position and orientation of the affected referenceSpace's native origin after the changes the event represents are applied. The transform is defined using the old coordinate system, which allows it to be used to convert coordinates from the pre-event coordinate system to the post-event coordinate system. Value An XRRigidTransform object providing a transform that can be used to convert coordinates from the pre-event coordinate system to the post-event coordinate system. Usage notes Upon receiving a reset event, you can apply the transform to cached position or orientation information to shift them into the updated coordinate system. Alternatively, you can just discard any cached positional information and recompute from scratch. The approach you take will depend on your needs. For details on what causes a reset event and how to respond, see the reset event's documentation. Examples This example handles the reset event by walking through all the objects in a scene, updating each object's position by multiplying it with the event's given transform. The scene is represented by a scene object, with all the objects in an array called objects within it. xrReferenceSpace.addEventListener("reset", event => { for (let obj of scene.objects) { mat4.multiply(obj.transform, obj.transform, event.transform); } }); Specifications Specification WebXR Device API # dom-xrreferencespaceevent-transform Browser compatibility Desktop Mobile Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet transform 79 79 No No No No No 79 No No No 11.2 Found a problem with this page? Edit on GitHub Source on GitHub Report a problem with this content on GitHub Want to fix the problem yourself? See our Contribution guide. Last modified: Jan 21, 2022, by MDN contributors
public function UnroutedUrlAssembler8b7c:f320:99b9:690f:4595:cd17:293a:c069__construct public UnroutedUrlAssembler8b7c:f320:99b9:690f:4595:cd17:293a:c069__construct(RequestStack $request_stack, OutboundPathProcessorInterface $path_processor, array $filter_protocols = ['http', 'https']) Constructs a new unroutedUrlAssembler object. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: A request stack object. \Drupal\Core\PathProcessor\OutboundPathProcessorInterface $path_processor: The output path processor. string[] $filter_protocols: (optional) An array of protocols allowed for URL generation. File core/lib/Drupal/Core/Utility/UnroutedUrlAssembler.php, line 41 Class UnroutedUrlAssembler Provides a way to build external or non Drupal local domain URLs. Namespace Drupal\Core\Utility Code public function __construct(RequestStack $request_stack, OutboundPathProcessorInterface $path_processor, array $filter_protocols = ['http', 'https']) { UrlHelper8b7c:f320:99b9:690f:4595:cd17:293a:c069setAllowedProtocols($filter_protocols); $this->requestStack = $request_stack; $this->pathProcessor = $path_processor; }
numpy.promote_types numpy.promote_types(type1, type2) Returns the data type with the smallest size and smallest scalar kind to which both type1 and type2 may be safely cast. The returned data type is always considered “canonical”, this mainly means that the promoted dtype will always be in native byte order. This function is symmetric, but rarely associative. Parameters type1dtype or dtype specifier First data type. type2dtype or dtype specifier Second data type. Returns outdtype The promoted data type. See also result_type, dtype, can_cast Notes Please see numpy.result_type for additional information about promotion. New in version 1.6.0. Starting in NumPy 1.9, promote_types function now returns a valid string length when given an integer or float dtype as one argument and a string dtype as another argument. Previously it always returned the input string dtype, even if it wasn’t long enough to store the max integer/float value converted to a string. Changed in version 1.23.0. NumPy now supports promotion for more structured dtypes. It will now remove unnecessary padding from a structure dtype and promote included fields individually. Examples >>> np.promote_types('f4', 'f8') dtype('float64') >>> np.promote_types('i8', 'f4') dtype('float64') >>> np.promote_types('>i8', '<c8') dtype('complex128') >>> np.promote_types('i4', 'S8') dtype('S11') An example of a non-associative case: >>> p = np.promote_types >>> p('S', p('i1', 'u1')) dtype('S6') >>> p(p('S', 'i1'), 'u1') dtype('S4')
dart:web_gl CompressedTextureAstc class Inheritance Object JSObject DartHtmlDomObject CompressedTextureAstc Annotations @DocsEditable() @DomName('WebGLCompressedTextureASTC') @Experimental() Constants COMPRESSED_RGBA_ASTC_4x4_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_4x4_KHR'), @Experimental() 0x93B0 COMPRESSED_RGBA_ASTC_5x4_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_5x4_KHR'), @Experimental() 0x93B1 COMPRESSED_RGBA_ASTC_5x5_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_5x5_KHR'), @Experimental() 0x93B2 COMPRESSED_RGBA_ASTC_6x5_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_6x5_KHR'), @Experimental() 0x93B3 COMPRESSED_RGBA_ASTC_6x6_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_6x6_KHR'), @Experimental() 0x93B4 COMPRESSED_RGBA_ASTC_8x5_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_8x5_KHR'), @Experimental() 0x93B5 COMPRESSED_RGBA_ASTC_8x6_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_8x6_KHR'), @Experimental() 0x93B6 COMPRESSED_RGBA_ASTC_8x8_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_8x8_KHR'), @Experimental() 0x93B7 COMPRESSED_RGBA_ASTC_10x5_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_10x5_KHR'), @Experimental() 0x93B8 COMPRESSED_RGBA_ASTC_10x6_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_10x6_KHR'), @Experimental() 0x93B9 COMPRESSED_RGBA_ASTC_10x8_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_10x8_KHR'), @Experimental() 0x93BA COMPRESSED_RGBA_ASTC_10x10_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_10x10_KHR'), @Experimental() 0x93BB COMPRESSED_RGBA_ASTC_12x10_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_12x10_KHR'), @Experimental() 0x93BC COMPRESSED_RGBA_ASTC_12x12_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_12x12_KHR'), @Experimental() 0x93BD COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR'), @Experimental() 0x93D0 COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR'), @Experimental() 0x93D1 COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR'), @Experimental() 0x93D2 COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR'), @Experimental() 0x93D3 COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR'), @Experimental() 0x93D4 COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR'), @Experimental() 0x93D5 COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR'), @Experimental() 0x93D6 COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR'), @Experimental() 0x93D7 COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR'), @Experimental() 0x93D8 COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR'), @Experimental() 0x93D9 COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR'), @Experimental() 0x93DA COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR'), @Experimental() 0x93DB COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR'), @Experimental() 0x93DC COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR → int @DocsEditable(), @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR'), @Experimental() 0x93DD Static Properties instanceRuntimeType → Type @Deprecated("Internal Use Only"), read-only Constructors CompressedTextureAstc.internal_() Properties hashCode → int read-only, inherited runtimeType → Type read-only, inherited A representation of the runtime type of the object. Operators operator ==(other) → bool inherited The equality operator. Methods noSuchMethod(Invocation invocation) → dynamic inherited Invoked when a non-existent method or property is accessed. toString() → String inherited Returns the result of the JavaScript objects toString method.
sklearn.cluster.OPTICS classsklearn.cluster.OPTICS(*, min_samples=5, max_eps=inf, metric='minkowski', p=2, metric_params=None, cluster_method='xi', eps=None, xi=0.05, predecessor_correction=True, min_cluster_size=None, algorithm='auto', leaf_size=30, memory=None, n_jobs=None)[source] Estimate clustering structure from vector array. OPTICS (Ordering Points To Identify the Clustering Structure), closely related to DBSCAN, finds core sample of high density and expands clusters from them [1]. Unlike DBSCAN, keeps cluster hierarchy for a variable neighborhood radius. Better suited for usage on large datasets than the current sklearn implementation of DBSCAN. Clusters are then extracted using a DBSCAN-like method (cluster_method = ‘dbscan’) or an automatic technique proposed in [1] (cluster_method = ‘xi’). This implementation deviates from the original OPTICS by first performing k-nearest-neighborhood searches on all points to identify core sizes, then computing only the distances to unprocessed points when constructing the cluster order. Note that we do not employ a heap to manage the expansion candidates, so the time complexity will be O(n^2). Read more in the User Guide. Parameters: min_samplesint > 1 or float between 0 and 1, default=5 The number of samples in a neighborhood for a point to be considered as a core point. Also, up and down steep regions can’t have more than min_samples consecutive non-steep points. Expressed as an absolute number or a fraction of the number of samples (rounded to be at least 2). max_epsfloat, default=np.inf The maximum distance between two samples for one to be considered as in the neighborhood of the other. Default value of np.inf will identify clusters across all scales; reducing max_eps will result in shorter run times. metricstr or callable, default=’minkowski’ Metric to use for distance computation. Any metric from scikit-learn or scipy.spatial.distance can be used. If metric is a callable function, it is called on each pair of instances (rows) and the resulting value recorded. The callable should take two arrays as input and return one value indicating the distance between them. This works for Scipy’s metrics, but is less efficient than passing the metric name as a string. If metric is “precomputed”, X is assumed to be a distance matrix and must be square. Valid values for metric are: from scikit-learn: [‘cityblock’, ‘cosine’, ‘euclidean’, ‘l1’, ‘l2’, ‘manhattan’] from scipy.spatial.distance: [‘braycurtis’, ‘canberra’, ‘chebyshev’, ‘correlation’, ‘dice’, ‘hamming’, ‘jaccard’, ‘kulsinski’, ‘mahalanobis’, ‘minkowski’, ‘rogerstanimoto’, ‘russellrao’, ‘seuclidean’, ‘sokalmichener’, ‘sokalsneath’, ‘sqeuclidean’, ‘yule’] See the documentation for scipy.spatial.distance for details on these metrics. pint, default=2 Parameter for the Minkowski metric from pairwise_distances. When p = 1, this is equivalent to using manhattan_distance (l1), and euclidean_distance (l2) for p = 2. For arbitrary p, minkowski_distance (l_p) is used. metric_paramsdict, default=None Additional keyword arguments for the metric function. cluster_methodstr, default=’xi’ The extraction method used to extract clusters using the calculated reachability and ordering. Possible values are “xi” and “dbscan”. epsfloat, default=None The maximum distance between two samples for one to be considered as in the neighborhood of the other. By default it assumes the same value as max_eps. Used only when cluster_method='dbscan'. xifloat between 0 and 1, default=0.05 Determines the minimum steepness on the reachability plot that constitutes a cluster boundary. For example, an upwards point in the reachability plot is defined by the ratio from one point to its successor being at most 1-xi. Used only when cluster_method='xi'. predecessor_correctionbool, default=True Correct clusters according to the predecessors calculated by OPTICS [2]. This parameter has minimal effect on most datasets. Used only when cluster_method='xi'. min_cluster_sizeint > 1 or float between 0 and 1, default=None Minimum number of samples in an OPTICS cluster, expressed as an absolute number or a fraction of the number of samples (rounded to be at least 2). If None, the value of min_samples is used instead. Used only when cluster_method='xi'. algorithm{‘auto’, ‘ball_tree’, ‘kd_tree’, ‘brute’}, default=’auto’ Algorithm used to compute the nearest neighbors: ‘ball_tree’ will use BallTree. ‘kd_tree’ will use KDTree. ‘brute’ will use a brute-force search. ‘auto’ (default) will attempt to decide the most appropriate algorithm based on the values passed to fit method. Note: fitting on sparse input will override the setting of this parameter, using brute force. leaf_sizeint, default=30 Leaf size passed to BallTree or KDTree. This can affect the speed of the construction and query, as well as the memory required to store the tree. The optimal value depends on the nature of the problem. memorystr or object with the joblib.Memory interface, default=None Used to cache the output of the computation of the tree. By default, no caching is done. If a string is given, it is the path to the caching directory. n_jobsint, default=None The number of parallel jobs to run for neighbors search. None means 1 unless in a joblib.parallel_backend context. -1 means using all processors. See Glossary for more details. Attributes: labels_ndarray of shape (n_samples,) Cluster labels for each point in the dataset given to fit(). Noisy samples and points which are not included in a leaf cluster of cluster_hierarchy_ are labeled as -1. reachability_ndarray of shape (n_samples,) Reachability distances per sample, indexed by object order. Use clust.reachability_[clust.ordering_] to access in cluster order. ordering_ndarray of shape (n_samples,) The cluster ordered list of sample indices. core_distances_ndarray of shape (n_samples,) Distance at which each sample becomes a core point, indexed by object order. Points which will never be core have a distance of inf. Use clust.core_distances_[clust.ordering_] to access in cluster order. predecessor_ndarray of shape (n_samples,) Point that a sample was reached from, indexed by object order. Seed points have a predecessor of -1. cluster_hierarchy_ndarray of shape (n_clusters, 2) The list of clusters in the form of [start, end] in each row, with all indices inclusive. The clusters are ordered according to (end, -start) (ascending) so that larger clusters encompassing smaller clusters come after those smaller ones. Since labels_ does not reflect the hierarchy, usually len(cluster_hierarchy_) > np.unique(optics.labels_). Please also note that these indices are of the ordering_, i.e. X[ordering_][start:end + 1] form a cluster. Only available when cluster_method='xi'. n_features_in_int Number of features seen during fit. New in version 0.24. feature_names_in_ndarray of shape (n_features_in_,) Names of features seen during fit. Defined only when X has feature names that are all strings. New in version 1.0. See also DBSCAN A similar clustering for a specified neighborhood radius (eps). Our implementation is optimized for runtime. References [1] (1,2) Ankerst, Mihael, Markus M. Breunig, Hans-Peter Kriegel, and Jörg Sander. “OPTICS: ordering points to identify the clustering structure.” ACM SIGMOD Record 28, no. 2 (1999): 49-60. [2] Schubert, Erich, Michael Gertz. “Improving the Cluster Structure Extracted from OPTICS Plots.” Proc. of the Conference “Lernen, Wissen, Daten, Analysen” (LWDA) (2018): 318-329. Examples >>> from sklearn.cluster import OPTICS >>> import numpy as np >>> X = np.array([[1, 2], [2, 5], [3, 6], ... [8, 7], [8, 8], [7, 3]]) >>> clustering = OPTICS(min_samples=2).fit(X) >>> clustering.labels_ array([0, 0, 0, 1, 1, 1]) Methods fit(X[, y]) Perform OPTICS clustering. fit_predict(X[, y]) Perform clustering on X and returns cluster labels. get_params([deep]) Get parameters for this estimator. set_params(**params) Set the parameters of this estimator. fit(X, y=None)[source] Perform OPTICS clustering. Extracts an ordered list of points and reachability distances, and performs initial clustering using max_eps distance specified at OPTICS object instantiation. Parameters: Xndarray of shape (n_samples, n_features), or (n_samples, n_samples) if metric=’precomputed’ A feature array, or array of distances between samples if metric=’precomputed’. yIgnored Not used, present for API consistency by convention. Returns: selfobject Returns a fitted instance of self. fit_predict(X, y=None)[source] Perform clustering on X and returns cluster labels. Parameters: Xarray-like of shape (n_samples, n_features) Input data. yIgnored Not used, present for API consistency by convention. Returns: labelsndarray of shape (n_samples,), dtype=np.int64 Cluster labels. get_params(deep=True)[source] Get parameters for this estimator. Parameters: deepbool, default=True If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns: paramsdict Parameter names mapped to their values. set_params(**params)[source] Set the parameters of this estimator. The method works on simple estimators as well as on nested objects (such as Pipeline). The latter have parameters of the form <component>__<parameter> so that it’s possible to update each component of a nested object. Parameters: **paramsdict Estimator parameters. Returns: selfestimator instance Estimator instance. Examples using sklearn.cluster.OPTICS Comparing different clustering algorithms on toy datasets Demo of OPTICS clustering algorithm
dart:collection forEach method void forEach(void action(E entry)) Call action with each entry in this linked list. It's an error if action modify the linked list. Source void forEach(void action(E entry)) { int modificationCount = _modificationCount; if (isEmpty) return; E current = _first; do { action(current); if (modificationCount != _modificationCount) { throw new ConcurrentModificationError(this); } current = current._next; } while (!identical(current, _first)); }
This is the complete list of members for pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT >, including all inherited members. areEquals(float val1, float val2, float zero_float_eps=1E-8f) const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inlineprotected BaseClass typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > BOARDLocalReferenceFrameEstimation() pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline compute(PointCloudOut &output) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > computeFeature(PointCloudOut &output) override pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > protected computePointLRF(const int &index, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Matrix3f &lrf) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > protected ConstPtr typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > deinitCompute() pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > protectedvirtual directedOrthogonalAxis(Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f const &axis, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f const &axis_origin, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f const &point, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f &directed_ortho_axis) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > protected fake_indices_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > protected fake_surface_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > protected Feature() pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inline feature_name_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > protected FeatureFromNormals() pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069tureFromNormals< PointInT, PointNT, ReferenceFrame > inline getAngleBetweenUnitVectors(Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f const &v1, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f const &v2, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f const &axis) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > protected getCheckMarginArraySize() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline getClassName() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inlineprotected getFindHoles() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline getHoleSizeProbThresh() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline getIndices() pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > inline getIndices() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > inline getInputCloud() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > inline getInputNormals() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069tureFromNormals< PointInT, PointNT, ReferenceFrame > inline getKSearch() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inline getMarginThresh() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline getRadiusSearch() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inline getSearchMethod() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inline getSearchParameter() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inline getSearchSurface() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inline getSteepThresh() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline getTangentRadius() const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline indices_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > protected initCompute() pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069tureFromNormals< PointInT, PointNT, ReferenceFrame > protectedvirtual input_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > protected k_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > protected KdTree typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > KdTreePtr typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > normalDisambiguation(pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PointCloud< PointNT > const &normals_cloud, pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069Indices const &normal_indices, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f &normal) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > protected normals_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069tureFromNormals< PointInT, PointNT, ReferenceFrame > protected operator[](st8b7c:f320:99b9:690f:4595:cd17:293a:c069size_t pos) const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > inline PCLBase() pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > PCLBase(const PCLBase &base) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > planeFitting(Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Matrix< float, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069ynamic, 3 > const &points, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f &center, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f &norm) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > protected PointCloud typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > PointCloudConstPtr typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > PointCloudIn typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > protected PointCloudN typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069tureFromNormals< PointInT, PointNT, ReferenceFrame > PointCloudNConstPtr typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069tureFromNormals< PointInT, PointNT, ReferenceFrame > PointCloudNPtr typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069tureFromNormals< PointInT, PointNT, ReferenceFrame > PointCloudOut typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > protected PointCloudPtr typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > PointIndicesConstPtr typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > PointIndicesPtr typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > projectPointOnPlane(Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f const &point, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f const &origin_point, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f const &plane_normal, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f &projected_point) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > protected Ptr typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > randomOrthogonalAxis(Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f const &axis, Eigen8b7c:f320:99b9:690f:4595:cd17:293a:c069Vector3f &rand_ortho_axis) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > protected resetData() pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inlineprotected search_method_surface_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > protected search_parameter_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > protected search_radius_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > protected searchForNeighbors(st8b7c:f320:99b9:690f:4595:cd17:293a:c069size_t index, double parameter, pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069Indices &indices, st8b7c:f320:99b9:690f:4595:cd17:293a:c069vector< float > &distances) const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inlineprotected searchForNeighbors(const PointCloudIn &cloud, st8b7c:f320:99b9:690f:4595:cd17:293a:c069size_t index, double parameter, pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069Indices &indices, st8b7c:f320:99b9:690f:4595:cd17:293a:c069vector< float > &distances) const pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inlineprotected SearchMethod typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > SearchMethodSurface typedef pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > setCheckMarginArraySize(int size) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline setFindHoles(bool find_holes) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline setHoleSizeProbThresh(float prob_thresh) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline setIndices(const IndicesPtr &indices) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > virtual setIndices(const IndicesConstPtr &indices) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > virtual setIndices(const PointIndicesConstPtr &indices) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > virtual setIndices(st8b7c:f320:99b9:690f:4595:cd17:293a:c069size_t row_start, st8b7c:f320:99b9:690f:4595:cd17:293a:c069size_t col_start, st8b7c:f320:99b9:690f:4595:cd17:293a:c069size_t nb_rows, st8b7c:f320:99b9:690f:4595:cd17:293a:c069size_t nb_cols) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > virtual setInputCloud(const PointCloudConstPtr &cloud) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > virtual setInputNormals(const PointCloudNConstPtr &normals) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069tureFromNormals< PointInT, PointNT, ReferenceFrame > inline setKSearch(int k) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inline setMarginThresh(float margin_thresh) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline setRadiusSearch(double radius) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inline setSearchMethod(const KdTreePtr &tree) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inline setSearchSurface(const PointCloudInConstPtr &cloud) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inline setSteepThresh(float steep_thresh) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline setTangentRadius(float radius) pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline surface_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > protected tree_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > protected use_indices_ pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > protected ~BOARDLocalReferenceFrameEstimation() pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069OARDLocalReferenceFrameEstimation< PointInT, PointNT, PointOutT > inline ~Feature() pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069ture< PointInT, ReferenceFrame > inlinevirtual ~FeatureFromNormals() pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069tureFromNormals< PointInT, PointNT, ReferenceFrame > inlinevirtual ~PCLBase()=default pcl8b7c:f320:99b9:690f:4595:cd17:293a:c069PCLBase< PointInT > virtual © 2009–2012, Willow Garage, Inc.
dart:html translate method DomMatrix translate(num tx, num ty, [ num tz ]) Source DomMatrix translate(num tx, num ty, [num tz]) { if (tz != null) { return _blink.BlinkDOMMatrixReadOnly.instance .translate_Callback_3_(this, tx, ty, tz); } return _blink.BlinkDOMMatrixReadOnly.instance .translate_Callback_2_(this, tx, ty); }
dart:svg AttributeClassSet class Inheritance Object CssClassSetImpl AttributeClassSet Constructors AttributeClassSet(Element _element) Properties first → String read-only, inherited frozen → bool read-only, inherited Returns true if classes cannot be added or removed from this CssClassSet. hashCode → int read-only, inherited The hash code for this object. isEmpty → bool read-only, inherited isNotEmpty → bool read-only, inherited iterator → Iterator<String> read-only, inherited last → String read-only, inherited length → int read-only, inherited runtimeType → Type read-only, inherited A representation of the runtime type of the object. single → String read-only, inherited Operators operator ==(other) → bool inherited The equality operator. Methods readClasses() → Set<String> Read the class names from the Element class property, and put them into a set (duplicates are discarded). This is intended to be overridden by specific implementations. writeClasses(Set s) → void Join all the elements of a set into one string and write back to the element. This is intended to be overridden by specific implementations. add(String value) → bool inherited Add the class value to element. addAll(Iterable<String> iterable) → void inherited Add all classes specified in iterable to element. any(bool f(String element)) → bool inherited Checks whether any element of this iterable satisfies test. clear() → void inherited Removes all elements in the set. contains(Object value) → bool inherited Determine if this element contains the class value. containsAll(Iterable<Object> collection) → bool inherited Returns whether this Set contains all the elements of other. difference(Set<Object> other) → Set<String> inherited Returns a new set with the elements of this that are not in other. elementAt(int index) → String inherited Returns the indexth element. every(bool f(String element)) → bool inherited Checks whether every element of this iterable satisfies test. expand<T>(Iterable<T> f(String element)) → Iterable<T> inherited Expands each element of this Iterable into zero or more elements. firstWhere(bool test(String value), { String orElse() }) → String inherited Returns the first element that satisfies the given predicate test. fold<T>(T initialValue, T combine(T previousValue, String element)) → T inherited Reduces a collection to a single value by iteratively combining each element of the collection with an existing value forEach(void f(String element)) → void inherited Applies the function f to each element of this collection in iteration order. intersection(Set<Object> other) → Set<String> inherited Returns a new set which is the intersection between this set and other. join([String separator = "" ]) → String inherited Converts each element to a String and concatenates the strings. lastWhere(bool test(String value), { String orElse() }) → String inherited Returns the last element that satisfies the given predicate test. lookup(Object value) → String inherited Lookup from the Set interface. Not interesting for a String set. map<T>(T f(String e)) → Iterable<T> inherited Returns a new lazy Iterable with elements that are created by calling f on each element of this Iterable in iteration order. modify(dynamic f(Set<String> s)) → dynamic inherited Helper method used to modify the set of css classes on this element. noSuchMethod(Invocation invocation) → dynamic inherited Invoked when a non-existent method or property is accessed. reduce(String combine(String value, String element)) → String inherited Reduces a collection to a single value by iteratively combining elements of the collection using the provided function. remove(Object value) → bool inherited Remove the class value from element, and return true on successful removal. removeAll(Iterable<Object> iterable) → void inherited Remove all classes specified in iterable from element. removeWhere(bool test(String name)) → void inherited Removes all elements of this set that satisfy test. retainAll(Iterable<Object> iterable) → void inherited Removes all elements of this set that are not elements in elements. retainWhere(bool test(String name)) → void inherited Removes all elements of this set that fail to satisfy test. singleWhere(bool test(String value)) → String inherited Returns the single element that satisfies test. skip(int n) → Iterable<String> inherited Returns an Iterable that provides all but the first count elements. skipWhile(bool test(String value)) → Iterable<String> inherited Returns an Iterable that skips leading elements while test is satisfied. take(int n) → Iterable<String> inherited Returns a lazy iterable of the count first elements of this iterable. takeWhile(bool test(String value)) → Iterable<String> inherited Returns a lazy iterable of the leading elements satisfying test. toggle(String value, [ bool shouldAdd ]) → bool inherited Adds the class value to the element if it is not on it, removes it if it is. toggleAll(Iterable<String> iterable, [ bool shouldAdd ]) → void inherited Toggles all classes specified in iterable on element. toList({bool growable: true }) → List<String> inherited Creates a List containing the elements of this Iterable. toSet() → Set<String> inherited Creates a Set containing the same elements as this iterable. toString() → String inherited Returns a string representation of this object. union(Set<String> other) → Set<String> inherited Returns a new set which contains all the elements of this set and other. where(bool f(String element)) → Iterable<String> inherited Returns a new lazy Iterable with all elements that satisfy the predicate test.
View on GitHub Visibility Control the visibility, without modifying the display, of elements with visibility utilities. Set the visibility of elements with our visibility utilities. These utility classes do not modify the display value at all and do not affect layout – .invisible elements still take up space in the page. Content will be hidden both visually and for assistive technology/screen reader users. Apply .visible or .invisible as needed. <div class="visible">...</div> <div class="invisible">...</div> // Class .visible { visibility: visible !important; } .invisible { visibility: hidden !important; } // Usage as a mixin // Warning: The `invisible()` mixin has been deprecated as of v4.3.0. It will be removed entirely in v5. .element { @include invisible(visible); } .element { @include invisible(hidden); } © 2011–2020 Twitter, Inc.
Kotlin tips Kotlin Tips is a series of short videos where members of the Kotlin team show how to use Kotlin in a more efficient and idiomatic way to have more fun when writing code. Subscribe to our YouTube channel to not miss new Kotlin Tips videos. Timing Code Watch Seb give a quick overview of the measureTimedValue function, and learn how you can time your code: Improving loops In this video, Sebastian will demonstrate how to improve loops to make your code more readable, understandable, and concise: Strings In this episode, Kate Petrova shows three tips to help you work with Strings in Kotlin: Doing more with the Elvis operator In this video, Sebastian will show how to add more logic to the Elvis operator, such as logging to the right part of the operator: Kotlin collections In this episode, Kate Petrova shows three tips to help you work with Kotlin Collections: What’s next? See the complete list of Kotlin Tips in our YouTube playlist Learn how to write idiomatic Kotlin code for popular cases Last modified: 07 April 2022 Kotlin Koans Kotlin books
love.image.newCompressedData Available since LÖVE 0.9.0 This function is not supported in earlier versions. Create a new CompressedImageData object from a compressed image file. LÖVE supports several compressed texture formats, enumerated in the CompressedImageFormat page. This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! Function Synopsis compressedImageData = love.image.newCompressedData( filename ) Arguments string filename The filename of the compressed image file. Returns CompressedImageData compressedImageData The new CompressedImageData object. Function Synopsis compressedImageData = love.image.newCompressedData( fileData ) Arguments FileData fileData A FileData containing a compressed image. Returns CompressedImageData compressedImageData The new CompressedImageData object. See Also love.image love.image.isCompressed love.graphics.newImage CompressedImageData
numpy.random.negative_binomial numpy.random.negative_binomial(n, p, size=None) Draw samples from a negative binomial distribution. Samples are drawn from a negative binomial distribution with specified parameters, n trials and p probability of success where n is an integer > 0 and p is in the interval [0, 1]. Parameters: n : int Parameter, > 0. p : float Parameter, >= 0 and <=1. size : int or tuple of ints, optional Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. Default is None, in which case a single value is returned. Returns: samples : int or ndarray of ints Drawn samples. Notes The probability density for the negative binomial distribution is where is the number of successes, is the probability of success, and is the number of trials. The negative binomial distribution gives the probability of n-1 successes and N failures in N+n-1 trials, and success on the (N+n)th trial. If one throws a die repeatedly until the third time a “1” appears, then the probability distribution of the number of non-“1”s that appear before the third “1” is a negative binomial distribution. References [R243] Weisstein, Eric W. “Negative Binomial Distribution.” From MathWorld–A Wolfram Web Resource. http://mathworld.wolfram.com/NegativeBinomialDistribution.html [R244] Wikipedia, “Negative binomial distribution”, http://en.wikipedia.org/wiki/Negative_binomial_distribution Examples Draw samples from the distribution: A real world example. A company drills wild-cat oil exploration wells, each with an estimated probability of success of 0.1. What is the probability of having one success for each successive well, that is what is the probability of a single success after drilling 5 wells, after 6 wells, etc.? >>> s = np.random.negative_binomial(1, 0.1, 100000) >>> for i in range(1, 11): ... probability = sum(s<i) / 100000. ... print i, "wells drilled, probability of one success =", probability
statsmodels.sandbox.stats.multicomp.GroupsStats class statsmodels.sandbox.stats.multicomp.GroupsStats(x, useranks=False, uni=None, intlab=None) [source] statistics by groups (another version) groupstats as a class with lazy evaluation (not yet - decorators are still missing) written this time as equivalent of scipy.stats.rankdata gs = GroupsStats(X, useranks=True) assert_almost_equal(gs.groupmeanfilter, stats.rankdata(X[:,0]), 15) TODO: incomplete doc strings Methods groupdemean() groupsswithin() groupvarwithin() runbasic([useranks]) runbasic_old([useranks]) © 2009–2012 Statsmodels Developers© 2006–2008 Scipy Developers
class Symbol Parent: Object Included modules: Comparable Symbol objects represent names and some strings inside the Ruby interpreter. They are generated using the :name and :"string" literals syntax, and by the various to_sym methods. The same Symbol object will be created for a given name or string for the duration of a program's execution, regardless of the context or meaning of that name. Thus if Fred is a constant in one context, a method in another, and a class in a third, the Symbol :Fred will be the same object in all three contexts. module One class Fred end $f1 = :Fred end module Two Fred = 1 $f2 = :Fred end def Fred() end $f3 = :Fred $f1.object_id #=> 2514190 $f2.object_id #=> 2514190 $f3.object_id #=> 2514190 Public Class Methods all_symbols → array Show source VALUE rb_sym_all_symbols(void) { VALUE ary = rb_ary_new2(global_symbols.str_sym->num_entries); st_foreach(global_symbols.str_sym, symbols_i, ary); return ary; } Returns an array of all the symbols currently in Ruby's symbol table. Symbol.all_symbols.size #=> 903 Symbol.all_symbols[1,20] #=> [:floor, :ARGV, :Binding, :symlink, :chown, :EOFError, :$;, :String, :LOCK_SH, :"setuid?", :$<, :default_proc, :compact, :extend, :Tms, :getwd, :$=, :ThreadGroup, :wait2, :$>] json_create(o) Show source # File ext/json/lib/json/add/symbol.rb, line 22 def self.json_create(o) o['s'].to_sym end Deserializes JSON string by converting the string value stored in the object to a Symbol Public Instance Methods symbol <=> other_symbol → -1, 0, +1, or nil Show source static VALUE sym_cmp(VALUE sym, VALUE other) { if (!SYMBOL_P(other)) { return Qnil; } return rb_str_cmp_m(rb_sym2str(sym), rb_sym2str(other)); } Compares symbol with other_symbol after calling to_s on each of the symbols. Returns -1, 0, +1, or nil depending on whether symbol is less than, equal to, or greater than other_symbol. nil is returned if the two values are incomparable. See String#<=> for more information. sym == obj → true or false Show source #define sym_equal rb_obj_equal Equality—If sym and obj are exactly the same symbol, returns true. sym == obj → true or false Show source #define sym_equal rb_obj_equal Equality—If sym and obj are exactly the same symbol, returns true. sym =~ obj → integer or nil Show source static VALUE sym_match(VALUE sym, VALUE other) { return rb_str_match(rb_sym2str(sym), other); } Returns sym.to_s =~ obj. sym[idx] → char Show source sym[b, n] → string static VALUE sym_aref(int argc, VALUE *argv, VALUE sym) { return rb_str_aref_m(argc, argv, rb_sym2str(sym)); } Returns sym.to_s[]. as_json(*) Show source # File ext/json/lib/json/add/symbol.rb, line 9 def as_json(*) { JSON.create_id => self.class.name, 's' => to_s, } end Returns a hash, that will be turned into a JSON object and represent this object. capitalize → symbol Show source capitalize([options]) → symbol static VALUE sym_capitalize(int argc, VALUE *argv, VALUE sym) { return rb_str_intern(rb_str_capitalize(argc, argv, rb_sym2str(sym))); } Same as sym.to_s.capitalize.intern. casecmp(other_symbol) → -1, 0, +1, or nil Show source static VALUE sym_casecmp(VALUE sym, VALUE other) { if (!SYMBOL_P(other)) { return Qnil; } return str_casecmp(rb_sym2str(sym), rb_sym2str(other)); } Case-insensitive version of Symbol#<=>. Currently, case-insensitivity only works on characters A-Z/a-z, not all of Unicode. This is different from Symbol#casecmp?. :aBcDeF.casecmp(:abcde) #=> 1 :aBcDeF.casecmp(:abcdef) #=> 0 :aBcDeF.casecmp(:abcdefg) #=> -1 :abcdef.casecmp(:ABCDEF) #=> 0 nil is returned if the two symbols have incompatible encodings, or if other_symbol is not a symbol. :foo.casecmp(2) #=> nil "\u{e4 f6 fc}".encode("ISO-8859-1").to_sym.casecmp(:"\u{c4 d6 dc}") #=> nil casecmp?(other_symbol) → true, false, or nil Show source static VALUE sym_casecmp_p(VALUE sym, VALUE other) { if (!SYMBOL_P(other)) { return Qnil; } return str_casecmp_p(rb_sym2str(sym), rb_sym2str(other)); } Returns true if sym and other_symbol are equal after Unicode case folding, false if they are not equal. :aBcDeF.casecmp?(:abcde) #=> false :aBcDeF.casecmp?(:abcdef) #=> true :aBcDeF.casecmp?(:abcdefg) #=> false :abcdef.casecmp?(:ABCDEF) #=> true :"\u{e4 f6 fc}".casecmp?(:"\u{c4 d6 dc}") #=> true nil is returned if the two symbols have incompatible encodings, or if other_symbol is not a symbol. :foo.casecmp?(2) #=> nil "\u{e4 f6 fc}".encode("ISO-8859-1").to_sym.casecmp?(:"\u{c4 d6 dc}") #=> nil dclone() Show source # File lib/rexml/xpath_parser.rb, line 18 def dclone ; self ; end provides a unified clone operation, for REXML8b7c:f320:99b9:690f:4595:cd17:293a:c069XPathParser to use across multiple Object types downcase → symbol Show source downcase([options]) → symbol static VALUE sym_downcase(int argc, VALUE *argv, VALUE sym) { return rb_str_intern(rb_str_downcase(argc, argv, rb_sym2str(sym))); } Same as sym.to_s.downcase.intern. empty? → true or false Show source static VALUE sym_empty(VALUE sym) { return rb_str_empty(rb_sym2str(sym)); } Returns whether sym is :“” or not. encoding → encoding Show source static VALUE sym_encoding(VALUE sym) { return rb_obj_encoding(rb_sym2str(sym)); } Returns the Encoding object that represents the encoding of sym. id2name → string Show source VALUE rb_sym_to_s(VALUE sym) { return str_new_shared(rb_cString, rb_sym2str(sym)); } Returns the name or string corresponding to sym. :fred.id2name #=> "fred" :ginger.to_s #=> "ginger" inspect → string Show source static VALUE sym_inspect(VALUE sym) { VALUE str = rb_sym2str(sym); const char *ptr; long len; char *dest; if (!rb_str_symname_p(str)) { str = rb_str_inspect(str); len = RSTRING_LEN(str); rb_str_resize(str, len + 1); dest = RSTRING_PTR(str); memmove(dest + 1, dest, len); } else { rb_encoding *enc = STR_ENC_GET(str); RSTRING_GETMEM(str, ptr, len); str = rb_enc_str_new(0, len + 1, enc); dest = RSTRING_PTR(str); memcpy(dest + 1, ptr, len); } dest[0] = ':'; return str; } Returns the representation of sym as a symbol literal. :fred.inspect #=> ":fred" intern → sym Show source static VALUE sym_to_sym(VALUE sym) { return sym; } In general, to_sym returns the Symbol corresponding to an object. As sym is already a symbol, self is returned in this case. length → integer Show source static VALUE sym_length(VALUE sym) { return rb_str_length(rb_sym2str(sym)); } Same as sym.to_s.length. match(pattern) → matchdata or nil Show source match(pattern, pos) → matchdata or nil static VALUE sym_match_m(int argc, VALUE *argv, VALUE sym) { return rb_str_match_m(argc, argv, rb_sym2str(sym)); } Returns sym.to_s.match. match?(pattern) → true or false Show source match?(pattern, pos) → true or false static VALUE sym_match_m_p(int argc, VALUE *argv, VALUE sym) { return rb_str_match_m_p(argc, argv, sym); } Returns sym.to_s.match?. succ Show source static VALUE sym_succ(VALUE sym) { return rb_str_intern(rb_str_succ(rb_sym2str(sym))); } Same as sym.to_s.succ.intern. size → integer Show source static VALUE sym_length(VALUE sym) { return rb_str_length(rb_sym2str(sym)); } Same as sym.to_s.length. slice(idx) → char Show source slice(b, n) → string static VALUE sym_aref(int argc, VALUE *argv, VALUE sym) { return rb_str_aref_m(argc, argv, rb_sym2str(sym)); } Returns sym.to_s[]. succ Show source static VALUE sym_succ(VALUE sym) { return rb_str_intern(rb_str_succ(rb_sym2str(sym))); } Same as sym.to_s.succ.intern. swapcase → symbol Show source swapcase([options]) → symbol static VALUE sym_swapcase(int argc, VALUE *argv, VALUE sym) { return rb_str_intern(rb_str_swapcase(argc, argv, rb_sym2str(sym))); } Same as sym.to_s.swapcase.intern. to_json(*a) Show source # File ext/json/lib/json/add/symbol.rb, line 17 def to_json(*a) as_json.to_json(*a) end Stores class name (Symbol) with String representation of Symbol as a JSON string. to_proc Show source VALUE rb_sym_to_proc(VALUE sym) { } Returns a Proc object which responds to the given method by sym. (1..3).collect(&:to_s) #=> ["1", "2", "3"] to_s → string Show source VALUE rb_sym_to_s(VALUE sym) { return str_new_shared(rb_cString, rb_sym2str(sym)); } Returns the name or string corresponding to sym. :fred.id2name #=> "fred" :ginger.to_s #=> "ginger" to_sym → sym Show source static VALUE sym_to_sym(VALUE sym) { return sym; } In general, to_sym returns the Symbol corresponding to an object. As sym is already a symbol, self is returned in this case. upcase → symbol Show source upcase([options]) → symbol static VALUE sym_upcase(int argc, VALUE *argv, VALUE sym) { return rb_str_intern(rb_str_upcase(argc, argv, rb_sym2str(sym))); } Same as sym.to_s.upcase.intern. Ruby Core © 1993–2017 Yukihiro MatsumotoLicensed under the Ruby License.Ruby Standard Library
<LANG>_CPPCHECK This property is supported only when <LANG> is C or CXX. Specify a ;-list containing a command line for the cppcheck static analysis tool. The Makefile Generators and the Ninja generator will run cppcheck along with the compiler and report any problems. This property is initialized by the value of the CMAKE_<LANG>_CPPCHECK variable if it is set when a target is created.
statsmodels.genmod.generalized_estimating_equations.GEEMargins.tvalues GEEMargins.tvalues() [source] © 2009–2012 Statsmodels Developers© 2006–2008 Scipy Developers
Yaf_View_Simpl8b7c:f320:99b9:690f:4595:cd17:293a:c069__isset (Yaf >=1.0.0) Yaf_View_Simpl8b7c:f320:99b9:690f:4595:cd17:293a:c069__isset — The __isset purpose Description public Yaf_View_Simpl8b7c:f320:99b9:690f:4595:cd17:293a:c069__isset(string $name): void Parameters name Return Values
Class InlineView java.lang.Object javax.swing.text.View javax.swing.text.GlyphView javax.swing.text.LabelView javax.swing.text.html.InlineView All Implemented Interfaces: Cloneable, SwingConstants, TabableView public class InlineView extends LabelView Displays the inline element styles based upon css attributes. Nested Class Summary Nested classes/interfaces declared in class javax.swing.text.GlyphView GlyphView.GlyphPainter Field Summary Fields declared in class javax.swing.text.View BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS Fields declared in interface javax.swing.SwingConstants BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST Constructor Summary Constructor Description InlineView(Element elem) Constructs a new view wrapped on an element. Method Summary Modifier and Type Method Description View breakView(int axis, int offset, float pos, float len) Tries to break this view on the given axis. void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) Gives notification from the document that attributes were changed in a location that this view is responsible for. AttributeSet getAttributes() Fetches the attributes to use when rendering. int getBreakWeight(int axis, float pos, float len) Determines how attractive a break opportunity in this view is. protected StyleSheet getStyleSheet() Convenient method to get the StyleSheet. void insertUpdate(DocumentEvent e, Shape a, ViewFactory f) Gives notification that something was inserted into the document in a location that this view is responsible for. void removeUpdate(DocumentEvent e, Shape a, ViewFactory f) Gives notification that something was removed from the document in a location that this view is responsible for. protected void setPropertiesFromAttributes() Set the cached properties from the attributes. Methods declared in class javax.swing.text.LabelView getBackground, getFont, getFontMetrics, getForeground, isStrikeThrough, isSubscript, isSuperscript, isUnderline, setBackground, setStrikeThrough, setSubscript, setSuperscript, setUnderline Methods declared in class javax.swing.text.GlyphView checkPainter, clone, createFragment, getAlignment, getEndOffset, getGlyphPainter, getMinimumSpan, getNextVisualPositionFrom, getPartialSpan, getPreferredSpan, getStartOffset, getTabbedSpan, getTabExpander, getText, modelToView, paint, setGlyphPainter, viewToModel Methods declared in class javax.swing.text.View append, forwardUpdate, forwardUpdateToView, getChildAllocation, getContainer, getDocument, getElement, getGraphics, getMaximumSpan, getParent, getResizeWeight, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, replace, setParent, setSize, updateChildren, updateLayout, viewToModel Methods declared in class java.lang.Object equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Methods declared in interface javax.swing.text.TabableView getPartialSpan, getTabbedSpan Constructor Details InlineView public InlineView(Element elem) Constructs a new view wrapped on an element. Parameters: elem - the element Method Details insertUpdate public void insertUpdate(DocumentEvent e, Shape a, ViewFactory f) Gives notification that something was inserted into the document in a location that this view is responsible for. If either parameter is null, behavior of this method is implementation dependent. Overrides: insertUpdate in class GlyphView Parameters: e - the change information from the associated document a - the current allocation of the view f - the factory to use to rebuild if the view has children Since: 1.5 See Also: View.insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory) removeUpdate public void removeUpdate(DocumentEvent e, Shape a, ViewFactory f) Gives notification that something was removed from the document in a location that this view is responsible for. If either parameter is null, behavior of this method is implementation dependent. Overrides: removeUpdate in class GlyphView Parameters: e - the change information from the associated document a - the current allocation of the view f - the factory to use to rebuild if the view has children Since: 1.5 See Also: View.removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory) changedUpdate public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) Gives notification from the document that attributes were changed in a location that this view is responsible for. Overrides: changedUpdate in class LabelView Parameters: e - the change information from the associated document a - the current allocation of the view f - the factory to use to rebuild if the view has children See Also: View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory) getAttributes public AttributeSet getAttributes() Fetches the attributes to use when rendering. This is implemented to multiplex the attributes specified in the model with a StyleSheet. Overrides: getAttributes in class View Returns: the attributes to use when rendering getBreakWeight public int getBreakWeight(int axis, float pos, float len) Determines how attractive a break opportunity in this view is. This can be used for determining which view is the most attractive to call breakView on in the process of formatting. A view that represents text that has whitespace in it might be more attractive than a view that has no whitespace, for example. The higher the weight, the more attractive the break. A value equal to or lower than BadBreakWeight should not be considered for a break. A value greater than or equal to ForcedBreakWeight should be broken. This is implemented to provide the default behavior of returning BadBreakWeight unless the length is greater than the length of the view in which case the entire view represents the fragment. Unless a view has been written to support breaking behavior, it is not attractive to try and break the view. An example of a view that does support breaking is LabelView. An example of a view that uses break weight is ParagraphView. Overrides: getBreakWeight in class GlyphView Parameters: axis - may be either View.X_AXIS or View.Y_AXIS pos - the potential location of the start of the broken view >= 0. This may be useful for calculating tab positions. len - specifies the relative length from pos where a potential break is desired >= 0. Returns: the weight, which should be a value between ForcedBreakWeight and BadBreakWeight. See Also: LabelView ParagraphView View.BadBreakWeight View.GoodBreakWeight View.ExcellentBreakWeight View.ForcedBreakWeight breakView public View breakView(int axis, int offset, float pos, float len) Tries to break this view on the given axis. Refer to View.breakView(int, int, float, float) for a complete description of this method. Behavior of this method is unspecified in case axis is neither View.X_AXIS nor View.Y_AXIS, and in case offset, pos, or len is null. Overrides: breakView in class GlyphView Parameters: axis - may be either View.X_AXIS or View.Y_AXIS offset - the location in the document model that a broken fragment would occupy >= 0. This would be the starting offset of the fragment returned pos - the position along the axis that the broken view would occupy >= 0. This may be useful for things like tab calculations len - specifies the distance along the axis where a potential break is desired >= 0 Returns: the fragment of the view that represents the given span. Since: 1.5 See Also: View.breakView(int, int, float, float) setPropertiesFromAttributes protected void setPropertiesFromAttributes() Set the cached properties from the attributes. Overrides: setPropertiesFromAttributes in class LabelView getStyleSheet protected StyleSheet getStyleSheet() Convenient method to get the StyleSheet. Returns: the StyleSheet
<HashRouter> Type declarationdeclare function HashRouter( props: HashRouterProps ): React.ReactElement; interface HashRouterProps { basename?: string; children?: React.ReactNode; window?: Window; } <HashRouter> is for use in web browsers when the URL should not (or cannot) be sent to the server for some reason. This may happen in some shared hosting scenarios where you do not have full control over the server. In these situations, <HashRouter> makes it possible to store the current location in the hash portion of the current URL, so it is never sent to the server. <HashRouter window> defaults to using the current document's defaultView, but it may also be used to track changes to another window's URL, in an <iframe>, for example. import * as React from "react"; import * as ReactDOM from "react-dom"; import { HashRouter } from "react-router-dom"; ReactDOM.render( <HashRouter> {/* The rest of your app goes here */} </HashRouter>, root ); We strongly recommend you do not use HashRouter unless you absolutely have to. © React Training 2015-2019
linode - create / delete / stop / restart an instance in Linode Public Cloud New in version 1.3. Synopsis Requirements (on host that executes module) Options Examples Notes Status Synopsis creates / deletes a Linode Public Cloud instance and optionally waits for it to be ‘running’. Requirements (on host that executes module) python >= 2.6 linode-python pycurl Options parameter required default choices comments additional_disks(added in 2.3) no List of dictionaries for creating additional disks that are added to the Linode configuration settings. Dictionary takes Size, Label, Type. Size is in MB. alert_bwin_enabled(added in 2.3) no True False Set status of bandwidth in alerts. alert_bwin_threshold(added in 2.3) no Set threshold in MB of bandwidth in alerts. alert_bwout_enabled(added in 2.3) no True False Set status of bandwidth out alerts. alert_bwout_threshold(added in 2.3) no Set threshold in MB of bandwidth out alerts. alert_bwquota_enabled(added in 2.3) no True False Set status of bandwidth quota alerts as percentage of network transfer quota. alert_bwquota_threshold(added in 2.3) no Set threshold in MB of bandwidth quota alerts. alert_cpu_enabled(added in 2.3) no True False Set status of receiving CPU usage alerts. alert_cpu_threshold(added in 2.3) no Set percentage threshold for receiving CPU usage alerts. Each CPU core adds 100% to total. alert_diskio_enabled(added in 2.3) no True False Set status of receiving disk IO alerts. alert_diskio_threshold(added in 2.3) no Set threshold for average IO ops/sec over 2 hour period. api_key no Linode API key backupweeklyday(added in 2.3) no Integer value for what day of the week to store weekly backups. datacenter no datacenter to create an instance in (Linode Datacenter) displaygroup(added in 2.3) no Add the instance to a Display Group in Linode Manager distribution no distribution to use for the instance (Linode Distribution) kernel_id(added in 2.4) no kernel to use for the instance (Linode Kernel) linode_id no Unique ID of a linode server aliases: lid name no Name to give the instance (alphanumeric, dashes, underscore) To keep sanity on the Linode Web Console, name is prepended with LinodeID_ password no root password to apply to a new server (auto generated if missing) payment_term no 1 1 12 24 payment term to use for the instance (payment term in months) plan no plan to use for the instance (Linode plan) private_ip(added in 2.3) no no yes no Add private IPv4 address when Linode is created. ssh_pub_key no SSH public key applied to root user state no present present active started absent deleted stopped restarted Indicate desired state of the resource swap no 512 swap size in MB wait no no yes no wait for the instance to be in state 'running' before returning wait_timeout no 300 how long before wait gives up, in seconds watchdog(added in 2.2) no True True False Set status of Lassie watchdog. Examples # Create a server with a private IP Address - local_action: module: linode api_key: 'longStringFromLinodeApi' name: linode-test1 plan: 1 datacenter: 2 distribution: 99 password: 'superSecureRootPassword' private_ip: yes ssh_pub_key: 'ssh-rsa qwerty' swap: 768 wait: yes wait_timeout: 600 state: present # Fully configure new server - local_action: module: linode api_key: 'longStringFromLinodeApi' name: linode-test1 plan: 4 datacenter: 2 distribution: 99 kernel_id: 138 password: 'superSecureRootPassword' private_ip: yes ssh_pub_key: 'ssh-rsa qwerty' swap: 768 wait: yes wait_timeout: 600 state: present alert_bwquota_enabled: True alert_bwquota_threshold: 80 alert_bwin_enabled: True alert_bwin_threshold: 10 alert_cpu_enabled: True alert_cpu_threshold: 210 alert_diskio_enabled: True alert_bwout_enabled: True alert_bwout_threshold: 10 alert_diskio_enabled: True alert_diskio_threshold: 10000 backupweeklyday: 1 backupwindow: 2 displaygroup: 'test' additional_disks: - {Label: 'disk1', Size: 2500, Type: 'raw'} - {Label: 'newdisk', Size: 2000} watchdog: True # Ensure a running server (create if missing) - local_action: module: linode api_key: 'longStringFromLinodeApi' name: linode-test1 linode_id: 12345678 plan: 1 datacenter: 2 distribution: 99 password: 'superSecureRootPassword' ssh_pub_key: 'ssh-rsa qwerty' swap: 768 wait: yes wait_timeout: 600 state: present # Delete a server - local_action: module: linode api_key: 'longStringFromLinodeApi' name: linode-test1 linode_id: 12345678 state: absent # Stop a server - local_action: module: linode api_key: 'longStringFromLinodeApi' name: linode-test1 linode_id: 12345678 state: stopped # Reboot a server - local_action: module: linode api_key: 'longStringFromLinodeApi' name: linode-test1 linode_id: 12345678 state: restarted Notes Note LINODE_API_KEY env variable can be used instead Status This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface. For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules. © 2012–2018 Michael DeHaan
Trait ToScalaImplicits.ToScalaImplicits Source code trait ToScalaImplicits Defines implicit converter methods from Java to Scala collections. Deprecated Supertypes class Object trait Matchable class Any Known subtypes object ImplicitConversions.type object ImplicitConversionsToScala.type Implicits Source implicit def `collection AsScalaIterable`[A](i: Collection[A]): Iterable[A] Implicitly converts a Java Collection to an Scala Iterable. See also JavaConverters.collectionAsScalaIterable Source implicit def `dictionary AsScalaMap`[K, V](p: Dictionary[K, V]): Map[K, V] Implicitly converts a Java Dictionary to a Scala mutable Map. See also JavaConverters.dictionaryAsScalaMap Source implicit def `enumeration AsScalaIterator`[A](i: Enumeration[A]): Iterator[A] Implicitly converts a Java Enumeration to a Scala Iterator. See also JavaConverters.enumerationAsScalaIterator Source implicit def `iterable AsScalaIterable`[A](i: Iterable[A]): Iterable[A] Implicitly converts a Java Iterable to a Scala Iterable. See also JavaConverters.iterableAsScalaIterable Source implicit def `iterator asScala`[A](it: Iterator[A]): Iterator[A] Implicitly converts a Java Iterator to a Scala Iterator. See also JavaConverters.asScalaIterator Source implicit def `list asScalaBuffer`[A](l: List[A]): Buffer[A] Implicitly converts a Java List to a Scala mutable Buffer. See also JavaConverters.asScalaBuffer Source implicit def `map AsScalaConcurrentMap`[K, V](m: ConcurrentMap[K, V]): Map[K, V] Implicitly converts a Java ConcurrentMap to a Scala mutable ConcurrentMap. See also JavaConverters.mapAsScalaConcurrentMap Source implicit def `map AsScala`[K, V](m: Map[K, V]): Map[K, V] Implicitly converts a Java Map to a Scala mutable Map. See also JavaConverters.mapAsScalaMap Source implicit def `properties AsScalaMap`(p: Properties): Map[String, String] Implicitly converts a Java Properties to a Scala mutable Map[String, String]. See also JavaConverters.propertiesAsScalaMap Source implicit def `set asScala`[A](s: Set[A]): Set[A] Implicitly converts a Java Set to a Scala mutable Set. See also JavaConverters.asScalaSet
dart:html onMouseUp property Stream<MouseEvent> onMouseUp Stream of mouseup events handled by this Document. Implementation Stream<MouseEvent> get onMouseUp => Element.mouseUpEvent.forTarget(this);
WebGL2RenderingContext.getUniformIndices() The WebGL2RenderingContext.getUniformIndices() method of the WebGL 2 API retrieves the indices of a number of uniforms within a WebGLProgram. Syntax getUniformIndices(program, uniformNames) Parameters program A WebGLProgram containing uniforms whose indices to query. uniformNames An Array of string specifying the names of the uniforms to query. Return value An Array of GLuint containing the uniform indices. Examples var uniformIndices = gl.getUniformIndices(program, ['UBORed', 'UBOGreen', 'UBOBlue']); Specifications Specification WebGL 2.0 Specification # 3.7.16 Browser compatibility Desktop Mobile Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet getUniformIndices 56 79 51 No 43 15 58 58 51 43 15 7.0 See also WebGL2RenderingContext.getUniformBlockIndex() Found a problem with this page? Edit on GitHub Source on GitHub Report a problem with this content on GitHub Want to fix the problem yourself? See our Contribution guide. Last modified: Apr 22, 2022, by MDN contributors
love.window.getDimensions Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 Use love.graphics.getDimensions or love.window.getMode instead. Gets the width and height of the window. Function Synopsis width, height = love.window.getDimensions( ) Arguments None. Returns number width The width of the window. number height The height of the window. See Also love.window love.window.getWidth love.window.getHeight love.window.setMode
dart:html clipboardData property DataTransfer? clipboardData Implementation DataTransfer? get clipboardData native;
Information Schema METADATA_LOCK_INFO Table The Information Schema METADATA_LOCK_INFO table is created by the metadata_lock_info plugin. It shows active metadata locks and user locks (the locks acquired with GET_LOCK). It has the following columns: Column Description THREAD_ID LOCK_MODE One of MDL_INTENTION_EXCLUSIVE, MDL_SHARED, MDL_SHARED_HIGH_PRIO, MDL_SHARED_READ, MDL_SHARED_READ_ONLY, MDL_SHARED_WRITE, MDL_SHARED_NO_WRITE, MDL_SHARED_NO_READ_WRITE, MDL_SHARED_UPGRADABLE or MDL_EXCLUSIVE. LOCK_DURATION One of MDL_STATEMENT, MDL_TRANSACTION or MDL_EXPLICIT LOCK_TYPE One of Global read lock, Schema metadata lock, Table metadata lock, Stored function metadata lock, Stored procedure metadata lock, Trigger metadata lock, Event metadata lock, Commit lock or User lock. TABLE_SCHEMA TABLE_NAME "LOCK_MODE" Descriptions The LOCK_MODE column can have the following values: Value Description MDL_INTENTION_EXCLUSIVE An intention exclusive metadata lock (IX). Used only for scoped locks. Owner of this type of lock can acquire upgradable exclusive locks on individual objects. Compatible with other IX locks, but is incompatible with scoped S and X locks. IX lock is taken in SCHEMA namespace when we intend to modify object metadata. Object may refer table, stored procedure, trigger, view/etc. MDL_SHARED A shared metadata lock (S). To be used in cases when we are interested in object metadata only and there is no intention to access object data (e.g. for stored routines or during preparing prepared statements). We also mis-use this type of lock for open HANDLERs, since lock acquired by this statement has to be compatible with lock acquired by LOCK TABLES ... WRITE statement, i.e. SNRW (We can't get by by acquiring S lock at HANDLER ... OPEN time and upgrading it to SR lock for HANDLER ... READ as it doesn't solve problem with need to abort DML statements which wait on table level lock while having open HANDLER in the same connection). To avoid deadlock which may occur when SNRW lock is being upgraded to X lock for table on which there is an active S lock which is owned by thread which waits in its turn for table-level lock owned by thread performing upgrade we have to use thr_abort_locks_for_thread() facility in such situation. This problem does not arise for locks on stored routines as we don't use SNRW locks for them. It also does not arise when S locks are used during PREPARE calls as table-level locks are not acquired in this case. This lock is taken for global read lock, when caching a stored procedure in memory for the duration of the transaction and for tables used by prepared statements. MDL_SHARED_HIGH_PRIO A high priority shared metadata lock. Used for cases when there is no intention to access object data (i.e. data in the table). "High priority" means that, unlike other shared locks, it is granted ignoring pending requests for exclusive locks. Intended for use in cases when we only need to access metadata and not data, e.g. when filling an INFORMATION_SCHEMA table. Since SH lock is compatible with SNRW lock, the connection that holds SH lock lock should not try to acquire any kind of table-level or row-level lock, as this can lead to a deadlock. Moreover, after acquiring SH lock, the connection should not wait for any other resource, as it might cause starvation for X locks and a potential deadlock during upgrade of SNW or SNRW to X lock (e.g. if the upgrading connection holds the resource that is being waited for). MDL_SHARED_READ A shared metadata lock (SR) for cases when there is an intention to read data from table. A connection holding this kind of lock can read table metadata and read table data (after acquiring appropriate table and row-level locks). This means that one can only acquire TL_READ, TL_READ_NO_INSERT, and similar table-level locks on table if one holds SR MDL lock on it. To be used for tables in SELECTs, subqueries, and LOCK TABLE ... READ statements. MDL_SHARED_WRITE A shared metadata lock (SW) for cases when there is an intention to modify (and not just read) data in the table. A connection holding SW lock can read table metadata and modify or read table data (after acquiring appropriate table and row-level locks). To be used for tables to be modified by INSERT, UPDATE, DELETE statements, but not LOCK TABLE ... WRITE or DDL). Also taken by SELECT ... FOR UPDATE. MDL_SHARED_UPGRADABLE An upgradable shared metadata lock for cases when there is an intention to modify (and not just read) data in the table. Can be upgraded to MDL_SHARED_NO_WRITE and MDL_EXCLUSIVE. A connection holding SU lock can read table metadata and modify or read table data (after acquiring appropriate table and row-level locks). To be used for the first phase of ALTER TABLE. MDL_SHARED_READ_ONLY A shared metadata lock for cases when we need to read data from table and block all concurrent modifications to it (for both data and metadata). Used by LOCK TABLES READ statement. MDL_SHARED_NO_WRITE An upgradable shared metadata lock which blocks all attempts to update table data, allowing reads. A connection holding this kind of lock can read table metadata and read table data. Can be upgraded to X metadata lock. Note, that since this type of lock is not compatible with SNRW or SW lock types, acquiring appropriate engine-level locks for reading (TL_READ* for MyISAM, shared row locks in InnoDB) should be contention-free. To be used for the first phase of ALTER TABLE, when copying data between tables, to allow concurrent SELECTs from the table, but not UPDATEs. MDL_SHARED_NO_READ_WRITE An upgradable shared metadata lock which allows other connections to access table metadata, but not data. It blocks all attempts to read or update table data, while allowing INFORMATION_SCHEMA and SHOW queries. A connection holding this kind of lock can read table metadata modify and read table data. Can be upgraded to X metadata lock. To be used for LOCK TABLES WRITE statement. Not compatible with any other lock type except S and SH. MDL_EXCLUSIVE An exclusive metadata lock (X). A connection holding this lock can modify both table's metadata and data. No other type of metadata lock can be granted while this lock is held. To be used for CREATE/DROP/RENAME TABLE statements and for execution of certain phases of other DDL statements. Examples User lock: SELECT GET_LOCK('abc',1000); +----------------------+ | GET_LOCK('abc',1000) | +----------------------+ | 1 | +----------------------+ SELECT * FROM information_schema.METADATA_LOCK_INFO; +-----------+--------------------------+---------------+-----------+--------------+------------+ | THREAD_ID | LOCK_MODE | LOCK_DURATION | LOCK_TYPE | TABLE_SCHEMA | TABLE_NAME | +-----------+--------------------------+---------------+-----------+--------------+------------+ | 61 | MDL_SHARED_NO_READ_WRITE | MDL_EXPLICIT | User lock | abc | | +-----------+--------------------------+---------------+-----------+--------------+------------+ Table metadata lock: START TRANSACTION; INSERT INTO t VALUES (1,2); SELECT * FROM information_schema.METADATA_LOCK_INFO \G *************************** 1. row *************************** THREAD_ID: 4 LOCK_MODE: MDL_SHARED_WRITE LOCK_DURATION: MDL_TRANSACTION LOCK_TYPE: Table metadata lock TABLE_SCHEMA: test TABLE_NAME: t SELECT * FROM information_schema.METADATA_LOCK_INFO; +-----------+--------------------------+---------------+----------------------+-----------------+-------------+ | THREAD_ID | LOCK_MODE | LOCK_DURATION | LOCK_TYPE | TABLE_SCHEMA | TABLE_NAME | +-----------+--------------------------+---------------+----------------------+-----------------+-------------+ | 31 | MDL_INTENTION_EXCLUSIVE | MDL_EXPLICIT | Global read lock | | | | 31 | MDL_INTENTION_EXCLUSIVE | MDL_EXPLICIT | Commit lock | | | | 31 | MDL_INTENTION_EXCLUSIVE | MDL_EXPLICIT | Schema metadata lock | dbname | | | 31 | MDL_SHARED_NO_READ_WRITE | MDL_EXPLICIT | Table metadata lock | dbname | exotics | +-----------+--------------------------+---------------+----------------------+-----------------+-------------+ See Also metadata locks Performance Schema metadata_locks table GET_LOCK). Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.
interface ImageInterface Provides an interface for image objects. Hierarchy interface \Drupal\Core\Image\ImageInterface File core/lib/Drupal/Core/Image/ImageInterface.php, line 8 Namespace Drupal\Core\Image Members Name Modifiers Type Description ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069apply public function Applies a toolkit operation to the image. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069convert public function Instructs the toolkit to save the image in the format specified by the extension. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069createNew public function Prepares a new image, without loading it from a file. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069crop public function Crops an image to a rectangle specified by the given dimensions. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069desaturate public function Converts an image to grayscale. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069getFileSize public function Returns the size of the image file. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069getHeight public function Returns the height of the image. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069getMimeType public function Returns the MIME type of the image file. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069getSource public function Retrieves the source path of the image file. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069getToolkit public function Returns the image toolkit used for this image file. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069getToolkitId public function Returns the ID of the image toolkit used for this image file. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069getWidth public function Returns the width of the image. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069isValid public function Checks if the image is valid. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069resize public function Resizes an image to the given dimensions (ignoring aspect ratio). ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069rotate public function Rotates an image by the given number of degrees. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069save public function Closes the image and saves the changes to a file. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069scale public function Scales an image while maintaining aspect ratio. ImageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069scaleAndCrop public function Scales an image to the exact width and height given.
Command-Line Interface Almost all interaction with Vagrant is done through the command-line interface. The interface is available using the vagrant command, and comes installed with Vagrant automatically. The vagrant command in turn has many subcommands, such as vagrant up, vagrant destroy, etc. If you run vagrant by itself, help will be displayed showing all available subcommands. In addition to this, you can run any Vagrant command with the -h flag to output help about that specific command. For example, try running vagrant init -h. The help will output a one sentence synopsis of what the command does as well as a list of all the flags the command accepts. In depth documentation and use cases of various Vagrant commands is available by reading the appropriate sub-section available in the left navigational area of this site. You may also wish to consult the documentation regarding the environmental variables that can be used to configure and control Vagrant in a global way.
Thr8b7c:f320:99b9:690f:4595:cd17:293a:c069join (PECL pthreads >= 2.0.0) Thr8b7c:f320:99b9:690f:4595:cd17:293a:c069join — Synchronization Description public Thr8b7c:f320:99b9:690f:4595:cd17:293a:c069join(): bool Causes the calling context to wait for the referenced Thread to finish executing Parameters This function has no parameters. Return Values Returns true on success or false on failure. Examples Example #1 Join with the referenced Thread <?php class My extends Thread {     public function run() {         /* ... */     } } $my = new My(); $my->start(); /* ... */ var_dump($my->join()); /* ... */ ?> The above example will output: bool(true)
delete_user_setting( string $names ): bool|null Deletes user interface settings. Description Deleting settings would reset them to the defaults. This function has to be used before any output has started as it calls setcookie(). Parameters $names string Required The name or array of names of the setting to be deleted. Return bool|null True if deleted successfully, false otherwise. Null if the current user is not a member of the site. Source File: wp-includes/option.php. View all references function delete_user_setting( $names ) { if ( headers_sent() ) { return false; } $all_user_settings = get_all_user_settings(); $names = (array) $names; $deleted = false; foreach ( $names as $name ) { if ( isset( $all_user_settings[ $name ] ) ) { unset( $all_user_settings[ $name ] ); $deleted = true; } } if ( $deleted ) { return wp_set_all_user_settings( $all_user_settings ); } return false; } Related Uses Uses Description get_all_user_settings() wp-includes/option.php Retrieves all user interface settings. wp_set_all_user_settings() wp-includes/option.php Private. Sets all user interface settings. Used By Used By Description default_password_nag_handler() wp-admin/includes/user.php default_password_nag_edit_user() wp-admin/includes/user.php Changelog Version Description 2.7.0 Introduced.
Trait StreamExtensions.StreamUnboxer Companion object • Source code sealed trait StreamUnboxer[A, S] Connects a stream element type A to the corresponding, potentially specialized, Stream type. Used in the stream.asJavaPrimitiveStream extension method. Supertypes class Object trait Matchable class Any Abstract methods Source def apply(s: Stream[A]): S
public function MenuLinkInter8b7c:f320:99b9:690f:4595:cd17:293a:c069getParent public MenuLinkInter8b7c:f320:99b9:690f:4595:cd17:293a:c069getParent() Returns the plugin ID of the menu link's parent, or an empty string. Return value string The parent plugin ID. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 60 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getParent();
st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_filebuf<CharT,Traits>8b7c:f320:99b9:690f:4595:cd17:293a:c069sic_filebuf basic_filebuf(); (1) basic_filebuf( const st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_filebuf& rhs ) = delete; (2) (since C++11) basic_filebuf( st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_filebuf&& rhs ); (3) (since C++11) Contructs new st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_filebuf object. 1) Constructs a st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_filebuf object, initializing the base class by calling the default constructor of st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_streambuf. The created basic_filebuf is not associated with a file, and is_open() returns false. 2) The copy constructor is deleted; st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_filebuf is not CopyConstructible 3) Move-constructs a st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_filebuf object by moving all contents from another st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_filebuf object rhs, including the buffers, the associated file, the locale, the openmode, the is_open variable, and all other state. After move, rhs is not associated with a file and rhs.is_open()==false. The member pointers of the base class st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_streambuf of rhs and of the base class of *this are guaranteed to point to different buffers (unless null). Parameters rhs - another basic_filebuf Notes Typically called by the constructor of st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_fstream. Example See also operator= (C++11) assigns a basic_filebuf object (public member function) (destructor) [virtual] destructs a basic_filebuf object and closes the file if it is open (virtual public member function)
statsmodels.discrete.discrete_model.LogitResults.prsquared LogitResults.prsquared() © 2009–2012 Statsmodels Developers© 2006–2008 Scipy Developers
TextSnapshot package flash.text Available on flash Constructor new() Variables read onlycharCount:Int Methods findText(beginIndex:Int, textToFind:String, caseSensitive:Bool):Int getSelected(beginIndex:Int, endIndex:Int):Bool getSelectedText(includeLineEndings:Bool = false):String getText(beginIndex:Int, endIndex:Int, includeLineEndings:Bool = false):String getTextRunInfo(beginIndex:Int, endIndex:Int):Array<Dynamic> hitTestTextNearPos(x:Float, y:Float, maxDistance:Float = 0):Float setSelectColor(hexColor:UInt = 16776960):Void setSelected(beginIndex:Int, endIndex:Int, select:Bool):Void
splom Scatter Plot Matrices Description Draw Conditional Scatter Plot Matrices and Parallel Coordinate Plots Usage splom(x, data, ...) parallelplot(x, data, ...) ## S3 method for class 'formula' splom(x, data, auto.key = FALSE, aspect = 1, between = list(x = 0.5, y = 0.5), panel = lattice.getOption("panel.splom"), prepanel, scales, strip, groups, xlab, xlim, ylab = NULL, ylim, superpanel = lattice.getOption("panel.pairs"), pscales = 5, varnames = NULL, drop.unused.levels, ..., lattice.options = NULL, default.scales, default.prepanel = lattice.getOption("prepanel.default.splom"), subset = TRUE) ## S3 method for class 'formula' parallelplot(x, data, auto.key = FALSE, aspect = "fill", between = list(x = 0.5, y = 0.5), panel = lattice.getOption("panel.parallel"), prepanel, scales, strip, groups, xlab = NULL, xlim, ylab = NULL, ylim, varnames = NULL, horizontal.axis = TRUE, drop.unused.levels, ..., lattice.options = NULL, default.scales, default.prepanel = lattice.getOption("prepanel.default.parallel"), subset = TRUE) ## S3 method for class 'data.frame' splom(x, data = NULL, ..., groups = NULL, subset = TRUE) ## S3 method for class 'matrix' splom(x, data = NULL, ..., groups = NULL, subset = TRUE) ## S3 method for class 'matrix' parallelplot(x, data = NULL, ..., groups = NULL, subset = TRUE) ## S3 method for class 'data.frame' parallelplot(x, data = NULL, ..., groups = NULL, subset = TRUE) Arguments x The object on which method dispatch is carried out. For the "formula" method, a formula describing the structure of the plot, which should be of the form ~ x | g1 * g2 * ..., where x is a data frame or matrix. Each of g1,g2,... must be either factors or shingles. The conditioning variables g1, g2, ... may be omitted. For the data.frame methods, a data frame. data For the formula methods, an optional data frame in which variables in the formula (as well as groups and subset, if any) are to be evaluated. aspect aspect ratio of each panel (and subpanel), square by default for splom. between to avoid confusion between panels and subpanels, the default is to show the panels of a splom plot with space between them. panel For parallelplot, this has the usual interpretation, i.e., a function that creates the display within each panel. For splom, the terminology is slightly complicated. The role played by the panel function in most other high-level functions is played here by the superpanel function, which is responsible for the display for each conditional data subset. panel is simply an argument to the default superpanel function panel.pairs, and is passed on to it unchanged. It is used there to create each pairwise display. See panel.pairs for more useful options. superpanel function that sets up the splom display, by default as a scatterplot matrix. pscales a numeric value or a list, meant to be a less functional substitute for the scales argument in xyplot etc. This argument is passed to the superpanel function, and is handled by the default superpanel function panel.pairs. The help page for the latter documents this argument in more detail. varnames A character or expression vector or giving names to be used for the variables in x. By default, the column names of x. horizontal.axis logical indicating whether the parallel axes should be laid out horizontally (TRUE) or vertically (FALSE). auto.key, prepanel, scales, strip, groups, xlab, xlim, ylab, ylim, drop.unused.levels, lattice.options, default.scales, subset See xyplot default.prepanel Fallback prepanel function. See xyplot. ... Further arguments. See corresponding entry in xyplot for non-trivial details. Details splom produces Scatter Plot Matrices. The role usually played by panel is taken over by superpanel, which takes a data frame subset and is responsible for plotting it. It is called with the coordinate system set up to have both x- and y-limits from 0.5 to ncol(z) + 0.5. The only built-in option currently available is panel.pairs, which calls a further panel function for each pair (i, j) of variables in z inside a rectangle of unit width and height centered at c(i, j) (see panel.pairs for details). Many of the finer customizations usually done via arguments to high level function like xyplot are instead done by panel.pairs for splom. These include control of axis limits, tick locations and prepanel calcultions. If you are trying to fine-tune your splom plot, definitely look at the panel.pairs help page. The scales argument is usually not very useful in splom, and trying to change it may have undesired effects. parallelplot draws Parallel Coordinate Plots. (Difficult to describe, see example.) These and all other high level Trellis functions have several arguments in common. These are extensively documented only in the help page for xyplot, which should be consulted to learn more detailed usage. Value An object of class "trellis". The update method can be used to update components of the object and the print method (usually called by default) will plot it on an appropriate plotting device. Author(s) Deepayan Sarkar [email protected] See Also xyplot, Lattice, panel.pairs, panel.parallel. Examples super.sym <- trellis.par.get("superpose.symbol") splom(~iris[1:4], groups = Species, data = iris, panel = panel.superpose, key = list(title = "Three Varieties of Iris", columns = 3, points = list(pch = super.sym$pch[1:3], col = super.sym$col[1:3]), text = list(c("Setosa", "Versicolor", "Virginica")))) splom(~iris[1:3]|Species, data = iris, layout=c(2,2), pscales = 0, varnames = c("Sepal\nLength", "Sepal\nWidth", "Petal\nLength"), page = function(...) { ltext(x = seq(.6, .8, length.out = 4), y = seq(.9, .6, length.out = 4), labels = c("Three", "Varieties", "of", "Iris"), cex = 2) }) parallelplot(~iris[1:4] | Species, iris) parallelplot(~iris[1:4], iris, groups = Species, horizontal.axis = FALSE, scales = list(x = list(rot = 90))) Copyright (
history.addUrl() Adds a record to the browser's history of a visit to the given URL. The visit's time is recorded as the time of the call, and the TransitionType is recorded as "link". This is an asynchronous function that returns a Promise. Syntax let addingUrl = browser.history.addUrl( details // object ) Parameters details object. Object containing the URL to add. url string. The URL to add. title Optional string: The title of the page. If this is not supplied, the title will be recorded as null. transition Optional history.TransitionType. Describes how the browser navigated to the page on this occasion. If this is not supplied, a transition type of "link" will be recorded. visitTime Optional number or string or object. A value indicating a date and time. This can be represented as: a Date object, an ISO 8601 date string, or the number of milliseconds since the epoch. Sets the visit time to this value. If this is not supplied, the current time will be recorded. Return value A Promise will be fulfilled with no parameters when the item has been added.Browser compatibility Desktop Mobile Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet addUrl Yes 79 49 ? Yes No ? ? No ? No ? title No No 49 ? No No ? ? No ? No ? transition No No 49 ? No No ? ? No ? No ? visitTime No No 49 ? No No ? ? No ? No ? Examples Add a record of a visit to "https://example.org/", then check that the new visit was recorded by searching history for the most recent item and logging it: function onGot(results) { if (results.length) { console.log(results[0].url); console.log(new Date(results[0].lastVisitTime)); } } browser.history .addUrl({ url: "https://example.org/" }) .then(() => browser.history.search({ text: "https://example.org/", startTime: 0, maxResults: 1, }) ) .then(onGot); Add a record of a visit to "https://example.org", but give it a visitTime 24 hours in the past, and a transition of "typed": const DAY = 24 * 60 * 60 * 1000; function oneDayAgo() { return Date.now() - DAY; } function onGot(visits) { for (const visit of visits) { console.log(new Date(visit.visitTime)); console.log(visit.transition); } } browser.history .addUrl({ url: "https://example.org/", visitTime: oneDayAgo(), transition: "typed", }) .then(() => browser.history.getVisits({ url: "https://example.org/", }) ) .then(onGot); Note: This API is based on Chromium's chrome.history API. This documentation is derived from history.json in the Chromium code. Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
Storage-class specifiers Specify storage duration and linkage of objects and functions: auto - automatic duration and no linkage register - automatic duration and no linkage; address of this variable cannot be taken static - static duration and internal linkage (unless at block scope) extern - static duration and external linkage (unless already declared internal) _Thread_local - thread storage duration (since C11) Explanation Storage-class specifiers appear in declarations. At most one specifier may be used, except that _Thread_local may be combined with static or extern to adjust linkage (since C11). The storage-class specifiers determine two independent properties of the names they declare: storage duration and linkage. 1) The auto specifier is only allowed for objects declared at block scope (except function parameter lists). It indicates automatic storage duration and no linkage, which are the defaults for these kinds of declarations. 2) The register specifier is only allowed for objects declared at block scope, including function parameter lists. It indicates automatic storage duration and no linkage (which is the default for these kinds of declarations), but additionally hints the optimizer to store the value of this variable in a CPU register if possible. Regardless of whether this optimization takes place or not, variables declared register cannot be used as arguments to the address-of operator, cannot use alignas (since C11), and register arrays are not convertible to pointers. 3) The static specifier specifies both static storage duration (unless combined with _Thread_local) (since C11) and internal linkage (unless used at block scope). It can be used with functions at file scope and with variables at both file and block scope, but not in function parameter lists. 4) The extern specifier specifies static storage duration (unless combined with _Thread_local) (since C11) and external linkage. It can be used with function and object declarations in both file and block scope (excluding function parameter lists). If extern appears on a redeclaration of an identifier that was already declared with internal linkage, the linkage remains internal. Otherwise (if the prior declaration was external, no-linkage, or is not in scope), the linkage is external. 5) _Thread_local indicates thread storage duration. It cannot be used with function declarations. If it is used on a declaration of an object, it must be present on every declaration of the same object. If it is used on a block-scope declaration, it must be combined with either static or extern to decide linkage. (since C11) If no storage-class specifier is provided, the defaults are: extern for all functions extern for objects at file scope auto for objects at block scope For any struct or union declared with a storage-class specifier, the storage duration (but not linkage) applies to their members, recursively. Function declarations at block scope can use extern or [email protected]. Function declarations at file scope can use extern or static. Function parameters cannot use any storage-class specifiers other than register. Note that static has special meaning in function parameters of array type. Storage duration Every object has a property called storage duration, which limits the object lifetime. There are four kinds of storage duration in C: automatic storage duration. The storage is allocated when the block in which the object was declared is entered and deallocated when it is exited by any means (goto, return, reaching the end). One exception is the VLAs; their storage is allocated when the declaration is executed, not on block entry, and deallocated when the declaration goes out of scope, not when the block is exited (since C99). If the block is entered recursively, a new allocation is performed for every recursion level. All function parameters and non-static block-scope objects have this storage duration, as well as compound literals used at block scope. static storage duration. The storage duration is the entire execution of the program, and the value stored in the object is initialized only once, prior to main function. All objects declared static and all objects with either internal or external linkage that aren't declared _Thread_local (since C11) have this storage duration. thread storage duration. The storage duration is the entire execution of the thread in which it was created, and the value stored in the object is initialized when the thread is started. Each thread has its own, distinct, object. If the thread that executes the expression that accesses this object is not the thread that executed its initialization, the behavior is implementation-defined. All objects declared _Thread_local have this storage duration. (since C11) allocated storage duration. The storage is allocated and deallocated on request, using dynamic memory allocation functions. Linkage Linkage refers to the ability of an identifier (variable or function) to be referred to in other scopes. If a variable or function with the same identifier is declared in several scopes, but cannot be referred to from all of them, then several instances of the variable are generated. The following linkages are recognized: no linkage. The identifier can be referred to only from the scope it is in. All function parameters and all non-extern block-scope variables (including the ones declared static) have this linkage. internal linkage. The identifier can be referred to from all scopes in the current translation unit. All static file-scope identifiers (both functions and variables) have this linkage. external linkage. The identifier can be referred to from any other translation units in the entire program. All non-static functions, all extern variables (unless earlier declared static), and all file-scope non-static variables have this linkage. If the same identifier appears with both internal and external linkage in the same translation unit, the behavior is undefined. This is possible when tentative definitions are used. Linkage and libraries Declarations with external linkage are commonly made available in header files so that all translation units that #include the file may refer to the same identifier that are defined elsewhere. Any declaration with internal linkage that appears in a header file results in a separate and distinct object in each translation unit that includes that file. Library interface: // flib.h #ifndef FLIB_H #define FLIB_H void f(void); // function declaration with external linkage extern int state; // variable declaration with external linkage static const int size = 5; // definition of a read-only variable with internal linkage enum { MAX = 10 }; // constant definition inline int sum (int a, int b) { return a+b; } // inline function definition #endif // FLIB_H Library implementation: // flib.c #include "flib.h" static void local_f(int s) {} // definition with internal linkage (only used in this file) static int local_state; // definition with internal linkage (only used in this file) int state; // definition with external linkage (used by main.c) void f(void) {local_f(state);} // definition with external linkage (used by main.c) Application code: // main.c #include "flib.h" int main(void) { int x[MAX] = {size}; // uses the constant and the read-only variable state = 7; // modifies state in flib.c f(); // calls f() in flib.c } Keywords auto, register, static, extern, _Thread_local. Notes The keyword _Thread_local is usually used through the convenience macro thread_local, defined in the header threads.h. The typedef specifier is formally listed as a storage-class specifier in the C language grammar, but it is used to declare type names and does not specify storage. Names at file scope that are const and not extern have external linkage in C (as the default for all file-scope declarations), but internal linkage in C++. Example #include <stdio.h> #include <stdlib.h> /* static storage duration */ int A; int main(void) { printf("&A = %p\n", (void*)&A); /* automatic storage duration */ int A = 1; // hides global A printf("&A = %p\n", (void*)&A); /* allocated storage duration */ int *ptr_1 = malloc(sizeof(int)); /* start allocated storage duration */ printf("address of int in allocated memory = %p\n", (void*)ptr_1); free(ptr_1); /* stop allocated storage duration */ } Possible output: &A = 0x600ae4 &A = 0x7ffefb064f5c address of int in allocated memory = 0x1f28c30 References C17 standard (ISO/IEC 9899:2018): 6.2.2 Linkages of identifiers (p: 29-30) 6.2.4 Storage durations of objects (p: 30) 6.7.1 Storage-class specifiers (p: 79) C11 standard (ISO/IEC 9899:2011): 6.2.2 Linkages of identifiers (p: 36-37) 6.2.4 Storage durations of objects (p: 38-39) 6.7.1 Storage-class specifiers (p: 109-110) C99 standard (ISO/IEC 9899:1999): 6.2.2 Linkages of identifiers (p: 30-31) 6.2.4 Storage durations of objects (p: 32) 6.7.1 Storage-class specifiers (p: 98-99) C89/C90 standard (ISO/IEC 9899:1990): 4094353475 Linkages of identifiers 4094353475 Storage durations of objects 3.5.1 Storage-class specifiers See also C++ documentation for Storage class specifiers
wp_get_scheduled_event( string $hook, array $args = array(), int|null $timestamp = null ): object|false Retrieve a scheduled event. Description Retrieve the full event object for a given event, if no timestamp is specified the next scheduled event is returned. Parameters $hook string Required Action hook of the event. $args array Optional Array containing each separate argument to pass to the hook's callback function. Although not passed to a callback, these arguments are used to uniquely identify the event, so they should be the same as those used when originally scheduling the event. Default: array() $timestamp int|null Optional Unix timestamp (UTC) of the event. If not specified, the next scheduled event is returned. Default: null Return object|false The event object. False if the event does not exist. Source File: wp-includes/cron.php. View all references function wp_get_scheduled_event( $hook, $args = array(), $timestamp = null ) { /** * Filter to preflight or hijack retrieving a scheduled event. * * Returning a non-null value will short-circuit the normal process, * returning the filtered value instead. * * Return false if the event does not exist, otherwise an event object * should be returned. * * @since 5.1.0 * * @param null|false|object $pre Value to return instead. Default null to continue retrieving the event. * @param string $hook Action hook of the event. * @param array $args Array containing each separate argument to pass to the hook's callback function. * Although not passed to a callback, these arguments are used to uniquely identify * the event. * @param int|null $timestamp Unix timestamp (UTC) of the event. Null to retrieve next scheduled event. */ $pre = apply_filters( 'pre_get_scheduled_event', null, $hook, $args, $timestamp ); if ( null !== $pre ) { return $pre; } if ( null !== $timestamp && ! is_numeric( $timestamp ) ) { return false; } $crons = _get_cron_array(); if ( empty( $crons ) ) { return false; } $key = md5( serialize( $args ) ); if ( ! $timestamp ) { // Get next event. $next = false; foreach ( $crons as $timestamp => $cron ) { if ( isset( $cron[ $hook ][ $key ] ) ) { $next = $timestamp; break; } } if ( ! $next ) { return false; } $timestamp = $next; } elseif ( ! isset( $crons[ $timestamp ][ $hook ][ $key ] ) ) { return false; } $event = (object) array( 'hook' => $hook, 'timestamp' => $timestamp, 'schedule' => $crons[ $timestamp ][ $hook ][ $key ]['schedule'], 'args' => $args, ); if ( isset( $crons[ $timestamp ][ $hook ][ $key ]['interval'] ) ) { $event->interval = $crons[ $timestamp ][ $hook ][ $key ]['interval']; } return $event; } Hooks apply_filters( 'pre_get_scheduled_event', null|false|object $pre, string $hook, array $args, int|null $timestamp ) Filter to preflight or hijack retrieving a scheduled event. Related Uses Uses Description _get_cron_array() wp-includes/cron.php Retrieve cron info array option. apply_filters() wp-includes/plugin.php Calls the callback functions that have been added to a filter hook. Used By Used By Description wp_reschedule_event() wp-includes/cron.php Reschedules a recurring event. wp_next_scheduled() wp-includes/cron.php Retrieve the next timestamp for an event. wp_get_schedule() wp-includes/cron.php Retrieve the recurrence schedule for an event. Changelog Version Description 5.1.0 Introduced.
Merging New XtraDB Releases (obsolete) Note: This page is obsolete. The information is old, outdated, or otherwise currently incorrect. We are keeping the page for historical reasons only. Do not rely on the information in this article. Background Percona used to maintain XtraDB as a patch series against the InnoDB plugin. This affected how we started merging XtraDB in. Now Percona maintains a normal source repository on launchpad (lp:percona-server). But we continue to merge the old way to preserve the history of our changes. Merging There used to be a lp:percona-xtradb tree, that we were merging from as: bzr merge lp:percona-xtradb Now we have to maintain our own XtraDB-5.5 repository to merge from. It is lp:~maria-captains/maria/xtradb-mergetree-5.5. Follow the procedures as described in Merging with a merge tree to merge from it. Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.
dart:js context top-level property JsObject context The JavaScript global object, usually window. Implementation external JsObject get context;
Interface Phalcon\Db\ResultInterface Source on GitHub Methods abstract public execute () ... abstract public fetch () ... abstract public fetchArray () ... abstract public fetchAll () ... abstract public numRows () ... abstract public dataSeek (mixed $number) ... abstract public setFetchMode (mixed $fetchMode) ... abstract public getInternalResult () ...
public function FileReadOnlyStorag8b7c:f320:99b9:690f:4595:cd17:293a:c069listAll public FileReadOnlyStorag8b7c:f320:99b9:690f:4595:cd17:293a:c069listAll() Lists all the files in the storage. Return value array Array of filenames. Overrides PhpStorageInter8b7c:f320:99b9:690f:4595:cd17:293a:c069listAll File core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php, line 85 Class FileReadOnlyStorage Reads code as regular PHP files, but won't write them. Namespace Drupal\Component\PhpStorage Code public function listAll() { $names = array(); if (file_exists($this->directory)) { foreach (new \DirectoryIterator($this->directory) as $fileinfo) { if (!$fileinfo->isDot()) { $name = $fileinfo->getFilename(); if ($name != '.htaccess') { $names[] = $name; } } } } return $names; }
dart:html offset property Float32List? offset Implementation Float32List? get offset native;
DecimalPipe pipe Transforms a number into a string, formatted according to locale rules that determine group sizing and separator, decimal-point character, and other locale-specific configurations. See more... {{ value_expression | number [ : digitsInfo [ : locale ] ] }} NgModule CommonModule Input value value any The number to be formatted. Parameters digitsInfo string Decimal representation options, specified by a string in the following format: {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}. minIntegerDigits: The minimum number of integer digits before the decimal point. Default is 1. minFractionDigits: The minimum number of digits after the decimal point. Default is 0. maxFractionDigits: The maximum number of digits after the decimal point. Default is 3. Optional. Default is undefined. locale string A locale code for the locale format rules to use. When not supplied, uses the value of LOCALE_ID, which is en-US by default. See Setting your app locale. Optional. Default is undefined. See also formatNumber() Description If no parameters are specified, the function rounds off to the nearest value using this rounding method. The behavior differs from that of the JavaScript Math.round() function. In the following case for example, the pipe rounds down where Math.round() rounds up: -2.5 | number:'1.0-0' > -3 Math.round(-2.5) > -2 Usage notes The following code shows how the pipe transforms numbers into text strings, according to various format specifications, where the caller's default locale is en-US. Example @Component({ selector: 'number-pipe', template: `<div> <!--output '2.718'--> <p>e (no formatting): {{e | number}}</p> <!--output '002.71828'--> <p>e (3.1-5): {{e | number:'3.1-5'}}</p> <!--output '0,002.71828'--> <p>e (4.5-5): {{e | number:'4.5-5'}}</p> <!--output '0 002,71828'--> <p>e (french): {{e | number:'4.5-5':'fr'}}</p> <!--output '3.14'--> <p>pi (no formatting): {{pi | number}}</p> <!--output '003.14'--> <p>pi (3.1-5): {{pi | number:'3.1-5'}}</p> <!--output '003.14000'--> <p>pi (3.5-5): {{pi | number:'3.5-5'}}</p> <!--output '-3' / unlike '-2' by Math.round()--> <p>-2.5 (1.0-0): {{-2.5 | number:'1.0-0'}}</p> </div>` }) export class NumberPipeComponent { pi: number = 3.14; e: number = 2.718281828459045; }
.ajaxStart() .ajaxStart( handler )Returns: jQuery Description: Register a handler to be called when the first Ajax request begins. This is an Ajax Event. version added: 1.0.ajaxStart( handler ) handler Type: Function() The function to be invoked. Whenever an Ajax request is about to be sent, jQuery checks whether there are any other outstanding Ajax requests. If none are in progress, jQuery triggers the ajaxStart event. Any and all handlers that have been registered with the .ajaxStart() method are executed at this time. To observe this method in action, set up a basic Ajax load request: <div class="trigger">Trigger</div> <div class="result"></div> <div class="log"></div> Attach the event handler to any element: $( document ).ajaxStart(function() { $( ".log" ).text( "Triggered ajaxStart handler." ); }); Now, make an Ajax request using any jQuery method: $( ".trigger" ).click(function() { $( ".result" ).load( "ajax/test.html" ); }); When the user clicks the element with class trigger and the Ajax request is sent, the log message is displayed. Additional Notes: As of jQuery 1.9, all the handlers for the jQuery global Ajax events, including those added with the .ajaxStart() method, must be attached to document. If $.ajax() or $.ajaxSetup() is called with the global option set to false, the .ajaxStart() method will not fire. Example: Show a loading message whenever an Ajax request starts (and none is already active). $( document ).ajaxStart(function() { $( "#loading" ).show(); });
public function CsrfTokenGenerator8b7c:f320:99b9:690f:4595:cd17:293a:c069get public CsrfTokenGenerator8b7c:f320:99b9:690f:4595:cd17:293a:c069get($value = '') Generates a token based on $value, the user session, and the private key. The generated token is based on the session of the current user. Normally, anonymous users do not have a session, so the generated token will be different on every page request. To generate a token for users without a session, manually start a session prior to calling this function. Parameters string $value: (optional) An additional value to base the token on. Return value string A 43-character URL-safe token for validation, based on the token seed, the hash salt provided by Settings8b7c:f320:99b9:690f:4595:cd17:293a:c069getHashSalt(), and the 'drupal_private_key' configuration variable. See also \Drupal\Core\Site\Settings8b7c:f320:99b9:690f:4595:cd17:293a:c069getHashSalt() \Symfony\Component\HttpFoundation\Session\SessionInter8b7c:f320:99b9:690f:4595:cd17:293a:c069start() File core/lib/Drupal/Core/Access/CsrfTokenGenerator.php, line 63 Class CsrfTokenGenerator Generates and validates CSRF tokens. Namespace Drupal\Core\Access Code public function get($value = '') { $seed = $this->sessionMetadata->getCsrfTokenSeed(); if (empty($seed)) { $seed = Crypt8b7c:f320:99b9:690f:4595:cd17:293a:c069randomBytesBase64(); $this->sessionMetadata->setCsrfTokenSeed($seed); } return $this->computeToken($seed, $value); }
dart:html removeRule method @DomName('CSSStyleSheet.removeRule') @DocsEditable() @Experimental() void removeRule(int index) Source @DomName('CSSStyleSheet.removeRule') @DocsEditable() @Experimental() // non-standard void removeRule(int index) => _blink.BlinkCSSStyleSheet.instance.removeRule_Callback_1_(this, index);
17.3 Trigonometry Octave provides the following trigonometric functions where angles are specified in radians. To convert from degrees to radians multiply by pi/180 or use the deg2rad function. For example, sin (30 * pi/180) returns the sine of 30 degrees. As an alternative, Octave provides a number of trigonometric functions which work directly on an argument specified in degrees. These functions are named after the base trigonometric function with a ‘d’ suffix. As an example, sin expects an angle in radians while sind expects an angle in degrees. Octave uses the C library trigonometric functions. It is expected that these functions are defined by the ISO/IEC 9899 Standard. This Standard is available at: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf. Section F.9.1 deals with the trigonometric functions. The behavior of most of the functions is relatively straightforward. However, there are some exceptions to the standard behavior. Many of the exceptions involve the behavior for -0. The most complex case is atan2. Octave exactly implements the behavior given in the Standard. Including atan2(+- 0, 0) returns +- pi. It should be noted that MATLAB uses different definitions which apparently do not distinguish -0. : rad = deg2rad (deg) ¶ Convert degrees to radians. The input deg must be a scalar, vector, or N-dimensional array of double or single floating point values. deg may be complex in which case the real and imaginary components are converted separately. The output rad is the same size and shape as deg with degrees converted to radians using the conversion constant pi/180. Example: deg2rad ([0, 90, 180, 270, 360]) ⇒ 0.00000 1.57080 3.14159 4.71239 6.28319 See also: rad2deg. : deg = rad2deg (rad) ¶ Convert radians to degrees. The input rad must be a scalar, vector, or N-dimensional array of double or single floating point values. rad may be complex in which case the real and imaginary components are converted separately. The output deg is the same size and shape as rad with radians converted to degrees using the conversion constant 180/pi. Example: rad2deg ([0, pi/2, pi, 3/2*pi, 2*pi]) ⇒ 0 90 180 270 360 See also: deg2rad. : sin (x) ¶ Compute the sine for each element of x in radians. See also: asin, sind, sinh. : cos (x) ¶ Compute the cosine for each element of x in radians. See also: acos, cosd, cosh. : tan (z) ¶ Compute the tangent for each element of x in radians. See also: atan, tand, tanh. : sec (x) ¶ Compute the secant for each element of x in radians. See also: asec, secd, sech. : csc (x) ¶ Compute the cosecant for each element of x in radians. See also: acsc, cscd, csch. : cot (x) ¶ Compute the cotangent for each element of x in radians. See also: acot, cotd, coth. : asin (x) ¶ Compute the inverse sine in radians for each element of x. See also: sin, asind. : acos (x) ¶ Compute the inverse cosine in radians for each element of x. See also: cos, acosd. : atan (x) ¶ Compute the inverse tangent in radians for each element of x. See also: tan, atand. : asec (x) ¶ Compute the inverse secant in radians for each element of x. See also: sec, asecd. : acsc (x) ¶ Compute the inverse cosecant in radians for each element of x. See also: csc, acscd. : acot (x) ¶ Compute the inverse cotangent in radians for each element of x. See also: cot, acotd. : sinh (x) ¶ Compute the hyperbolic sine for each element of x. See also: asinh, cosh, tanh. : cosh (x) ¶ Compute the hyperbolic cosine for each element of x. See also: acosh, sinh, tanh. : tanh (x) ¶ Compute hyperbolic tangent for each element of x. See also: atanh, sinh, cosh. : sech (x) ¶ Compute the hyperbolic secant of each element of x. See also: asech. : csch (x) ¶ Compute the hyperbolic cosecant of each element of x. See also: acsch. : coth (x) ¶ Compute the hyperbolic cotangent of each element of x. See also: acoth. : asinh (x) ¶ Compute the inverse hyperbolic sine for each element of x. See also: sinh. : acosh (x) ¶ Compute the inverse hyperbolic cosine for each element of x. See also: cosh. : atanh (x) ¶ Compute the inverse hyperbolic tangent for each element of x. See also: tanh. : asech (x) ¶ Compute the inverse hyperbolic secant of each element of x. See also: sech. : acsch (x) ¶ Compute the inverse hyperbolic cosecant of each element of x. See also: csch. : acoth (x) ¶ Compute the inverse hyperbolic cotangent of each element of x. See also: coth. : atan2 (y, x) ¶ Compute atan (y / x) for corresponding elements of y and x. y and x must match in size and orientation. The signs of elements of y and x are used to determine the quadrants of each resulting value. This function is equivalent to arg (complex (x, y)). See also: tan, tand, tanh, atanh. Octave provides the following trigonometric functions where angles are specified in degrees. These functions produce true zeros at the appropriate intervals rather than the small round-off error that occurs when using radians. For example: cosd (90) ⇒ 0 cos (pi/2) ⇒ 6.1230e-17 : sind (x) ¶ Compute the sine for each element of x in degrees. The function is more accurate than sin for large values of x and for multiples of 180 degrees (x/180 is an integer) where sind returns 0 rather than a small value on the order of eps. See also: asind, sin. : cosd (x) ¶ Compute the cosine for each element of x in degrees. The function is more accurate than cos for large values of x and for multiples of 90 degrees (x = 90 + 180*n with n an integer) where cosd returns 0 rather than a small value on the order of eps. See also: acosd, cos. : tand (x) ¶ Compute the tangent for each element of x in degrees. Returns zero for elements where x/180 is an integer and Inf for elements where (x-90)/180 is an integer. See also: atand, tan. : secd (x) ¶ Compute the secant for each element of x in degrees. See also: asecd, sec. : cscd (x) ¶ Compute the cosecant for each element of x in degrees. See also: acscd, csc. : cotd (x) ¶ Compute the cotangent for each element of x in degrees. See also: acotd, cot. : asind (x) ¶ Compute the inverse sine in degrees for each element of x. See also: sind, asin. : acosd (x) ¶ Compute the inverse cosine in degrees for each element of x. See also: cosd, acos. : atand (x) ¶ Compute the inverse tangent in degrees for each element of x. See also: tand, atan. : atan2d (y, x) ¶ Compute atan (y / x) in degrees for corresponding elements from y and x. See also: tand, atan2. : asecd (x) ¶ Compute the inverse secant in degrees for each element of x. See also: secd, asec. : acscd (x) ¶ Compute the inverse cosecant in degrees for each element of x. See also: cscd, acsc. : acotd (x) ¶ Compute the inverse cotangent in degrees for each element of x. See also: cotd, acot. Finally, there are two trigonometric functions that calculate special arguments with increased accuracy. : y = sinpi (x) ¶ Compute sine (x * pi) for each element of x accurately. The ordinary sin function uses IEEE floating point numbers and may produce results that are very close (within a few eps) of the correct value, but which are not exact. The sinpi function is more accurate and returns 0 exactly for integer values of x and +1/-1 for half-integer values (e.g., …, -3/2, -1/2, 1/2, 3/2, …). Example comparison of sin and sinpi for integer values of x sin ([0, 1, 2, 3] * pi) ⇒ 0 1.2246e-16 -2.4493e-16 3.6739e-16 sinpi ([0, 1, 2, 3]) ⇒ 0 0 0 0 See also: cospi, sin. : y = cospi (x) ¶ Compute cosine (x * pi) for each element of x accurately. The ordinary cos function uses IEEE floating point numbers and may produce results that are very close (within a few eps) of the correct value, but which are not exact. The cospi function is more accurate and returns 0 exactly for half-integer values of x (e.g., …, -3/2, -1/2, 1/2, 3/2, …), and +1/-1 for integer values. Example comparison of cos and cospi for half-integer values of x cos ([-3/2, -1/2, 1/2, 3/2] * pi) ⇒ -1.8370e-16 6.1232e-17 6.1232e-17 -1.8370e-16 cospi ([-3/2, -1/2, 1/2, 3/2]) ⇒ 0 0 0 0 See also: sinpi, cos.
tf.compat.v1.reduce_any Computes tf.math.logical_or of elements across dimensions of a tensor. (deprecated arguments) View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.math.reduce_any tf.compat.v1.reduce_any( input_tensor, axis=None, keepdims=None, name=None, reduction_indices=None, keep_dims=None ) Deprecated: SOME ARGUMENTS ARE DEPRECATED: (keep_dims). They will be removed in a future version. Instructions for updating: keep_dims is deprecated, use keepdims instead This is the reduction operation for the elementwise tf.math.logical_or op. Reduces input_tensor along the dimensions given in axis. Unless keepdims is true, the rank of the tensor is reduced by 1 for each of the entries in axis, which must be unique. If keepdims is true, the reduced dimensions are retained with length 1. If axis is None, all dimensions are reduced, and a tensor with a single element is returned. For example: x = tf.constant([[True, True], [False, False]]) tf.reduce_any(x) <tf.Tensor: shape=(), dtype=bool, numpy=True> tf.reduce_any(x, 0) <tf.Tensor: shape=(2,), dtype=bool, numpy=array([ True, True])> tf.reduce_any(x, 1) <tf.Tensor: shape=(2,), dtype=bool, numpy=array([ True, False])> Args input_tensor The boolean tensor to reduce. axis The dimensions to reduce. If None (the default), reduces all dimensions. Must be in the range [-rank(input_tensor), rank(input_tensor)). keepdims If true, retains reduced dimensions with length 1. name A name for the operation (optional). reduction_indices The old (deprecated) name for axis. keep_dims Deprecated alias for keepdims. Returns The reduced tensor. numpy compatibility Equivalent to np.any
Interface TableSchemaInterface Defines the interface for getting the schema. Direct Implementers Cake\TestSuite\Fixture\TestFixture Namespace: Cake\Datasource Location: Datasource/TableSchemaInterface.php Method Summary schema() public Get and set the schema for this fixture. Method Detail schema()source public schema( Cake\Database\Schema\Table $schema null ) Get and set the schema for this fixture. Parameters Cake\Database\Schema\Table $schema optional null The table to set. Returns Cake\Database\Schema\Table|null
Struct st8b7c:f320:99b9:690f:4595:cd17:293a:c069sim8b7c:f320:99b9:690f:4595:cd17:293a:c069Simd #[repr(simd)]pub struct Simd<T, const LANES: usize>(_)where T: SimdElement, LaneCount<LANES>: SupportedLaneCount; 🔬This is a nightly-only experimental API. (portable_simd #86656) A SIMD vector of LANES elements of type T. Simd<T, N> has the same shape as [T; N], but operates like T. Two vectors of the same type and length will, by convention, support the operators (+, *, etc.) that T does. These take the lanes at each index on the left-hand side and right-hand side, perform the operation, and return the result in the same lane in a vector of equal size. For a given operator, this is equivalent to zipping the two arrays together and mapping the operator over each lane. let a0: [i32; 4] = [-2, 0, 2, 4]; let a1 = [10, 9, 8, 7]; let zm_add = a0.zip(a1).map(|(lhs, rhs)| lhs + rhs); let zm_mul = a0.zip(a1).map(|(lhs, rhs)| lhs * rhs); // `Simd<T, N>` implements `From<[T; N]> let (v0, v1) = (Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from(a0), Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from(a1)); // Which means arrays implement `Into<Simd<T, N>>`. assert_eq!(v0 + v1, zm_add.into()); assert_eq!(v0 * v1, zm_mul.into()); Simd with integers has the quirk that these operations are also inherently wrapping, as if T was Wrapping<T>. Thus, Simd does not implement wrapping_add, because that is the default behavior. This means there is no warning on overflows, even in “debug” builds. For most applications where Simd is appropriate, it is “not a bug” to wrap, and even “debug builds” are unlikely to tolerate the loss of performance. You may want to consider using explicitly checked arithmetic if such is required. Division by zero still causes a panic, so you may want to consider using floating point numbers if that is unacceptable. Layout Simd<T, N> has a layout similar to [T; N] (identical “shapes”), but with a greater alignment. [T; N] is aligned to T, but Simd<T, N> will have an alignment based on both T and N. It is thus sound to transmute Simd<T, N> to [T; N], and will typically optimize to zero cost, but the reverse transmutation is more likely to require a copy the compiler cannot simply elide. ABI “Features” Due to Rust’s safety guarantees, Simd<T, N> is currently passed to and from functions via memory, not SIMD registers, except as an optimization. #[inline] hints are recommended on functions that accept Simd<T, N> or return it. The need for this may be corrected in the future. Safe SIMD with Unsafe Rust Operations with Simd are typically safe, but there are many reasons to want to combine SIMD with unsafe code. Care must be taken to respect differences between Simd and other types it may be transformed into or derived from. In particular, the layout of Simd<T, N> may be similar to [T; N], and may allow some transmutations, but references to [T; N] are not interchangeable with those to Simd<T, N>. Thus, when using unsafe Rust to read and write Simd<T, N> through raw pointers, it is a good idea to first try with read_unaligned and write_unaligned. This is because: read and write require full alignment (in this case, Simd<T, N>’s alignment) the likely source for reading or destination for writing Simd<T, N> is [T] and similar types, aligned to T combining these actions would violate the unsafe contract and explode the program into a puff of undefined behavior the compiler can implicitly adjust layouts to make unaligned reads or writes fully aligned if it sees the optimization most contemporary processors suffer no performance penalty for “unaligned” reads and writes that are aligned at runtime By imposing less obligations, unaligned functions are less likely to make the program unsound, and may be just as fast as stricter alternatives. When trying to guarantee alignment, [T]8b7c:f320:99b9:690f:4595:cd17:293a:c069s_simd is an option for converting [T] to [Simd<T, N>], and allows soundly operating on an aligned SIMD body, but it may cost more time when handling the scalar head and tail. If these are not sufficient, then it is most ideal to design data structures to be already aligned to the Simd<T, N> you wish to use before using unsafe Rust to read or write. More conventional ways to compensate for these facts, like materializing Simd to or from an array first, are handled by safe methods like Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array and Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_slice. Implementations sourceimpl<T, const LANES: usize> Simd<T, LANES>where T: SimdElement, LaneCount<LANES>: SupportedLaneCount, sourcepub fn reverse(self) -> Simd<T, LANES> 🔬This is a nightly-only experimental API. (portable_simd #86656) Reverse the order of the lanes in the vector. sourcepub fn rotate_lanes_left<const OFFSET: usize>(self) -> Simd<T, LANES> 🔬This is a nightly-only experimental API. (portable_simd #86656) Rotates the vector such that the first OFFSET elements of the slice move to the end while the last LANES - OFFSET elements move to the front. After calling rotate_lanes_left, the element previously in lane OFFSET will become the first element in the slice. sourcepub fn rotate_lanes_right<const OFFSET: usize>(self) -> Simd<T, LANES> 🔬This is a nightly-only experimental API. (portable_simd #86656) Rotates the vector such that the first LANES - OFFSET elements of the vector move to the end while the last OFFSET elements move to the front. After calling rotate_lanes_right, the element previously at index LANES - OFFSET will become the first element in the slice. sourcepub fn interleave( self, other: Simd<T, LANES>) -> (Simd<T, LANES>, Simd<T, LANES>) 🔬This is a nightly-only experimental API. (portable_simd #86656) Interleave two vectors. Produces two vectors with lanes taken alternately from self and other. The first result contains the first LANES / 2 lanes from self and other, alternating, starting with the first lane of self. The second result contains the last LANES / 2 lanes from self and other, alternating, starting with the lane LANES / 2 from the start of self. #![feature(portable_simd)] let a = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([0, 1, 2, 3]); let b = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([4, 5, 6, 7]); let (x, y) = a.interleave(b); assert_eq!(x.to_array(), [0, 4, 1, 5]); assert_eq!(y.to_array(), [2, 6, 3, 7]); sourcepub fn deinterleave( self, other: Simd<T, LANES>) -> (Simd<T, LANES>, Simd<T, LANES>) 🔬This is a nightly-only experimental API. (portable_simd #86656) Deinterleave two vectors. The first result takes every other lane of self and then other, starting with the first lane. The second result takes every other lane of self and then other, starting with the second lane. #![feature(portable_simd)] let a = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([0, 4, 1, 5]); let b = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([2, 6, 3, 7]); let (x, y) = a.deinterleave(b); assert_eq!(x.to_array(), [0, 1, 2, 3]); assert_eq!(y.to_array(), [4, 5, 6, 7]); sourceimpl<T, const LANES: usize> Simd<T, LANES>where T: SimdElement, LaneCount<LANES>: SupportedLaneCount, sourcepub const LANES: usize = LANES 🔬This is a nightly-only experimental API. (portable_simd #86656) Number of lanes in this vector. sourcepub const fn lanes(&self) -> usize 🔬This is a nightly-only experimental API. (portable_simd #86656) Returns the number of lanes in this SIMD vector. Examples let v = u32x8b7c:f320:99b9:690f:4595:cd17:293a:c069splat(0); assert_eq!(v.lanes(), 4); sourcepub fn splat(value: T) -> Simd<T, LANES> 🔬This is a nightly-only experimental API. (portable_simd #86656) Constructs a new SIMD vector with all lanes set to the given value. Examples let v = u32x8b7c:f320:99b9:690f:4595:cd17:293a:c069splat(8); assert_eq!(v.as_array(), &[8, 8, 8, 8]); sourcepub const fn as_array(&self) -> &[T; LANES] 🔬This is a nightly-only experimental API. (portable_simd #86656) Returns an array reference containing the entire SIMD vector. Examples let v: u64x4 = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([0, 1, 2, 3]); assert_eq!(v.as_array(), &[0, 1, 2, 3]); sourcepub fn as_mut_array(&mut self) -> &mut [T; LANES] 🔬This is a nightly-only experimental API. (portable_simd #86656) Returns a mutable array reference containing the entire SIMD vector. sourcepub const fn from_array(array: [T; LANES]) -> Simd<T, LANES> 🔬This is a nightly-only experimental API. (portable_simd #86656) Converts an array to a SIMD vector. sourcepub const fn to_array(self) -> [T; LANES] 🔬This is a nightly-only experimental API. (portable_simd #86656) Converts a SIMD vector to an array. sourcepub const fn from_slice(slice: &[T]) -> Simd<T, LANES> 🔬This is a nightly-only experimental API. (portable_simd #86656) Converts a slice to a SIMD vector containing slice[..LANES]. Panics Panics if the slice’s length is less than the vector’s Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069LANES. Examples let source = vec![1, 2, 3, 4, 5, 6]; let v = u32x8b7c:f320:99b9:690f:4595:cd17:293a:c069from_slice(&source); assert_eq!(v.as_array(), &[1, 2, 3, 4]); sourcepub fn cast<U>(self) -> Simd<U, LANES>where U: SimdElement, 🔬This is a nightly-only experimental API. (portable_simd #86656) Performs lanewise conversion of a SIMD vector’s elements to another SIMD-valid type. This follows the semantics of Rust’s as conversion for casting integers to unsigned integers (interpreting as the other type, so -1 to MAX), and from floats to integers (truncating, or saturating at the limits) for each lane, or vice versa. Examples let floats: Simd<f32, 4> = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([1.9, -4.5, 8b7c:f320:99b9:690f:4595:cd17:293a:c069INFINITY, 8b7c:f320:99b9:690f:4595:cd17:293a:c069NAN]); let ints = floats.cast8b7c:f320:99b9:690f:4595:cd17:293a:c069<i32>(); assert_eq!(ints, Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([1, -4, i8b7c:f320:99b9:690f:4595:cd17:293a:c069MAX, 0])); // Formally equivalent, but `Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069cast` can optimize better. assert_eq!(ints, Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array(floats.to_array().map(|x| x as i32))); // The float conversion does not round-trip. let floats_again = ints.cast(); assert_ne!(floats, floats_again); assert_eq!(floats_again, Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([1.0, -4.0, 442-315-3384.0, 0.0])); sourcepub unsafe fn to_int_unchecked<I>(self) -> Simd<I, LANES>where T: FloatToInt<I>, I: SimdElement, 🔬This is a nightly-only experimental API. (portable_simd #86656) Rounds toward zero and converts to the same-width integer type, assuming that the value is finite and fits in that type. Safety The value must: Not be NaN Not be infinite Be representable in the return type, after truncating off its fractional part If these requirements are infeasible or costly, consider using the safe function cast, which saturates on conversion. sourcepub fn gather_or( slice: &[T], idxs: Simd<usize, LANES>, or: Simd<T, LANES>) -> Simd<T, LANES> 🔬This is a nightly-only experimental API. (portable_simd #86656) Reads from potentially discontiguous indices in slice to construct a SIMD vector. If an index is out-of-bounds, the lane is instead selected from the or vector. Examples let vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18]; let idxs = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([9, 3, 0, 5]); let alt = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([-5, -4, -3, -2]); let result = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069gather_or(&vec, idxs, alt); // Note the lane that is out-of-bounds. assert_eq!(result, Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([-5, 13, 10, 15])); sourcepub fn gather_or_default(slice: &[T], idxs: Simd<usize, LANES>) -> Simd<T, LANES>where T: Default, 🔬This is a nightly-only experimental API. (portable_simd #86656) Reads from potentially discontiguous indices in slice to construct a SIMD vector. If an index is out-of-bounds, the lane is set to the default value for the type. Examples let vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18]; let idxs = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([9, 3, 0, 5]); let result = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069gather_or_default(&vec, idxs); // Note the lane that is out-of-bounds. assert_eq!(result, Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([0, 13, 10, 15])); sourcepub fn gather_select( slice: &[T], enable: Mask<isize, LANES>, idxs: Simd<usize, LANES>, or: Simd<T, LANES>) -> Simd<T, LANES> 🔬This is a nightly-only experimental API. (portable_simd #86656) Reads from potentially discontiguous indices in slice to construct a SIMD vector. The mask enables all true lanes and disables all false lanes. If an index is disabled or is out-of-bounds, the lane is selected from the or vector. Examples let vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18]; let idxs = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([9, 3, 0, 5]); let alt = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([-5, -4, -3, -2]); let enable = Mask8b7c:f320:99b9:690f:4595:cd17:293a:c069rom_array([true, true, true, false]); // Note the mask of the last lane. let result = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069gather_select(&vec, enable, idxs, alt); // Note the lane that is out-of-bounds. assert_eq!(result, Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([-5, 13, 10, -2])); sourcepub unsafe fn gather_select_unchecked( slice: &[T], enable: Mask<isize, LANES>, idxs: Simd<usize, LANES>, or: Simd<T, LANES>) -> Simd<T, LANES> 🔬This is a nightly-only experimental API. (portable_simd #86656) Reads from potentially discontiguous indices in slice to construct a SIMD vector. The mask enables all true lanes and disables all false lanes. If an index is disabled, the lane is selected from the or vector. Safety Calling this function with an enabled out-of-bounds index is undefined behavior even if the resulting value is not used. Examples let vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18]; let idxs = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([9, 3, 0, 5]); let alt = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([-5, -4, -3, -2]); let enable = Mask8b7c:f320:99b9:690f:4595:cd17:293a:c069rom_array([true, true, true, false]); // Note the final mask lane. // If this mask was used to gather, it would be unsound. Let's fix that. let enable = enable & idxs.simd_lt(Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069splat(vec.len())); // We have masked the OOB lane, so it's safe to gather now. let result = unsafe { Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069gather_select_unchecked(&vec, enable, idxs, alt) }; assert_eq!(result, Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([-5, 13, 10, -2])); sourcepub fn scatter(self, slice: &mut [T], idxs: Simd<usize, LANES>) 🔬This is a nightly-only experimental API. (portable_simd #86656) Writes the values in a SIMD vector to potentially discontiguous indices in slice. If two lanes in the scattered vector would write to the same index only the last lane is guaranteed to actually be written. Examples let mut vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18]; let idxs = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([9, 3, 0, 0]); let vals = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([-27, 82, -41, 124]); vals.scatter(&mut vec, idxs); // index 0 receives two writes. assert_eq!(vec, vec![124, 11, 12, 82, 14, 15, 16, 17, 18]); sourcepub fn scatter_select( self, slice: &mut [T], enable: Mask<isize, LANES>, idxs: Simd<usize, LANES>) 🔬This is a nightly-only experimental API. (portable_simd #86656) Writes the values in a SIMD vector to multiple potentially discontiguous indices in slice. The mask enables all true lanes and disables all false lanes. If an enabled index is out-of-bounds, the lane is not written. If two enabled lanes in the scattered vector would write to the same index, only the last lane is guaranteed to actually be written. Examples let mut vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18]; let idxs = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([9, 3, 0, 0]); let vals = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([-27, 82, -41, 124]); let enable = Mask8b7c:f320:99b9:690f:4595:cd17:293a:c069rom_array([true, true, true, false]); // Note the mask of the last lane. vals.scatter_select(&mut vec, enable, idxs); // index 0's second write is masked, thus omitted. assert_eq!(vec, vec![-41, 11, 12, 82, 14, 15, 16, 17, 18]); sourcepub unsafe fn scatter_select_unchecked( self, slice: &mut [T], enable: Mask<isize, LANES>, idxs: Simd<usize, LANES>) 🔬This is a nightly-only experimental API. (portable_simd #86656) Writes the values in a SIMD vector to multiple potentially discontiguous indices in slice. The mask enables all true lanes and disables all false lanes. If two enabled lanes in the scattered vector would write to the same index, only the last lane is guaranteed to actually be written. Safety Calling this function with an enabled out-of-bounds index is undefined behavior, and may lead to memory corruption. Examples let mut vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18]; let idxs = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([9, 3, 0, 0]); let vals = Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069from_array([-27, 82, -41, 124]); let enable = Mask8b7c:f320:99b9:690f:4595:cd17:293a:c069rom_array([true, true, true, false]); // Note the mask of the last lane. // If this mask was used to scatter, it would be unsound. Let's fix that. let enable = enable & idxs.simd_lt(Sim8b7c:f320:99b9:690f:4595:cd17:293a:c069splat(vec.len())); // We have masked the OOB lane, so it's safe to scatter now. unsafe { vals.scatter_select_unchecked(&mut vec, enable, idxs); } // index 0's second write is masked, thus was omitted. assert_eq!(vec, vec![-41, 11, 12, 82, 14, 15, 16, 17, 18]); Trait Implementations sourceimpl<'lhs, 'rhs, T, const LANES: usize> Add<&'rhs Simd<T, LANES>> for &'lhs Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Add<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as Add<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the + operator. sourcefn add( self, rhs: &Simd<T, LANES>) -> <&'lhs Simd<T, LANES> as Add<&'rhs Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<T, const LANES: usize> Add<&Simd<T, LANES>> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Add<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as Add<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the + operator. sourcefn add( self, rhs: &Simd<T, LANES>) -> <Simd<T, LANES> as Add<&Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<T, const LANES: usize> Add<Simd<T, LANES>> for &Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Add<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as Add<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the + operator. sourcefn add( self, rhs: Simd<T, LANES>) -> <&Simd<T, LANES> as Add<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<const N: usize> Add<Simd<f32, N>> for Simd<f32, N>where f32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<f32, N>The resulting type after applying the + operator. sourcefn add(self, rhs: Simd<f32, N>) -> <Simd<f32, N> as Add<Simd<f32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<const N: usize> Add<Simd<f64, N>> for Simd<f64, N>where f64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<f64, N>The resulting type after applying the + operator. sourcefn add(self, rhs: Simd<f64, N>) -> <Simd<f64, N> as Add<Simd<f64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<const N: usize> Add<Simd<i16, N>> for Simd<i16, N>where i16: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i16, N>The resulting type after applying the + operator. sourcefn add(self, rhs: Simd<i16, N>) -> <Simd<i16, N> as Add<Simd<i16, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<const N: usize> Add<Simd<i32, N>> for Simd<i32, N>where i32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i32, N>The resulting type after applying the + operator. sourcefn add(self, rhs: Simd<i32, N>) -> <Simd<i32, N> as Add<Simd<i32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<const N: usize> Add<Simd<i64, N>> for Simd<i64, N>where i64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i64, N>The resulting type after applying the + operator. sourcefn add(self, rhs: Simd<i64, N>) -> <Simd<i64, N> as Add<Simd<i64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<const N: usize> Add<Simd<i8, N>> for Simd<i8, N>where i8: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i8, N>The resulting type after applying the + operator. sourcefn add(self, rhs: Simd<i8, N>) -> <Simd<i8, N> as Add<Simd<i8, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<const N: usize> Add<Simd<isize, N>> for Simd<isize, N>where isize: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<isize, N>The resulting type after applying the + operator. sourcefn add( self, rhs: Simd<isize, N>) -> <Simd<isize, N> as Add<Simd<isize, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<const N: usize> Add<Simd<u16, N>> for Simd<u16, N>where u16: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u16, N>The resulting type after applying the + operator. sourcefn add(self, rhs: Simd<u16, N>) -> <Simd<u16, N> as Add<Simd<u16, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<const N: usize> Add<Simd<u32, N>> for Simd<u32, N>where u32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u32, N>The resulting type after applying the + operator. sourcefn add(self, rhs: Simd<u32, N>) -> <Simd<u32, N> as Add<Simd<u32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<const N: usize> Add<Simd<u64, N>> for Simd<u64, N>where u64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u64, N>The resulting type after applying the + operator. sourcefn add(self, rhs: Simd<u64, N>) -> <Simd<u64, N> as Add<Simd<u64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<const N: usize> Add<Simd<u8, N>> for Simd<u8, N>where u8: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u8, N>The resulting type after applying the + operator. sourcefn add(self, rhs: Simd<u8, N>) -> <Simd<u8, N> as Add<Simd<u8, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<const N: usize> Add<Simd<usize, N>> for Simd<usize, N>where usize: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<usize, N>The resulting type after applying the + operator. sourcefn add( self, rhs: Simd<usize, N>) -> <Simd<usize, N> as Add<Simd<usize, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the + operation. Read more sourceimpl<T, U, const LANES: usize> AddAssign<U> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Add<U>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as Add<U>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, sourcefn add_assign(&mut self, rhs: U)Performs the += operation. Read more sourceimpl<T, const LANES: usize> AsMut<[T; LANES]> for Simd<T, LANES>where T: SimdElement, LaneCount<LANES>: SupportedLaneCount, sourcefn as_mut(&mut self) -> &mut [T; LANES]Converts this type into a mutable reference of the (usually inferred) input type. sourceimpl<T, const LANES: usize> AsMut<[T]> for Simd<T, LANES>where T: SimdElement, LaneCount<LANES>: SupportedLaneCount, sourcefn as_mut(&mut self) -> &mut [T]Notable traits for &[u8]impl Read for &[u8] impl Write for &mut [u8] Converts this type into a mutable reference of the (usually inferred) input type. sourceimpl<T, const LANES: usize> AsRef<[T; LANES]> for Simd<T, LANES>where T: SimdElement, LaneCount<LANES>: SupportedLaneCount, sourcefn as_ref(&self) -> &[T; LANES]Converts this type into a shared reference of the (usually inferred) input type. sourceimpl<T, const LANES: usize> AsRef<[T]> for Simd<T, LANES>where T: SimdElement, LaneCount<LANES>: SupportedLaneCount, sourcefn as_ref(&self) -> &[T]Notable traits for &[u8]impl Read for &[u8] impl Write for &mut [u8] Converts this type into a shared reference of the (usually inferred) input type. sourceimpl<T, const LANES: usize> Binary for Simd<T, LANES>where T: SimdElement + Binary, LaneCount<LANES>: SupportedLaneCount, sourcefn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>Formats the value using the given formatter. sourceimpl<'lhs, 'rhs, T, const LANES: usize> BitAnd<&'rhs Simd<T, LANES>> for &'lhs Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: BitAnd<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as BitAnd<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the & operator. sourcefn bitand( self, rhs: &Simd<T, LANES>) -> <&'lhs Simd<T, LANES> as BitAnd<&'rhs Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<T, const LANES: usize> BitAnd<&Simd<T, LANES>> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: BitAnd<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as BitAnd<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the & operator. sourcefn bitand( self, rhs: &Simd<T, LANES>) -> <Simd<T, LANES> as BitAnd<&Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<T, const LANES: usize> BitAnd<Simd<T, LANES>> for &Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: BitAnd<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as BitAnd<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the & operator. sourcefn bitand( self, rhs: Simd<T, LANES>) -> <&Simd<T, LANES> as BitAnd<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<const N: usize> BitAnd<Simd<i16, N>> for Simd<i16, N>where i16: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i16, N>The resulting type after applying the & operator. sourcefn bitand( self, rhs: Simd<i16, N>) -> <Simd<i16, N> as BitAnd<Simd<i16, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<const N: usize> BitAnd<Simd<i32, N>> for Simd<i32, N>where i32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i32, N>The resulting type after applying the & operator. sourcefn bitand( self, rhs: Simd<i32, N>) -> <Simd<i32, N> as BitAnd<Simd<i32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<const N: usize> BitAnd<Simd<i64, N>> for Simd<i64, N>where i64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i64, N>The resulting type after applying the & operator. sourcefn bitand( self, rhs: Simd<i64, N>) -> <Simd<i64, N> as BitAnd<Simd<i64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<const N: usize> BitAnd<Simd<i8, N>> for Simd<i8, N>where i8: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i8, N>The resulting type after applying the & operator. sourcefn bitand(self, rhs: Simd<i8, N>) -> <Simd<i8, N> as BitAnd<Simd<i8, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<const N: usize> BitAnd<Simd<isize, N>> for Simd<isize, N>where isize: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<isize, N>The resulting type after applying the & operator. sourcefn bitand( self, rhs: Simd<isize, N>) -> <Simd<isize, N> as BitAnd<Simd<isize, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<const N: usize> BitAnd<Simd<u16, N>> for Simd<u16, N>where u16: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u16, N>The resulting type after applying the & operator. sourcefn bitand( self, rhs: Simd<u16, N>) -> <Simd<u16, N> as BitAnd<Simd<u16, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<const N: usize> BitAnd<Simd<u32, N>> for Simd<u32, N>where u32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u32, N>The resulting type after applying the & operator. sourcefn bitand( self, rhs: Simd<u32, N>) -> <Simd<u32, N> as BitAnd<Simd<u32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<const N: usize> BitAnd<Simd<u64, N>> for Simd<u64, N>where u64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u64, N>The resulting type after applying the & operator. sourcefn bitand( self, rhs: Simd<u64, N>) -> <Simd<u64, N> as BitAnd<Simd<u64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<const N: usize> BitAnd<Simd<u8, N>> for Simd<u8, N>where u8: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u8, N>The resulting type after applying the & operator. sourcefn bitand(self, rhs: Simd<u8, N>) -> <Simd<u8, N> as BitAnd<Simd<u8, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<const N: usize> BitAnd<Simd<usize, N>> for Simd<usize, N>where usize: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<usize, N>The resulting type after applying the & operator. sourcefn bitand( self, rhs: Simd<usize, N>) -> <Simd<usize, N> as BitAnd<Simd<usize, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the & operation. Read more sourceimpl<T, U, const LANES: usize> BitAndAssign<U> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: BitAnd<U>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as BitAnd<U>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, sourcefn bitand_assign(&mut self, rhs: U)Performs the &= operation. Read more sourceimpl<'lhs, 'rhs, T, const LANES: usize> BitOr<&'rhs Simd<T, LANES>> for &'lhs Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: BitOr<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as BitOr<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the | operator. sourcefn bitor( self, rhs: &Simd<T, LANES>) -> <&'lhs Simd<T, LANES> as BitOr<&'rhs Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<T, const LANES: usize> BitOr<&Simd<T, LANES>> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: BitOr<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as BitOr<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the | operator. sourcefn bitor( self, rhs: &Simd<T, LANES>) -> <Simd<T, LANES> as BitOr<&Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<T, const LANES: usize> BitOr<Simd<T, LANES>> for &Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: BitOr<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as BitOr<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the | operator. sourcefn bitor( self, rhs: Simd<T, LANES>) -> <&Simd<T, LANES> as BitOr<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<const N: usize> BitOr<Simd<i16, N>> for Simd<i16, N>where i16: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i16, N>The resulting type after applying the | operator. sourcefn bitor( self, rhs: Simd<i16, N>) -> <Simd<i16, N> as BitOr<Simd<i16, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<const N: usize> BitOr<Simd<i32, N>> for Simd<i32, N>where i32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i32, N>The resulting type after applying the | operator. sourcefn bitor( self, rhs: Simd<i32, N>) -> <Simd<i32, N> as BitOr<Simd<i32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<const N: usize> BitOr<Simd<i64, N>> for Simd<i64, N>where i64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i64, N>The resulting type after applying the | operator. sourcefn bitor( self, rhs: Simd<i64, N>) -> <Simd<i64, N> as BitOr<Simd<i64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<const N: usize> BitOr<Simd<i8, N>> for Simd<i8, N>where i8: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i8, N>The resulting type after applying the | operator. sourcefn bitor(self, rhs: Simd<i8, N>) -> <Simd<i8, N> as BitOr<Simd<i8, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<const N: usize> BitOr<Simd<isize, N>> for Simd<isize, N>where isize: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<isize, N>The resulting type after applying the | operator. sourcefn bitor( self, rhs: Simd<isize, N>) -> <Simd<isize, N> as BitOr<Simd<isize, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<const N: usize> BitOr<Simd<u16, N>> for Simd<u16, N>where u16: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u16, N>The resulting type after applying the | operator. sourcefn bitor( self, rhs: Simd<u16, N>) -> <Simd<u16, N> as BitOr<Simd<u16, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<const N: usize> BitOr<Simd<u32, N>> for Simd<u32, N>where u32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u32, N>The resulting type after applying the | operator. sourcefn bitor( self, rhs: Simd<u32, N>) -> <Simd<u32, N> as BitOr<Simd<u32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<const N: usize> BitOr<Simd<u64, N>> for Simd<u64, N>where u64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u64, N>The resulting type after applying the | operator. sourcefn bitor( self, rhs: Simd<u64, N>) -> <Simd<u64, N> as BitOr<Simd<u64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<const N: usize> BitOr<Simd<u8, N>> for Simd<u8, N>where u8: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u8, N>The resulting type after applying the | operator. sourcefn bitor(self, rhs: Simd<u8, N>) -> <Simd<u8, N> as BitOr<Simd<u8, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<const N: usize> BitOr<Simd<usize, N>> for Simd<usize, N>where usize: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<usize, N>The resulting type after applying the | operator. sourcefn bitor( self, rhs: Simd<usize, N>) -> <Simd<usize, N> as BitOr<Simd<usize, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the | operation. Read more sourceimpl<T, U, const LANES: usize> BitOrAssign<U> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: BitOr<U>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as BitOr<U>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, sourcefn bitor_assign(&mut self, rhs: U)Performs the |= operation. Read more sourceimpl<'lhs, 'rhs, T, const LANES: usize> BitXor<&'rhs Simd<T, LANES>> for &'lhs Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: BitXor<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as BitXor<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the ^ operator. sourcefn bitxor( self, rhs: &Simd<T, LANES>) -> <&'lhs Simd<T, LANES> as BitXor<&'rhs Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<T, const LANES: usize> BitXor<&Simd<T, LANES>> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: BitXor<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as BitXor<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the ^ operator. sourcefn bitxor( self, rhs: &Simd<T, LANES>) -> <Simd<T, LANES> as BitXor<&Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<T, const LANES: usize> BitXor<Simd<T, LANES>> for &Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: BitXor<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as BitXor<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the ^ operator. sourcefn bitxor( self, rhs: Simd<T, LANES>) -> <&Simd<T, LANES> as BitXor<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<const N: usize> BitXor<Simd<i16, N>> for Simd<i16, N>where i16: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i16, N>The resulting type after applying the ^ operator. sourcefn bitxor( self, rhs: Simd<i16, N>) -> <Simd<i16, N> as BitXor<Simd<i16, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<const N: usize> BitXor<Simd<i32, N>> for Simd<i32, N>where i32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i32, N>The resulting type after applying the ^ operator. sourcefn bitxor( self, rhs: Simd<i32, N>) -> <Simd<i32, N> as BitXor<Simd<i32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<const N: usize> BitXor<Simd<i64, N>> for Simd<i64, N>where i64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i64, N>The resulting type after applying the ^ operator. sourcefn bitxor( self, rhs: Simd<i64, N>) -> <Simd<i64, N> as BitXor<Simd<i64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<const N: usize> BitXor<Simd<i8, N>> for Simd<i8, N>where i8: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i8, N>The resulting type after applying the ^ operator. sourcefn bitxor(self, rhs: Simd<i8, N>) -> <Simd<i8, N> as BitXor<Simd<i8, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<const N: usize> BitXor<Simd<isize, N>> for Simd<isize, N>where isize: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<isize, N>The resulting type after applying the ^ operator. sourcefn bitxor( self, rhs: Simd<isize, N>) -> <Simd<isize, N> as BitXor<Simd<isize, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<const N: usize> BitXor<Simd<u16, N>> for Simd<u16, N>where u16: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u16, N>The resulting type after applying the ^ operator. sourcefn bitxor( self, rhs: Simd<u16, N>) -> <Simd<u16, N> as BitXor<Simd<u16, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<const N: usize> BitXor<Simd<u32, N>> for Simd<u32, N>where u32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u32, N>The resulting type after applying the ^ operator. sourcefn bitxor( self, rhs: Simd<u32, N>) -> <Simd<u32, N> as BitXor<Simd<u32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<const N: usize> BitXor<Simd<u64, N>> for Simd<u64, N>where u64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u64, N>The resulting type after applying the ^ operator. sourcefn bitxor( self, rhs: Simd<u64, N>) -> <Simd<u64, N> as BitXor<Simd<u64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<const N: usize> BitXor<Simd<u8, N>> for Simd<u8, N>where u8: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u8, N>The resulting type after applying the ^ operator. sourcefn bitxor(self, rhs: Simd<u8, N>) -> <Simd<u8, N> as BitXor<Simd<u8, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<const N: usize> BitXor<Simd<usize, N>> for Simd<usize, N>where usize: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<usize, N>The resulting type after applying the ^ operator. sourcefn bitxor( self, rhs: Simd<usize, N>) -> <Simd<usize, N> as BitXor<Simd<usize, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the ^ operation. Read more sourceimpl<T, U, const LANES: usize> BitXorAssign<U> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: BitXor<U>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as BitXor<U>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, sourcefn bitxor_assign(&mut self, rhs: U)Performs the ^= operation. Read more sourceimpl<T, const LANES: usize> Clone for Simd<T, LANES>where T: SimdElement, LaneCount<LANES>: SupportedLaneCount, sourcefn clone(&self) -> Simd<T, LANES>Returns a copy of the value. Read more source1.0.0 · fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more sourceimpl<T, const LANES: usize> Debug for Simd<T, LANES>where T: SimdElement + Debug, LaneCount<LANES>: SupportedLaneCount, sourcefn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>Formats the value using the given formatter. Read more sourceimpl<T, const LANES: usize> Default for Simd<T, LANES>where T: SimdElement + Default, LaneCount<LANES>: SupportedLaneCount, sourcefn default() -> Simd<T, LANES>Returns the “default value” for a type. Read more sourceimpl<'lhs, 'rhs, T, const LANES: usize> Div<&'rhs Simd<T, LANES>> for &'lhs Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Div<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as Div<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the / operator. sourcefn div( self, rhs: &Simd<T, LANES>) -> <&'lhs Simd<T, LANES> as Div<&'rhs Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<T, const LANES: usize> Div<&Simd<T, LANES>> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Div<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as Div<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the / operator. sourcefn div( self, rhs: &Simd<T, LANES>) -> <Simd<T, LANES> as Div<&Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<T, const LANES: usize> Div<Simd<T, LANES>> for &Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Div<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as Div<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the / operator. sourcefn div( self, rhs: Simd<T, LANES>) -> <&Simd<T, LANES> as Div<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<const N: usize> Div<Simd<f32, N>> for Simd<f32, N>where f32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<f32, N>The resulting type after applying the / operator. sourcefn div(self, rhs: Simd<f32, N>) -> <Simd<f32, N> as Div<Simd<f32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<const N: usize> Div<Simd<f64, N>> for Simd<f64, N>where f64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<f64, N>The resulting type after applying the / operator. sourcefn div(self, rhs: Simd<f64, N>) -> <Simd<f64, N> as Div<Simd<f64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<const N: usize> Div<Simd<i16, N>> for Simd<i16, N>where i16: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i16, N>The resulting type after applying the / operator. sourcefn div(self, rhs: Simd<i16, N>) -> <Simd<i16, N> as Div<Simd<i16, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<const N: usize> Div<Simd<i32, N>> for Simd<i32, N>where i32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i32, N>The resulting type after applying the / operator. sourcefn div(self, rhs: Simd<i32, N>) -> <Simd<i32, N> as Div<Simd<i32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<const N: usize> Div<Simd<i64, N>> for Simd<i64, N>where i64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i64, N>The resulting type after applying the / operator. sourcefn div(self, rhs: Simd<i64, N>) -> <Simd<i64, N> as Div<Simd<i64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<const N: usize> Div<Simd<i8, N>> for Simd<i8, N>where i8: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i8, N>The resulting type after applying the / operator. sourcefn div(self, rhs: Simd<i8, N>) -> <Simd<i8, N> as Div<Simd<i8, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<const N: usize> Div<Simd<isize, N>> for Simd<isize, N>where isize: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<isize, N>The resulting type after applying the / operator. sourcefn div( self, rhs: Simd<isize, N>) -> <Simd<isize, N> as Div<Simd<isize, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<const N: usize> Div<Simd<u16, N>> for Simd<u16, N>where u16: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u16, N>The resulting type after applying the / operator. sourcefn div(self, rhs: Simd<u16, N>) -> <Simd<u16, N> as Div<Simd<u16, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<const N: usize> Div<Simd<u32, N>> for Simd<u32, N>where u32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u32, N>The resulting type after applying the / operator. sourcefn div(self, rhs: Simd<u32, N>) -> <Simd<u32, N> as Div<Simd<u32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<const N: usize> Div<Simd<u64, N>> for Simd<u64, N>where u64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u64, N>The resulting type after applying the / operator. sourcefn div(self, rhs: Simd<u64, N>) -> <Simd<u64, N> as Div<Simd<u64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<const N: usize> Div<Simd<u8, N>> for Simd<u8, N>where u8: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u8, N>The resulting type after applying the / operator. sourcefn div(self, rhs: Simd<u8, N>) -> <Simd<u8, N> as Div<Simd<u8, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<const N: usize> Div<Simd<usize, N>> for Simd<usize, N>where usize: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<usize, N>The resulting type after applying the / operator. sourcefn div( self, rhs: Simd<usize, N>) -> <Simd<usize, N> as Div<Simd<usize, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the / operation. Read more sourceimpl<T, U, const LANES: usize> DivAssign<U> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Div<U>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as Div<U>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, sourcefn div_assign(&mut self, rhs: U)Performs the /= operation. Read more sourceimpl<T, const LANES: usize> From<[T; LANES]> for Simd<T, LANES>where T: SimdElement, LaneCount<LANES>: SupportedLaneCount, sourcefn from(array: [T; LANES]) -> Simd<T, LANES>Converts to this type from the input type. sourceimpl<T, const LANES: usize> From<Mask<T, LANES>> for Simd<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount, sourcefn from(value: Mask<T, LANES>) -> Simd<T, LANES>Converts to this type from the input type. sourceimpl<T, const LANES: usize> From<Simd<T, LANES>> for [T; LANES]where T: SimdElement, LaneCount<LANES>: SupportedLaneCount, sourcefn from(vector: Simd<T, LANES>) -> [T; LANES]Converts to this type from the input type. sourceimpl From<Simd<f32, 16>> for __m512 sourcefn from(value: Simd<f32, 16>) -> __m512Converts to this type from the input type. sourceimpl From<Simd<f32, 4>> for __m128 sourcefn from(value: Simd<f32, 4>) -> __m128Converts to this type from the input type. sourceimpl From<Simd<f32, 8>> for __m256 sourcefn from(value: Simd<f32, 8>) -> __m256Converts to this type from the input type. sourceimpl From<Simd<f64, 2>> for __m128d sourcefn from(value: Simd<f64, 2>) -> __m128dConverts to this type from the input type. sourceimpl From<Simd<f64, 4>> for __m256d sourcefn from(value: Simd<f64, 4>) -> __m256dConverts to this type from the input type. sourceimpl From<Simd<f64, 8>> for __m512d sourcefn from(value: Simd<f64, 8>) -> __m512dConverts to this type from the input type. sourceimpl From<Simd<i16, 16>> for __m256i sourcefn from(value: Simd<i16, 16>) -> __m256iConverts to this type from the input type. sourceimpl From<Simd<i16, 32>> for __m512i sourcefn from(value: Simd<i16, 32>) -> __m512iConverts to this type from the input type. sourceimpl From<Simd<i16, 8>> for __m128i sourcefn from(value: Simd<i16, 8>) -> __m128iConverts to this type from the input type. sourceimpl From<Simd<i32, 16>> for __m512i sourcefn from(value: Simd<i32, 16>) -> __m512iConverts to this type from the input type. sourceimpl From<Simd<i32, 4>> for __m128i sourcefn from(value: Simd<i32, 4>) -> __m128iConverts to this type from the input type. sourceimpl From<Simd<i32, 8>> for __m256i sourcefn from(value: Simd<i32, 8>) -> __m256iConverts to this type from the input type. sourceimpl From<Simd<i64, 2>> for __m128i sourcefn from(value: Simd<i64, 2>) -> __m128iConverts to this type from the input type. sourceimpl From<Simd<i64, 4>> for __m256i sourcefn from(value: Simd<i64, 4>) -> __m256iConverts to this type from the input type. sourceimpl From<Simd<i64, 8>> for __m512i sourcefn from(value: Simd<i64, 8>) -> __m512iConverts to this type from the input type. sourceimpl From<Simd<i8, 16>> for __m128i sourcefn from(value: Simd<i8, 16>) -> __m128iConverts to this type from the input type. sourceimpl From<Simd<i8, 32>> for __m256i sourcefn from(value: Simd<i8, 32>) -> __m256iConverts to this type from the input type. sourceimpl From<Simd<i8, 64>> for __m512i sourcefn from(value: Simd<i8, 64>) -> __m512iConverts to this type from the input type. sourceimpl From<Simd<isize, 2>> for __m128i sourcefn from(value: Simd<isize, 2>) -> __m128iConverts to this type from the input type. sourceimpl From<Simd<isize, 4>> for __m256i sourcefn from(value: Simd<isize, 4>) -> __m256iConverts to this type from the input type. sourceimpl From<Simd<isize, 8>> for __m512i sourcefn from(value: Simd<isize, 8>) -> __m512iConverts to this type from the input type. sourceimpl From<Simd<u16, 16>> for __m256i sourcefn from(value: Simd<u16, 16>) -> __m256iConverts to this type from the input type. sourceimpl From<Simd<u16, 32>> for __m512i sourcefn from(value: Simd<u16, 32>) -> __m512iConverts to this type from the input type. sourceimpl From<Simd<u16, 8>> for __m128i sourcefn from(value: Simd<u16, 8>) -> __m128iConverts to this type from the input type. sourceimpl From<Simd<u32, 16>> for __m512i sourcefn from(value: Simd<u32, 16>) -> __m512iConverts to this type from the input type. sourceimpl From<Simd<u32, 4>> for __m128i sourcefn from(value: Simd<u32, 4>) -> __m128iConverts to this type from the input type. sourceimpl From<Simd<u32, 8>> for __m256i sourcefn from(value: Simd<u32, 8>) -> __m256iConverts to this type from the input type. sourceimpl From<Simd<u64, 2>> for __m128i sourcefn from(value: Simd<u64, 2>) -> __m128iConverts to this type from the input type. sourceimpl From<Simd<u64, 4>> for __m256i sourcefn from(value: Simd<u64, 4>) -> __m256iConverts to this type from the input type. sourceimpl From<Simd<u64, 8>> for __m512i sourcefn from(value: Simd<u64, 8>) -> __m512iConverts to this type from the input type. sourceimpl From<Simd<u8, 16>> for __m128i sourcefn from(value: Simd<u8, 16>) -> __m128iConverts to this type from the input type. sourceimpl From<Simd<u8, 32>> for __m256i sourcefn from(value: Simd<u8, 32>) -> __m256iConverts to this type from the input type. sourceimpl From<Simd<u8, 64>> for __m512i sourcefn from(value: Simd<u8, 64>) -> __m512iConverts to this type from the input type. sourceimpl From<Simd<usize, 2>> for __m128i sourcefn from(value: Simd<usize, 2>) -> __m128iConverts to this type from the input type. sourceimpl From<Simd<usize, 4>> for __m256i sourcefn from(value: Simd<usize, 4>) -> __m256iConverts to this type from the input type. sourceimpl From<Simd<usize, 8>> for __m512i sourcefn from(value: Simd<usize, 8>) -> __m512iConverts to this type from the input type. sourceimpl From<__m128> for Simd<f32, 4> sourcefn from(value: __m128) -> Simd<f32, 4>Converts to this type from the input type. sourceimpl From<__m128d> for Simd<f64, 2> sourcefn from(value: __m128d) -> Simd<f64, 2>Converts to this type from the input type. sourceimpl From<__m128i> for Simd<i16, 8> sourcefn from(value: __m128i) -> Simd<i16, 8>Converts to this type from the input type. sourceimpl From<__m128i> for Simd<i32, 4> sourcefn from(value: __m128i) -> Simd<i32, 4>Converts to this type from the input type. sourceimpl From<__m128i> for Simd<i64, 2> sourcefn from(value: __m128i) -> Simd<i64, 2>Converts to this type from the input type. sourceimpl From<__m128i> for Simd<i8, 16> sourcefn from(value: __m128i) -> Simd<i8, 16>Converts to this type from the input type. sourceimpl From<__m128i> for Simd<isize, 2> sourcefn from(value: __m128i) -> Simd<isize, 2>Converts to this type from the input type. sourceimpl From<__m128i> for Simd<u16, 8> sourcefn from(value: __m128i) -> Simd<u16, 8>Converts to this type from the input type. sourceimpl From<__m128i> for Simd<u32, 4> sourcefn from(value: __m128i) -> Simd<u32, 4>Converts to this type from the input type. sourceimpl From<__m128i> for Simd<u64, 2> sourcefn from(value: __m128i) -> Simd<u64, 2>Converts to this type from the input type. sourceimpl From<__m128i> for Simd<u8, 16> sourcefn from(value: __m128i) -> Simd<u8, 16>Converts to this type from the input type. sourceimpl From<__m128i> for Simd<usize, 2> sourcefn from(value: __m128i) -> Simd<usize, 2>Converts to this type from the input type. sourceimpl From<__m256> for Simd<f32, 8> sourcefn from(value: __m256) -> Simd<f32, 8>Converts to this type from the input type. sourceimpl From<__m256d> for Simd<f64, 4> sourcefn from(value: __m256d) -> Simd<f64, 4>Converts to this type from the input type. sourceimpl From<__m256i> for Simd<i16, 16> sourcefn from(value: __m256i) -> Simd<i16, 16>Converts to this type from the input type. sourceimpl From<__m256i> for Simd<i32, 8> sourcefn from(value: __m256i) -> Simd<i32, 8>Converts to this type from the input type. sourceimpl From<__m256i> for Simd<i64, 4> sourcefn from(value: __m256i) -> Simd<i64, 4>Converts to this type from the input type. sourceimpl From<__m256i> for Simd<i8, 32> sourcefn from(value: __m256i) -> Simd<i8, 32>Converts to this type from the input type. sourceimpl From<__m256i> for Simd<isize, 4> sourcefn from(value: __m256i) -> Simd<isize, 4>Converts to this type from the input type. sourceimpl From<__m256i> for Simd<u16, 16> sourcefn from(value: __m256i) -> Simd<u16, 16>Converts to this type from the input type. sourceimpl From<__m256i> for Simd<u32, 8> sourcefn from(value: __m256i) -> Simd<u32, 8>Converts to this type from the input type. sourceimpl From<__m256i> for Simd<u64, 4> sourcefn from(value: __m256i) -> Simd<u64, 4>Converts to this type from the input type. sourceimpl From<__m256i> for Simd<u8, 32> sourcefn from(value: __m256i) -> Simd<u8, 32>Converts to this type from the input type. sourceimpl From<__m256i> for Simd<usize, 4> sourcefn from(value: __m256i) -> Simd<usize, 4>Converts to this type from the input type. sourceimpl From<__m512> for Simd<f32, 16> sourcefn from(value: __m512) -> Simd<f32, 16>Converts to this type from the input type. sourceimpl From<__m512d> for Simd<f64, 8> sourcefn from(value: __m512d) -> Simd<f64, 8>Converts to this type from the input type. sourceimpl From<__m512i> for Simd<i16, 32> sourcefn from(value: __m512i) -> Simd<i16, 32>Converts to this type from the input type. sourceimpl From<__m512i> for Simd<i32, 16> sourcefn from(value: __m512i) -> Simd<i32, 16>Converts to this type from the input type. sourceimpl From<__m512i> for Simd<i64, 8> sourcefn from(value: __m512i) -> Simd<i64, 8>Converts to this type from the input type. sourceimpl From<__m512i> for Simd<i8, 64> sourcefn from(value: __m512i) -> Simd<i8, 64>Converts to this type from the input type. sourceimpl From<__m512i> for Simd<isize, 8> sourcefn from(value: __m512i) -> Simd<isize, 8>Converts to this type from the input type. sourceimpl From<__m512i> for Simd<u16, 32> sourcefn from(value: __m512i) -> Simd<u16, 32>Converts to this type from the input type. sourceimpl From<__m512i> for Simd<u32, 16> sourcefn from(value: __m512i) -> Simd<u32, 16>Converts to this type from the input type. sourceimpl From<__m512i> for Simd<u64, 8> sourcefn from(value: __m512i) -> Simd<u64, 8>Converts to this type from the input type. sourceimpl From<__m512i> for Simd<u8, 64> sourcefn from(value: __m512i) -> Simd<u8, 64>Converts to this type from the input type. sourceimpl From<__m512i> for Simd<usize, 8> sourcefn from(value: __m512i) -> Simd<usize, 8>Converts to this type from the input type. sourceimpl<T, const LANES: usize> Hash for Simd<T, LANES>where T: SimdElement + Hash, LaneCount<LANES>: SupportedLaneCount, sourcefn hash<H>(&self, state: &mut H)where H: Hasher, Feeds this value into the given Hasher. Read more source1.3.0 · fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Feeds a slice of this type into the given Hasher. Read more sourceimpl<I, T, const LANES: usize> Index<I> for Simd<T, LANES>where T: SimdElement, I: SliceIndex<[T]>, LaneCount<LANES>: SupportedLaneCount, type Output = <I as SliceIndex<[T]>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputThe returned type after indexing. sourcefn index(&self, index: I) -> &<Simd<T, LANES> as Index<I>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the indexing (container[index]) operation. Read more sourceimpl<I, T, const LANES: usize> IndexMut<I> for Simd<T, LANES>where T: SimdElement, I: SliceIndex<[T]>, LaneCount<LANES>: SupportedLaneCount, sourcefn index_mut(&mut self, index: I) -> &mut <Simd<T, LANES> as Index<I>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the mutable indexing (container[index]) operation. Read more sourceimpl<T, const LANES: usize> LowerExp for Simd<T, LANES>where T: SimdElement + LowerExp, LaneCount<LANES>: SupportedLaneCount, sourcefn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>Formats the value using the given formatter. sourceimpl<T, const LANES: usize> LowerHex for Simd<T, LANES>where T: SimdElement + LowerHex, LaneCount<LANES>: SupportedLaneCount, sourcefn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>Formats the value using the given formatter. sourceimpl<'lhs, 'rhs, T, const LANES: usize> Mul<&'rhs Simd<T, LANES>> for &'lhs Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Mul<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as Mul<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the * operator. sourcefn mul( self, rhs: &Simd<T, LANES>) -> <&'lhs Simd<T, LANES> as Mul<&'rhs Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<T, const LANES: usize> Mul<&Simd<T, LANES>> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Mul<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as Mul<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the * operator. sourcefn mul( self, rhs: &Simd<T, LANES>) -> <Simd<T, LANES> as Mul<&Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<T, const LANES: usize> Mul<Simd<T, LANES>> for &Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Mul<Simd<T, LANES>>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as Mul<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, type Output = Simd<T, LANES>The resulting type after applying the * operator. sourcefn mul( self, rhs: Simd<T, LANES>) -> <&Simd<T, LANES> as Mul<Simd<T, LANES>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<const N: usize> Mul<Simd<f32, N>> for Simd<f32, N>where f32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<f32, N>The resulting type after applying the * operator. sourcefn mul(self, rhs: Simd<f32, N>) -> <Simd<f32, N> as Mul<Simd<f32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<const N: usize> Mul<Simd<f64, N>> for Simd<f64, N>where f64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<f64, N>The resulting type after applying the * operator. sourcefn mul(self, rhs: Simd<f64, N>) -> <Simd<f64, N> as Mul<Simd<f64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<const N: usize> Mul<Simd<i16, N>> for Simd<i16, N>where i16: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i16, N>The resulting type after applying the * operator. sourcefn mul(self, rhs: Simd<i16, N>) -> <Simd<i16, N> as Mul<Simd<i16, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<const N: usize> Mul<Simd<i32, N>> for Simd<i32, N>where i32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i32, N>The resulting type after applying the * operator. sourcefn mul(self, rhs: Simd<i32, N>) -> <Simd<i32, N> as Mul<Simd<i32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<const N: usize> Mul<Simd<i64, N>> for Simd<i64, N>where i64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i64, N>The resulting type after applying the * operator. sourcefn mul(self, rhs: Simd<i64, N>) -> <Simd<i64, N> as Mul<Simd<i64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<const N: usize> Mul<Simd<i8, N>> for Simd<i8, N>where i8: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<i8, N>The resulting type after applying the * operator. sourcefn mul(self, rhs: Simd<i8, N>) -> <Simd<i8, N> as Mul<Simd<i8, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<const N: usize> Mul<Simd<isize, N>> for Simd<isize, N>where isize: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<isize, N>The resulting type after applying the * operator. sourcefn mul( self, rhs: Simd<isize, N>) -> <Simd<isize, N> as Mul<Simd<isize, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<const N: usize> Mul<Simd<u16, N>> for Simd<u16, N>where u16: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u16, N>The resulting type after applying the * operator. sourcefn mul(self, rhs: Simd<u16, N>) -> <Simd<u16, N> as Mul<Simd<u16, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<const N: usize> Mul<Simd<u32, N>> for Simd<u32, N>where u32: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u32, N>The resulting type after applying the * operator. sourcefn mul(self, rhs: Simd<u32, N>) -> <Simd<u32, N> as Mul<Simd<u32, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<const N: usize> Mul<Simd<u64, N>> for Simd<u64, N>where u64: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u64, N>The resulting type after applying the * operator. sourcefn mul(self, rhs: Simd<u64, N>) -> <Simd<u64, N> as Mul<Simd<u64, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<const N: usize> Mul<Simd<u8, N>> for Simd<u8, N>where u8: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<u8, N>The resulting type after applying the * operator. sourcefn mul(self, rhs: Simd<u8, N>) -> <Simd<u8, N> as Mul<Simd<u8, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<const N: usize> Mul<Simd<usize, N>> for Simd<usize, N>where usize: SimdElement, LaneCount<N>: SupportedLaneCount, type Output = Simd<usize, N>The resulting type after applying the * operator. sourcefn mul( self, rhs: Simd<usize, N>) -> <Simd<usize, N> as Mul<Simd<usize, N>>>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the * operation. Read more sourceimpl<T, U, const LANES: usize> MulAssign<U> for Simd<T, LANES>where T: SimdElement, Simd<T, LANES>: Mul<U>, LaneCount<LANES>: SupportedLaneCount, <Simd<T, LANES> as Mul<U>>8b7c:f320:99b9:690f:4595:cd17:293a:c069Output == Simd<T, LANES>, sourcefn mul_assign(&mut self, rhs: U)Performs the *= operation. Read more sourceimpl<const LANES: usize> Neg for Simd<f32, LANES>where f32: SimdElement, LaneCount<LANES>: SupportedLaneCount, type Output = Simd<f32, LANES>The resulting type after applying the - operator. sourcefn neg(self) -> <Simd<f32, LANES> as Neg>8b7c:f320:99b9:690f:4595:cd17:293a:c069OutputPerforms the unary - operation. Read more sourceimpl<const LANES: usize> Neg for Simd<f64, LANES>where f64: SimdElement, LaneCount<LANES>: SupportedLaneCount, type Output = Simd<f64, LANES>The
dart:collection difference method Set<E> difference(Set<Object> other) Returns a new set with the elements of this that are not in other. That is, the returned set contains all the elements of this Set that are not elements of other according to other.contains. Source Set<E> difference(Set<Object> other) { Set<E> result = toSet(); for (E element in this) { if (other.contains(element)) result.remove(element); } return result; }
BindingFlags package cs.system.reflection Available on cs Values Default IgnoreCase DeclaredOnly Instance Static Public NonPublic FlattenHierarchy InvokeMethod CreateInstance GetField SetField GetProperty SetProperty PutDispProperty PutRefDispProperty ExactBinding SuppressChangeType OptionalParamBinding IgnoreReturn
SyncQueue class SyncQueue extends Queue implements Queue (View source) Traits InteractsWithTime Properties protected Container $container The IoC container instance. from Queue protected string $connectionName The connection name for the queue. from Queue protected $dispatchAfterCommit Indicates that jobs should be dispatched after all database transactions have committed. from Queue static protected callable[] $createPayloadCallbacks The create payload callbacks. from Queue Methods int secondsUntil(DateTimeInterface|DateInterval|int $delay) Get the number of seconds until the given DateTime. from InteractsWithTime int availableAt(DateTimeInterface|DateInterval|int $delay = 0) Get the "available at" UNIX timestamp. from InteractsWithTime DateTimeInterface|int parseDateInterval(DateTimeInterface|DateInterval|int $delay) If the given value is an interval, convert it to a DateTime instance. from InteractsWithTime int currentTime() Get the current system time as a UNIX timestamp. from InteractsWithTime mixed pushOn(string $queue, string $job, mixed $data = '') Push a new job onto the queue. from Queue mixed laterOn(string $queue, DateTimeInterface|DateInterval|int $delay, string $job, mixed $data = '') Push a new job onto a specific queue after (n) seconds. from Queue void bulk(array $jobs, mixed $data = '', string|null $queue = null) Push an array of jobs onto the queue. from Queue string createPayload(Closure|string|object $job, string $queue, mixed $data = '') Create a payload string from the given job and data. from Queue array createPayloadArray(string|object $job, string $queue, mixed $data = '') Create a payload array from the given job and data. from Queue array createObjectPayload(object $job, string $queue) Create a payload for an object-based queue handler. from Queue string getDisplayName(object $job) Get the display name for the given job. from Queue mixed getJobBackoff(mixed $job) Get the backoff for an object-based queue handler. from Queue mixed getJobExpiration(mixed $job) Get the expiration timestamp for an object-based queue handler. from Queue bool jobShouldBeEncrypted(object $job) Determine if the job should be encrypted. from Queue array createStringPayload(string $job, string $queue, mixed $data) Create a typical, string based queue payload array. from Queue static void createPayloadUsing(callable|null $callback) Register a callback to be executed when creating job payloads. from Queue array withCreatePayloadHooks(string $queue, array $payload) Create the given payload using any registered payload hooks. from Queue mixed enqueueUsing(Closure|string|object $job, string $payload, string $queue, DateTimeInterface|DateInterval|int|null $delay, callable $callback) Enqueue a job using the given callback. from Queue bool shouldDispatchAfterCommit(Closure|string|object $job) Determine if the job should be dispatched after all database transactions have committed. from Queue void raiseJobQueuedEvent(string|int|null $jobId, Closure|string|object $job) Raise the job queued event. from Queue string getConnectionName() Get the connection name for the queue. from Queue $this setConnectionName(string $name) Set the connection name for the queue. from Queue Container getContainer() Get the container instance being used by the connection. from Queue void setContainer(Container $container) Set the IoC container instance. from Queue int size(string|null $queue = null) Get the size of the queue. mixed push(string|object $job, mixed $data = '', string|null $queue = null) Push a new job onto the queue. SyncJob resolveJob(string $payload, string $queue) Resolve a Sync job instance. void raiseBeforeJobEvent(Job $job) Raise the before queue job event. void raiseAfterJobEvent(Job $job) Raise the after queue job event. void raiseExceptionOccurredJobEvent(Job $job, Throwable $e) Raise the exception occurred queue job event. void handleException(Job $queueJob, Throwable $e) Handle an exception that occurred while processing a job. mixed pushRaw(string $payload, string|null $queue = null, array $options = []) Push a raw payload onto the queue. mixed later(DateTimeInterface|DateInterval|int $delay, string|object $job, mixed $data = '', string|null $queue = null) Push a new job onto the queue after (n) seconds. Job|null pop(string|null $queue = null) Pop the next job off of the queue. Details protected int secondsUntil(DateTimeInterface|DateInterval|int $delay) Get the number of seconds until the given DateTime. Parameters DateTimeInterface|DateInterval|int $delay Return Value int protected int availableAt(DateTimeInterface|DateInterval|int $delay = 0) Get the "available at" UNIX timestamp. Parameters DateTimeInterface|DateInterval|int $delay Return Value int protected DateTimeInterface|int parseDateInterval(DateTimeInterface|DateInterval|int $delay) If the given value is an interval, convert it to a DateTime instance. Parameters DateTimeInterface|DateInterval|int $delay Return Value DateTimeInterface|int protected int currentTime() Get the current system time as a UNIX timestamp. Return Value int mixed pushOn(string $queue, string $job, mixed $data = '') Push a new job onto the queue. Parameters string $queue string $job mixed $data Return Value mixed mixed laterOn(string $queue, DateTimeInterface|DateInterval|int $delay, string $job, mixed $data = '') Push a new job onto a specific queue after (n) seconds. Parameters string $queue DateTimeInterface|DateInterval|int $delay string $job mixed $data Return Value mixed void bulk(array $jobs, mixed $data = '', string|null $queue = null) Push an array of jobs onto the queue. Parameters array $jobs mixed $data string|null $queue Return Value void protected string createPayload(Closure|string|object $job, string $queue, mixed $data = '') Create a payload string from the given job and data. Parameters Closure|string|object $job string $queue mixed $data Return Value string Exceptions InvalidPayloadException protected array createPayloadArray(string|object $job, string $queue, mixed $data = '') Create a payload array from the given job and data. Parameters string|object $job string $queue mixed $data Return Value array protected array createObjectPayload(object $job, string $queue) Create a payload for an object-based queue handler. Parameters object $job string $queue Return Value array protected string getDisplayName(object $job) Get the display name for the given job. Parameters object $job Return Value string mixed getJobBackoff(mixed $job) Get the backoff for an object-based queue handler. Parameters mixed $job Return Value mixed mixed getJobExpiration(mixed $job) Get the expiration timestamp for an object-based queue handler. Parameters mixed $job Return Value mixed protected bool jobShouldBeEncrypted(object $job) Determine if the job should be encrypted. Parameters object $job Return Value bool protected array createStringPayload(string $job, string $queue, mixed $data) Create a typical, string based queue payload array. Parameters string $job string $queue mixed $data Return Value array static void createPayloadUsing(callable|null $callback) Register a callback to be executed when creating job payloads. Parameters callable|null $callback Return Value void protected array withCreatePayloadHooks(string $queue, array $payload) Create the given payload using any registered payload hooks. Parameters string $queue array $payload Return Value array protected mixed enqueueUsing(Closure|string|object $job, string $payload, string $queue, DateTimeInterface|DateInterval|int|null $delay, callable $callback) Enqueue a job using the given callback. Parameters Closure|string|object $job string $payload string $queue DateTimeInterface|DateInterval|int|null $delay callable $callback Return Value mixed protected bool shouldDispatchAfterCommit(Closure|string|object $job) Determine if the job should be dispatched after all database transactions have committed. Parameters Closure|string|object $job Return Value bool protected void raiseJobQueuedEvent(string|int|null $jobId, Closure|string|object $job) Raise the job queued event. Parameters string|int|null $jobId Closure|string|object $job Return Value void string getConnectionName() Get the connection name for the queue. Return Value string $this setConnectionName(string $name) Set the connection name for the queue. Parameters string $name Return Value $this Container getContainer() Get the container instance being used by the connection. Return Value Container void setContainer(Container $container) Set the IoC container instance. Parameters Container $container Return Value void int size(string|null $queue = null) Get the size of the queue. Parameters string|null $queue Return Value int mixed push(string|object $job, mixed $data = '', string|null $queue = null) Push a new job onto the queue. Parameters string|object $job mixed $data string|null $queue Return Value mixed Exceptions Throwable protected SyncJob resolveJob(string $payload, string $queue) Resolve a Sync job instance. Parameters string $payload string $queue Return Value SyncJob protected void raiseBeforeJobEvent(Job $job) Raise the before queue job event. Parameters Job $job Return Value void protected void raiseAfterJobEvent(Job $job) Raise the after queue job event. Parameters Job $job Return Value void protected void raiseExceptionOccurredJobEvent(Job $job, Throwable $e) Raise the exception occurred queue job event. Parameters Job $job Throwable $e Return Value void protected void handleException(Job $queueJob, Throwable $e) Handle an exception that occurred while processing a job. Parameters Job $queueJob Throwable $e Return Value void Exceptions Throwable mixed pushRaw(string $payload, string|null $queue = null, array $options = []) Push a raw payload onto the queue. Parameters string $payload string|null $queue array $options Return Value mixed mixed later(DateTimeInterface|DateInterval|int $delay, string|object $job, mixed $data = '', string|null $queue = null) Push a new job onto the queue after (n) seconds. Parameters DateTimeInterface|DateInterval|int $delay string|object $job mixed $data string|null $queue Return Value mixed Job|null pop(string|null $queue = null) Pop the next job off of the queue. Parameters string|null $queue Return Value Job|null
st8b7c:f320:99b9:690f:4595:cd17:293a:c069launch Defined in header <future> enum class launch : /* unspecified */ { async = /* unspecified */, deferred = /* unspecified */, /* implementation-defined */ }; (since C++11) Specifies the launch policy for a task executed by the st8b7c:f320:99b9:690f:4595:cd17:293a:c069async function. st8b7c:f320:99b9:690f:4595:cd17:293a:c069launch is an enumeration used as BitmaskType. The following constants denoting individual bits are defined by the standard library: Constant Explanation st8b7c:f320:99b9:690f:4595:cd17:293a:c069launch8b7c:f320:99b9:690f:4595:cd17:293a:c069sync the task is executed on a different thread, potentially by creating and launching it first st8b7c:f320:99b9:690f:4595:cd17:293a:c069launch8b7c:f320:99b9:690f:4595:cd17:293a:c069rred the task is executed on the calling thread the first time its result is requested (lazy evaluation) In addition, implementations are allowed to: define additional bits and bitmasks to specify restrictions on task interactions applicable to a subset of launch policies, and enable those additional bitmasks for the first (default) overload of st8b7c:f320:99b9:690f:4595:cd17:293a:c069async. See also async (C++11) runs a function asynchronously (potentially in a new thread) and returns a st8b7c:f320:99b9:690f:4595:cd17:293a:c069future that will hold the result (function template)
community.general.scaleway_compute – Scaleway compute management module Note This plugin is part of the community.general collection (version 1.3.2). To install it use: ansible-galaxy collection install community.general. To use it in a playbook, specify: community.general.scaleway_compute. Synopsis Parameters Notes Examples Synopsis This module manages compute instances on Scaleway. Parameters Parameter Choices/Defaults Comments api_timeout integer Default:30 HTTP timeout to Scaleway API in seconds. aliases: timeout api_token string / required Scaleway OAuth token. aliases: oauth_token api_url string Default:"https://api.scaleway.com" Scaleway API URL. aliases: base_url commercial_type string / required Commercial name of the compute node enable_ipv6 boolean Choices: no ← yes Enable public IPv6 connectivity on the instance image string / required Image identifier used to start the instance with name string Name of the instance organization string / required Organization identifier public_ip string Default:"absent" Manage public IP on a Scaleway server Could be Scaleway IP address UUID dynamic Means that IP is destroyed at the same time the host is destroyed absent Means no public IP at all query_parameters dictionary Default:{} List of parameters passed to the query string. region string / required Choices: ams1 EMEA-NL-EVS par1 EMEA-FR-PAR1 Scaleway compute zone security_group string Security group unique identifier If no value provided, the default security group or current security group will be used state string Choices: present ← absent running restarted stopped Indicate desired state of the instance. tags list / elements=string Default:[] List of tags to apply to the instance (5 max) validate_certs boolean Choices: no yes ← Validate SSL certs of the Scaleway API. wait boolean Choices: no ← yes Wait for the instance to reach its desired state before returning. wait_sleep_time integer Default:3 Time to wait before every attempt to check the state of the server wait_timeout integer Default:300 Time to wait for the server to reach the expected state Notes Note Also see the API documentation on https://developer.scaleway.com/ If api_token is not set within the module, the following environment variables can be used in decreasing order of precedence SCW_TOKEN, SCW_API_KEY, SCW_OAUTH_TOKEN or SCW_API_TOKEN. If one wants to use a different api_url one can also set the SCW_API_URL environment variable. Examples - name: Create a server community.general.scaleway_compute: name: foobar state: present image: 89ee4018-f8c3-4dc4-a6b5-bca14f985ebe organization: 951df375-e094-4d26-97c1-ba548eeb9c42 region: ams1 commercial_type: VC1S tags: - test - www - name: Create a server attached to a security group community.general.scaleway_compute: name: foobar state: present image: 89ee4018-f8c3-4dc4-a6b5-bca14f985ebe organization: 951df375-e094-4d26-97c1-ba548eeb9c42 region: ams1 commercial_type: VC1S security_group: 4a31b633-118e-4900-bd52-facf1085fc8d tags: - test - www - name: Destroy it right after community.general.scaleway_compute: name: foobar state: absent image: 89ee4018-f8c3-4dc4-a6b5-bca14f985ebe organization: 951df375-e094-4d26-97c1-ba548eeb9c42 region: ams1 commercial_type: VC1S Authors Remy Leone (@sieben) © 2012–2018 Michael DeHaan
glm.diag.plots Diagnostics plots for generalized linear models Description Makes plot of jackknife deviance residuals against linear predictor, normal scores plots of standardized deviance residuals, plot of approximate Cook statistics against leverage/(1-leverage), and case plot of Cook statistic. Usage glm.diag.plots(glmfit, glmdiag = glm.diag(glmfit), subset = NULL, iden = FALSE, labels = NULL, ret = FALSE) Arguments glmfit glm.object : the result of a call to glm() glmdiag Diagnostics of glmfit obtained from a call to glm.diag. If it is not supplied then it is calculated. subset Subset of data for which glm fitting performed: should be the same as the subset option used in the call to glm() which generated glmfit. Needed only if the subset= option was used in the call to glm. iden A logical argument. If TRUE then, after the plots are drawn, the user will be prompted for an integer between 0 and 4. A positive integer will select a plot and invoke identify() on that plot. After exiting identify(), the user is again prompted, this loop continuing until the user responds to the prompt with 0. If iden is FALSE (default) the user cannot interact with the plots. labels A vector of labels for use with identify() if iden is TRUE. If it is not supplied then the labels are derived from glmfit. ret A logical argument indicating if glmdiag should be returned. The default is FALSE. Details The diagnostics required for the plots are calculated by glm.diag. These are then used to produce the four plots on the current graphics device. The plot on the top left is a plot of the jackknife deviance residuals against the fitted values. The plot on the top right is a normal QQ plot of the standardized deviance residuals. The dotted line is the expected line if the standardized residuals are normally distributed, i.e. it is the line with intercept 0 and slope 1. The bottom two panels are plots of the Cook statistics. On the left is a plot of the Cook statistics against the standardized leverages. In general there will be two dotted lines on this plot. The horizontal line is at 8/(n-2p) where n is the number of observations and p is the number of parameters estimated. Points above this line may be points with high influence on the model. The vertical line is at 2p/(n-2p) and points to the right of this line have high leverage compared to the variance of the raw residual at that point. If all points are below the horizontal line or to the left of the vertical line then the line is not shown. The final plot again shows the Cook statistic this time plotted against case number enabling us to find which observations are influential. Use of iden=T is encouraged for proper exploration of these four plots as a guide to how well the model fits the data and whether certain observations have an unduly large effect on parameter estimates. Value If ret is TRUE then the value of glmdiag is returned otherwise there is no returned value. Side Effects The current device is cleared and four plots are plotted by use of split.screen(c(2,2)). If iden is TRUE, interactive identification of points is enabled. All screens are closed, but not cleared, on termination of the function. References Davison, A. C. and Hinkley, D. V. (1997) Bootstrap Methods and Their Application. Cambridge University Press. Davison, A.C. and Snell, E.J. (1991) Residuals and diagnostics. In Statistical Theory and Modelling: In Honour of Sir David Cox D.V. Hinkley, N. Reid, and E.J. Snell (editors), 83–106. Chapman and Hall. See Also glm, glm.diag, identify Examples # In this example we look at the leukaemia data which was looked at in # Example 7.1 of Davison and Hinkley (1997) data(leuk, package = "MASS") leuk.mod <- glm(time ~ ag-1+log10(wbc), family = Gamma(log), data = leuk) leuk.diag <- glm.diag(leuk.mod) glm.diag.plots(leuk.mod, leuk.diag) Copyright (
19.1 Basic Vectorization To a very good first approximation, the goal in vectorization is to write code that avoids loops and uses whole-array operations. As a trivial example, consider for i = 1:n for j = 1:m c(i,j) = a(i,j) + b(i,j); endfor endfor compared to the much simpler c = a + b; This isn’t merely easier to write; it is also internally much easier to optimize. Octave delegates this operation to an underlying implementation which, among other optimizations, may use special vector hardware instructions or could conceivably even perform the additions in parallel. In general, if the code is vectorized, the underlying implementation has more freedom about the assumptions it can make in order to achieve faster execution. This is especially important for loops with "cheap" bodies. Often it suffices to vectorize just the innermost loop to get acceptable performance. A general rule of thumb is that the "order" of the vectorized body should be greater or equal to the "order" of the enclosing loop. As a less trivial example, instead of for i = 1:n-1 a(i) = b(i+1) - b(i); endfor write a = b(2:n) - b(1:n-1); This shows an important general concept about using arrays for indexing instead of looping over an index variable. See Index Expressions. Also use boolean indexing generously. If a condition needs to be tested, this condition can also be written as a boolean index. For instance, instead of for i = 1:n if (a(i) > 5) a(i) -= 20 endif endfor write a(a>5) -= 20; which exploits the fact that a > 5 produces a boolean index. Use elementwise vector operators whenever possible to avoid looping (operators like .* and .^). See Arithmetic Operators. Also exploit broadcasting in these elementwise operators both to avoid looping and unnecessary intermediate memory allocations. See Broadcasting. Use built-in and library functions if possible. Built-in and compiled functions are very fast. Even with an m-file library function, chances are good that it is already optimized, or will be optimized more in a future release. For instance, even better than a = b(2:n) - b(1:n-1); is a = diff (b); Most Octave functions are written with vector and array arguments in mind. If you find yourself writing a loop with a very simple operation, chances are that such a function already exists. The following functions occur frequently in vectorized code: Index manipulation find sub2ind ind2sub sort unique lookup ifelse / merge Repetition repmat repelems Vectorized arithmetic sum prod cumsum cumprod sumsq diff dot cummax cummin Shape of higher dimensional arrays reshape resize permute squeeze deal
COMPATIBLE_INTERFACE_NUMBER_MAX Properties whose maximum value from the link interface will be used. The COMPATIBLE_INTERFACE_NUMBER_MAX property may contain a list of properties for this target whose maximum value may be read at generate time when evaluated in the INTERFACE variant of the property in all linked dependees. For example, if a property FOO appears in the list, then for each dependee, the INTERFACE_FOO property content in all of its dependencies will be compared with each other and with the FOO property in the depender. When reading the FOO property at generate time, the maximum value will be returned. If the property is not set, then it is ignored. Note that for each dependee, the set of properties specified in this property must not intersect with the set specified in any of the other Compatible Interface Properties.
NationalDigitsType(UInt) package flash.globalization Available on flash Variables read onlyARABIC_INDIC:NationalDigitsType read onlyBALINESE:NationalDigitsType read onlyBENGALI:NationalDigitsType read onlyCHAM:NationalDigitsType read onlyDEVANAGARI:NationalDigitsType read onlyEUROPEAN:NationalDigitsType read onlyEXTENDED_ARABIC_INDIC:NationalDigitsType read onlyFULL_WIDTH:NationalDigitsType read onlyGUJARATI:NationalDigitsType read onlyGURMUKHI:NationalDigitsType read onlyKANNADA:NationalDigitsType read onlyKAYAH_LI:NationalDigitsType read onlyKHMER:NationalDigitsType read onlyLAO:NationalDigitsType read onlyLEPCHA:NationalDigitsType read onlyLIMBU:NationalDigitsType read onlyMALAYALAM:NationalDigitsType read onlyMONGOLIAN:NationalDigitsType read onlyMYANMAR:NationalDigitsType read onlyMYANMAR_SHAN:NationalDigitsType read onlyNEW_TAI_LUE:NationalDigitsType read onlyNKO:NationalDigitsType read onlyOL_CHIKI:NationalDigitsType read onlyORIYA:NationalDigitsType read onlyOSMANYA:NationalDigitsType read onlySAURASHTRA:NationalDigitsType read onlySUNDANESE:NationalDigitsType read onlyTAMIL:NationalDigitsType read onlyTELUGU:NationalDigitsType read onlyTHAI:NationalDigitsType read onlyTIBETAN:NationalDigitsType read onlyVAI:NationalDigitsType
7. yarn check yarn check Verifies that versions of the package dependencies in the current project’s package.json match those in yarn’s lock file. NOTE: The command yarn check has been historically buggy and undermaintained and, as such, has been deprecated and will be removed in Yarn 2.0. You should use yarn install --check-files instead. The switches --integrity and --verify-tree are mutually exclusive. yarn check --integrity Verifies that versions and hashed values of the package contents in the project’s package.json match those in yarn’s lock file. This helps to verify that the package dependencies have not been altered. yarn check --verify-tree Recursively verifies that the dependencies in package.json are present in node_modules and have the right version. This check does not consider yarn.lock.
protected property SelectQueryExtender8b7c:f320:99b9:690f:4595:cd17:293a:c069$connection The connection object on which to run this query. Type: DatabaseConnection File includes/database/select.inc, line 550 Class SelectQueryExtender The base extender class for Select queries. Code protected $connection;
statsmodels.stats.outliers_influence.OLSInfluence.dffits OLSInfluence.dffits() [source] (cached attribute) dffits measure for influence of an observation based on resid_studentized_external, uses results from leave-one-observation-out loop It is recommended that observations with dffits large than a threshold of 2 sqrt{k / n} where k is the number of parameters, should be investigated. Returns: dffits (float) dffits_threshold (float) References Wikipedia © 2009–2012 Statsmodels Developers© 2006–2008 Scipy Developers
[Groovy] Class GinqAstWalker.6 org.apache.groovy.ginq.provider.collection.GinqAstWalker.6 class GinqAstWalker.6 extends GinqAstBaseVisitor Constructor Summary Constructors Constructor and description GinqAstWalker.6() Methods Summary Methods Type Params Return Type Name and description void visitMethodCallExpression(MethodCallExpression call) void visitVariableExpression(VariableExpression expression) Inherited Methods Summary Inherited Methods Methods inherited from class Name class GinqAstBaseVisitor visit, visitFromExpression, visitGinqExpression, visitGroupExpression, visitHavingExpression, visitJoinExpression, visitLimitExpression, visitOnExpression, visitOrderExpression, visitSelectExpression, visitShutdownExpression, visitWhereExpression class CodeVisitorSupport afterSwitchConditionExpressionVisited, visitArgumentlistExpression, visitArrayExpression, visitAssertStatement, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBlockStatement, visitBooleanExpression, visitBreakStatement, visitBytecodeExpression, visitCaseStatement, visitCastExpression, visitCatchStatement, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitContinueStatement, visitDeclarationExpression, visitDoWhileLoop, visitEmptyStatement, visitExpressionStatement, visitFieldExpression, visitForLoop, visitGStringExpression, visitIfElse, visitLambdaExpression, visitListExpression, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitMethodReferenceExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitReturnStatement, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitSwitch, visitSynchronizedStatement, visitTernaryExpression, visitThrowStatement, visitTryCatchFinally, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitVariableExpression, visitWhileLoop Constructor Detail GinqAstWalker.6() Method Detail @Override void visitMethodCallExpression(MethodCallExpression call) @Override void visitVariableExpression(VariableExpression expression)
[Groovy] Class ASTTransformationCustomizerFactory org.codehaus.groovy.control.customizers.builder.ASTTransformationCustomizerFactory @CompileStatic class ASTTransformationCustomizerFactory extends AbstractFactory This factory generates an ASTTransformationCustomizer. Simple syntax: builder.ast(ToString) With AST transformation options: builder.ast(includeNames:true, ToString) Since: 2.1.0 Constructor Summary Constructors Constructor and description ASTTransformationCustomizerFactory() Methods Summary Methods Type Params Return Type Name and description boolean isLeaf() Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attributes) boolean onHandleNodeAttributes(FactoryBuilderSupport builder, Object node, Map attributes) Inherited Methods Summary Inherited Methods Methods inherited from class Name class AbstractFactory setParent, isLeaf, onNodeChildren, setChild, onNodeCompleted, onFactoryRegistration, isHandlesNodeChildren, onHandleNodeAttributes, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, newInstance Constructor Detail ASTTransformationCustomizerFactory() Method Detail @Override boolean isLeaf() @Override @CompileDynamic Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attributes) @Override boolean onHandleNodeAttributes(FactoryBuilderSupport builder, Object node, Map attributes)
category kotlin-stdlib / kotlin.text / category Platform and version requirements: JVM (1.0), JS (1.5) val Char.category: CharCategory Returns the Unicode general category of this character.
VirtualKeyboardSettings QML Type Provides settings for virtual keyboard. More... Import Statement: import QtQuick.VirtualKeyboard.Settings 2.2 Since: QtQuick.VirtualKeyboard 1.2 List of all members, including inherited members Properties activeLocales : list<string> availableLocales : list<string> fullScreenMode : bool locale : string styleName : string wordCandidateList wordCandidateList.autoHideDelay : int wordCandidateList.alwaysVisible : bool Detailed Description This type provides a VirtualKeyboardSettings singleton instance, which can be used to configure the virtual keyboard settings. Please note that the settings have only effect in the current application's lifetime, that is, configuration changes are not permanent. For example, to change the keyboard style in application: Component.onCompleted: VirtualKeyboardSettings.styleName = "retro" Property Documentation activeLocales : list<string> This property contains a list of activated languages of the virtual keyboard. The list of active languages is a subset of the available languages, and can be used to limit the list of available languages in the application lifetime. This QML property was introduced in QtQuick.VirtualKeyboard.Settings 2.0. availableLocales : list<string> This property contains a list of languages supported by the virtual keyboard. This list is read-only and depends on the build-time configuration of the virtual keyboard. This QML property was introduced in QtQuick.VirtualKeyboard.Settings 2.0. fullScreenMode : bool This property enables the fullscreen mode for the virtual keyboard. In fullscreen mode, the virtual keyboard replicates the contents of the focused input field to the fullscreen input field located at the top of the keyboard. For example, to activate the fullscreen mode when the screen aspect ratio is greater than 16:9: Binding { target: VirtualKeyboardSettings property: "fullScreenMode" value: (Screen.width / Screen.height) > (16.0 / 9.0) } This QML property was introduced in QtQuick.VirtualKeyboard.Settings 2.2. locale : string This property provides the default locale for the keyboard. When the locale is not specified, the default system locale is used instead. If the keyboard locale is different from the new default locale, keyboard language is changed immediately to reflect the new locale. If the locale setting is incorrect, or it is not in the list of supported locales, it is ignored and the default setting is used instead. A locale is supported if it is included in the list of availableLocales. This QML property was introduced in QtQuick.VirtualKeyboard.Settings 2.0. styleName : string This property provides the current style. Application can change the keyboard style by setting the styleName to different value. The system wide keyboard style can be affected by setting the QT_VIRTUALKEYBOARD_STYLE environment variable. wordCandidateList.autoHideDelay : int Name Description autoHideDelay This property defines the delay, in milliseconds, after which the word candidate list is hidden if empty.If the value is 0, the list is immediately hidden when cleared. If the value is -1, the list is visible until input focus changes, or the input panel is hidden. The default value is 5000 milliseconds. alwaysVisible This property defines whether the word candidate list should always remain visible.The default value is false. autoCommitWord This property enables the automatic commit feature that is activated when the word candidate list is narrowed down to a single candidate.The automatic commit feature takes effect when the word candidate list initially contains multiple words and is reduced to single word after additional input. This word will be selected and committed automatically without user interaction. This property is set to false by default. This property group was introduced in QtQuick.VirtualKeyboard.Settings 2.2.
vertica_facts - Gathers Vertica database facts. New in version 2.0. Synopsis Requirements (on host that executes module) Options Examples Notes Status Synopsis Gathers Vertica database facts. Requirements (on host that executes module) unixODBC pyodbc Options parameter required default choices comments cluster no localhost Name of the cluster running the schema. db no Name of the database running the schema. login_password no The password used to authenticate with. login_user no dbadmin The username used to authenticate with. port no 5433 Database port to connect to. Examples - name: gathering vertica facts vertica_facts: db=db_name Notes Note The default authentication assumes that you are either logging in as or sudo’ing to the dbadmin account on the host. This module uses pyodbc, a Python ODBC database adapter. You must ensure that unixODBC and pyodbc is installed on the host and properly configured. Configuring unixODBC for Vertica requires Driver = /opt/vertica/lib64/libverticaodbc.so to be added to the Vertica section of either /etc/odbcinst.ini or $HOME/.odbcinst.ini and both ErrorMessagesPath = /opt/vertica/lib64 and DriverManagerEncoding = UTF-16 to be added to the Driver section of either /etc/vertica.ini or $HOME/.vertica.ini. Status This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface. For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules. © 2012–2018 Michael DeHaan
public function VariantBas8b7c:f320:99b9:690f:4595:cd17:293a:c069setConfiguration public VariantBas8b7c:f320:99b9:690f:4595:cd17:293a:c069setConfiguration(array $configuration) Sets the configuration for this plugin instance. Parameters array $configuration: An associative array containing the plugin's configuration. Overrides ConfigurablePluginInter8b7c:f320:99b9:690f:4595:cd17:293a:c069setConfiguration File core/lib/Drupal/Core/Display/VariantBase.php, line 80 Class VariantBase Provides a base class for DisplayVariant plugins. Namespace Drupal\Core\Display Code public function setConfiguration(array $configuration) { $this->configuration = $configuration + $this->defaultConfiguration(); return $this; }
class PersistentDatabaseLockBackend Defines the persistent database lock backend. This backend is global for this Drupal installation. Hierarchy class \Drupal\Core\Lock\LockBackendAbstract implements LockBackendInterface class \Drupal\Core\Lock\DatabaseLockBackend class \Drupal\Core\Lock\PersistentDatabaseLockBackend Related topics Locking mechanisms Functions to coordinate long-running operations across requests. File core/lib/Drupal/Core/Lock/PersistentDatabaseLockBackend.php, line 13 Namespace Drupal\Core\Lock Members Name Modifiers Type Description DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069$database protected property The database connection. DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069acquire public function Acquires a lock. Overrides LockBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069acquire DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069catchException protected function Act on an exception when semaphore might be stale. DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069ensureTableExists protected function Check if the semaphore table exists and create it if not. DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069lockMayBeAvailable public function Checks if a lock is available for acquiring. Overrides LockBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069lockMayBeAvailable DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069release public function Releases the given lock. Overrides LockBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069release DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069releaseAll public function Releases all locks for the given lock token identifier. Overrides LockBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069releaseAll DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069schemaDefinition public function Defines the schema for the semaphore table. DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069TABLE_NAME constant The database table name. LockBackendAbstract8b7c:f320:99b9:690f:4595:cd17:293a:c069$lockId protected property Current page lock token identifier. LockBackendAbstract8b7c:f320:99b9:690f:4595:cd17:293a:c069$locks protected property Existing locks for this page. LockBackendAbstract8b7c:f320:99b9:690f:4595:cd17:293a:c069getLockId public function Gets the unique page token for locks. Overrides LockBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069getLockId LockBackendAbstract8b7c:f320:99b9:690f:4595:cd17:293a:c069wait public function Waits a short amount of time before a second lock acquire attempt. Overrides LockBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069wait PersistentDatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069__construct public function Constructs a new PersistentDatabaseLockBackend. Overrides DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069__construct
ReQL command: outerJoin Command syntax sequence.outerJoin(otherSequence, predicate_function) → stream array.outerJoin(otherSequence, predicate_function) → array Description Returns a left outer join of two sequences. The returned sequence represents a union of the left-hand sequence and the right-hand sequence: all documents in the left-hand sequence will be returned, each matched with a document in the right-hand sequence if one satisfies the predicate condition. In most cases, you will want to follow the join with zip to combine the left and right results. Note that outerJoin is slower and much less efficient than using concatMap with getAll. You should avoid using outerJoin in commands when possible. Example: Return a list of all Marvel heroes, paired with any DC heroes who could beat them in a fight. r.table("marvel").outerJoin(r.table("dc"), (marvel_row, dc_row) -> marvel_row.g("strength").lt(dc_row.g("strength")) ).zip().run(conn); (Compare this to an innerJoin with the same inputs and predicate, which would return a list only of the matchups in which the DC hero has the higher strength.) Related commands innerJoin eqJoin zip
unsafeCast kotlin-stdlib / kotlin.js / unsafeCast Platform and version requirements: JS (1.1) fun <T> Any?.unsafeCast(): T Reinterprets this value as a value of the specified type T without any actual type checking. Platform and version requirements: JS (1.1) fun <T> dynamic.unsafeCast(): T Reinterprets this dynamic value as a value of the specified type T without any actual type checking.