This file contains hidden or 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 <iostream> | |
#include <iomanip> | |
#include <cstdlib> | |
#include <thrust/device_vector.h> | |
/* | |
* --- Using Thrust vectors in kernel functions --- | |
* This example demonstrates how we can use device vectors (vectors that live | |
* in GPU) as arguments to a kernel launched by the CPU. |
This file contains hidden or 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
import sys | |
import uuid | |
from PySide import QtCore, QtGui | |
COLOR_MAP = { | |
'WIP': '#994', | |
'Unassigned': '#944', | |
'Assigned': '#494', | |
} |
This file contains hidden or 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 ParametricButterflyPillow | |
{ | |
public: | |
explicit ParametricButterflyPillow(const double radius) {} | |
GVector3 evaluate(const double u, const double v) const | |
{ | |
const double theta = 2.0 * Pi * u; | |
const double phi = Pi * v; | |
return GVector3( |
NewerOlder