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
# We need this to initialize python packages |
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
%STABILITY OF QR | |
N = 100; | |
C = []; | |
S0 = []; S1 = []; S2 = []; T0 = []; T1 = []; T2 = []; | |
for k = 1:N | |
c = 10^(10*rand); C = [C c]; | |
% Create m by n (m >= n) matrix with condition number c | |
m = 1 + round(100*rand); | |
n = min(1+round(m*rand),m); | |
A = givcond(m,n,c); |
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
%################################################################### | |
% Homework #3. Number of features in a 24x24 pixel image | |
% Student: Pablo J. Estrada. ID: 2014-25245 | |
%################################################################### | |
% Here are our patterns. We need only specify their dimensions. | |
patt_x = [2,1,2,3,1] | |
patt_y = [1,2,2,1,3] | |
function res = count(x, y, patt_len,patt_x,patt_y) |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
#pragma once | |
#pragma warning(push) | |
#pragma warning(disable:4996) | |
#include <cassert> | |
#include <memory> | |
#include <vector> | |
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
void print_variable(char *variable) | |
{ | |
printf("Variable is %d\n",*variable); | |
} | |
int main() | |
{ | |
int variable = 1; | |
print_variable(&variable); | |
} |
NewerOlder