This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collective operation | |
Collective operations are building blocks for interaction patterns, that are often used in SPMDalgorithms in the parallel programming context. Hence, there is an interest in efficient realizations ofthese operations.A realization of the collective operations is provided by the Message Passing Interface[1] (MPI).Definitions | |
In all asymptotic runtime functions, we denote the latency , the communication cost per word , thenumber of processing units and the input size per node . In cases where we have initial messageson more than one node we assume that all local messages are of the same size. To address individualprocessing units we use .If we do not have an equal distribution, i.e. node has a message of size , we get an upper boundfor the runtime by setting .A distributed memory model is assumed. The concepts are similar for the shared memory model.However, shared memory systems can provide hardware support for some operations like broadcast(§ Broadcast) for example, which allows conveni |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collective operation | |
Collective operations are building blocks for interaction patterns, that are often used in SPMDalgorithms in the parallel programming context. Hence, there is an interest in efficient realizations ofthese operations.A realization of the collective operations is provided by the Message Passing Interface[1] (MPI).Definitions | |
In all asymptotic runtime functions, we denote the latency , the communication cost per word , thenumber of processing units and the input size per node . In cases where we have initial messageson more than one node we assume that all local messages are of the same size. To address individualprocessing units we use .If we do not have an equal distribution, i.e. node has a message of size , we get an upper boundfor the runtime by setting .A distributed memory model is assumed. The concepts are similar for the shared memory model.However, shared memory systems can provide hardware support for some operations like broadcast(§ Broadcast) for example, which allows conveni |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (ext) { | |
var loginRetryAmount = 6; | |
var loginRetryTimeout = 5000; | |
var lightMap = {}; | |
var onOffMap = {"On": true, "Off": false}; | |
var ip = localStorage.getItem("hueIp"); | |
var username = localStorage.getItem("hueUsername"); | |
ext._shutdown = function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var huepi = require('huepi'); | |
var MyHue = new huepi(); | |
var HeartbeatInterval; | |
ConnectMyHue(); | |
function consoleTlog(string) { | |
console.log(new Date() + ': ' + string); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
Blockly.Blocks['jibo_playAnim'] = { | |
init: function() { | |
this.jsonInit({ | |
"message0" : "Play Animation: %1", | |
"args0" : [ | |
{ | |
"type": "field_dropdown", | |
"name": "ANIMATION", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
void setup() { | |
Wire.begin(8); // join i2c bus with address #8 | |
Wire.onReceive(receiveEvent); // register event | |
Serial.begin(9600); // start serial for output | |
} | |
void loop() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
void setup() { | |
Wire.begin(); // join i2c bus (address optional for master) | |
} | |
byte x = 0; | |
void loop() { | |
Wire.beginTransmission(8); // transmit to device #8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User | |
def similarity_with(user) | |
# Array#& is the set intersection operator. | |
agreements = (self.likes & user.likes).size | |
agreements += (self.dislikes & user.dislikes).size | |
disagreements = (self.likes & user.dislikes).size | |
disagreements += (self.dislikes & user.likes).size | |
# Array#| is the set union operator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Title | |
AIR QUALITY STATION | |
# Picture | |
media: http://s27.postimg.org/n9159lwpf/1604581_626258354094217_2010345751_n.jpg | |
# Objective | |
the main Objective of this project is to measure pollution percentage in the air specially carbon monoxide in cities and for industrial applications. we tend to make it like as a distributed stations around the world to make a map for the pollution in the world. | |
# Duration | |
3 days | |
# Age Group | |
all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Addition | |
attr_reader :arr1, :arr2 | |
def initialize(arr1, arr2) | |
@arr1 = arr1 | |
@arr2 = arr2 | |
@sum = [] | |
end |
NewerOlder