Tutorial by Examples: er

Sometimes the reduction has to be performed on a very small scale, as a part of a bigger CUDA kernel. Suppose for example, that the input data has exactly 32 elements - the number of threads in a warp. In such scenario a single warp can be assigned to perform the reduction. Given that warp execut...
Typically, reduction is performed on global or shared array. However, when the reduction is performed on a very small scale, as a part of a bigger CUDA kernel, it can be performed with a single warp. When that happens, on Keppler or higher architectures (CC>=3.0), it is possible to use warp-shu...
Go to Catalog > Filters and select Insert to create a filter group. Assign a filter group name (e.g. Color) and add filter name values (e.g. Blue, Red, Yellow).
Go to Catalog > Categories and Edit a category. Under the Data tab add the filters you want to be able to apply to that category (e.g. Color > Blue, Color > Red).
Go to Catalog > Products and Edit a product. Under the Links tab add the filters which apply to the product (e.g. Color > Blue). Apply to as many products as applicable.
<md-card> <md-card-header> <md-card-header-text> <span class="md-title">This will be the title</span> <span class="md-subhead">Here goes the (smaller, lighter) sub-header</span> </md-car...
[MetadataType(typeof(RoleMetaData))] public partial class ROLE { } public class RoleMetaData { [Display(Name = "Role")] public string ROLE_DESCRIPTION { get; set; } [Display(Name = "Username")] public string ROLE_USERNAME { get; set; } } If you us...
A generic type is created to adapt so that the same functionallity can be accessible for different data types. Public Class SomeClass(Of T) Public Sub doSomething(newItem As T) Dim tempItem As T ' Insert code that processes an item of data type t. End Sub End Class ...
By creating an instance of the same class with a different type given, the interface of the class changes depending on the given type. Dim theStringClass As New SomeClass(Of String) Dim theIntegerClass As New SomeClass(Of Integer)
A generic class is a class who adapts to a later-given type so that the same functionality can be offered to different types. In this basic example a generic class is created. It has a sub who uses the generic type T. While programming this class, we don't know the type of T. In this case T has ...
In this example there are 2 instances created of the SomeClass Class. Depending on the type given the 2 instances have a different interface: Dim theStringClass As New SomeClass(Of String) Dim theIntegerClass As New SomeClass(Of Integer) The most famous generic class is List(of )
Create new Xamarin.iOS blank project (Single View App). Right click on the "Components" folder and select "Get More Components": In search box type: "Flout Navigation" and add below component to your app: Remember also to add "Mono.Touch.D...
This example shows a call of AfxBeginThread that starts the worker thread and an example worker thread procedure for that thread. // example simple thread procedure. UINT __cdecl threadProc(LPVOID rawInput) { // convert it to the correct data type. It's common to pass entire structures this ...
ASP.NET Core provides the status code pages middleware, that supports several different extension methods, but we are interesting in UseStatusCodePages and UseStatusCodePagesWithRedirects: UseStatusCodePages adds a StatusCodePages middleware with the given options that checks for responses with...
href binding is not native to KnockoutJS, so to get dynamic links use a custom binding handler: <a data-bind="href: myUrl">link with dynamic href</a> ko.bindingHandlers['href'] = { update: function(element, valueAccessor) { element.href = ko.utils.unwrapObservable(v...
public class MyPage : ContentPage { RelativeLayout _layout; BoxView centerBox; BoxView rightBox; BoxView leftBox; BoxView topBox; BoxView bottomBox; const int spacing = 10; const int boxSize = 50; public MyPage() { _layout = new Rel...
/* SD card datalogger This example shows how to log data from three analog sensors to an SD card using the SD library. The circuit: * analog sensors on analog ins 0, 1, and 2 * SD card attached to SPI bus as follows: ** MOSI - pin 11 ** MISO - pin 12 ** CLK - pin 13 ** CS - ...
By default, mix new <projectname> will generate a .gitignore file in the project root that is suitable for Elixir. # The directory Mix will write compiled artifacts to. /_build # If you run "mix test --cover", coverage assets end up here. /cover # The directory Mix downloads...
To install openshift follow installation steps on https://install.openshift.com
function myFunction { param( # If parameter 'a' is used, then 'c' is mandatory # If parameter 'b' is used, then 'c' is optional, but allowed # You can use parameter 'c' in combination with either 'a' or 'b' # 'a' and 'b' cannot be used together [p...

Page 282 of 417