Generated using the hn2md.py
script.
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
/** | |
##### Header file test.hpp ##### | |
*/ | |
#ifndef __TEST_HPP__ | |
#define __TEST_HPP__ | |
#include <complex> | |
#include <iostream> |
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
func @matmul(%A: memref<24x96xf32>, %B: memref<96x64xf32>, %C: memref<24x64xf32>) { | |
%cf1 = constant 0.0 : f32 | |
%AC = memref.cast %A : memref<24x96xf32> to memref<*xf32> | |
%BC = memref.cast %B : memref<96x64xf32> to memref<*xf32> | |
%CC = memref.cast %C : memref<24x64xf32> to memref<*xf32> | |
gpu.host_register %AC : memref<*xf32> | |
gpu.host_register %BC : memref<*xf32> |
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
# This is the mlir code that I was trying to compile | |
module { | |
func @matmul_linalg(%A: memref<8x8xf32>, %B: memref<8x8xf32>, %C: memref<8x8xf32>) { | |
linalg.matmul ins(%A, %B : memref<8x8xf32>, memref<8x8xf32>) | |
outs(%C: memref<8x8xf32>) | |
return | |
} | |
func @main() { | |
%A = memref.alloc() : memref<8x8xf32> |
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
# Get all the provisioned packages | |
$Packages = (get-item 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications') | Get-ChildItem | |
# Filter the list if provided a filter | |
$PackageFilter = $args[0] | |
if ([string]::IsNullOrEmpty($PackageFilter)) | |
{ | |
echo "No filter specified, attempting to re-register all provisioned apps." | |
} | |
else |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
1.000000e+00 | 0.000000e+00 | 0.000000e+00 | |
---|---|---|---|
9.997167e-01 | 2.380278e-02 | 0.000000e+00 | |
9.988124e-01 | 4.872255e-02 | 0.000000e+00 | |
9.971993e-01 | 7.478995e-02 | 0.000000e+00 | |
9.947814e-01 | 1.020289e-01 | 0.000000e+00 | |
9.914543e-01 | 1.304545e-01 | 0.000000e+00 | |
9.871055e-01 | 1.600712e-01 | 0.000000e+00 | |
9.816154e-01 | 1.908697e-01 | 0.000000e+00 | |
9.748585e-01 | 2.228248e-01 | 0.000000e+00 | |
9.667052e-01 | 2.558926e-01 | 0.000000e+00 |
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
\documentclass[10pt]{article} | |
\usepackage{fontspec} | |
\usepackage{polyglossia} | |
\setdefaultlanguage[numerals=Devanagari]{bengali} | |
\setotherlanguage{english} | |
\setmainfont[Script=Bengali]{Lohit Bengali} | |
%\newcommand{\devanagarinumeral}[1]{% | |
% \devanagaridigits{\number\csname c@#1\endcsname}} |
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
function stupid_tricks | |
% I made some functional tools for MATLAB. | |
assert(reduce_(@(x, y) x + y, [1, 2, 3, 4]) == 10) | |
% They got a little out of hand. | |
join = @(sep, args) ... | |
if_(ischar(sep), @() ... % Input check | |
reduce_(@(x, y) [x sep y], ... % Reduce to string | |
map_(@num2str, args))); % Convert args to string. |
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
// All rights reserved, | |
// Derrick Pallas | |
// License: zlib | |
#include <cmath> | |
#include <cstdlib> | |
#include <limits> | |
#include <vector> | |
template <typename fp_type> |
NewerOlder