Skip to content

Instantly share code, notes, and snippets.

View juliosandino's full-sized avatar

Julio Sandino juliosandino

  • Santa Cruz, California
View GitHub Profile
HA5 ReadMe File
Group: 44
Students: Julio Sandino, Axel Garcia, Walter Condori
The program runs the function "matmul" with matrix A and B.
Then it runs "tmatmul" with matrix A and the transpose of B.
Then it runs "tilingmatmul" with Matrix A and B, with tile size of 4.
The program prints the time for all of them sequentially.
It also checks that all of the Output Matrices are the same.
@juliosandino
juliosandino / matmul.c
Last active March 5, 2019 21:59
HA5 for cmpe110
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include <stdlib.h>
#define SIZE 1024
volatile __uint64_t A[SIZE][SIZE];
volatile __uint64_t B[SIZE][SIZE];
@juliosandino
juliosandino / List.c
Created October 17, 2018 07:08
pa2 so pichael can see and judge my code. he already took the class so its cool.
#include <stdio.h>
#include <stdlib.h>
#include "List.h"
// structs --------------------------------------------------------------------
// private NodeObj type
typedef struct NodeObj {
int data;
struct NodeObj* next;
#include <iostream>
#include <string>
#include <iomanip>
using std::cout;
using std::string;
const string silver = "silver";
const string gold = "gold";
const string platinum = "platinum";
public class Loops{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int rows = 0;
System.out.print("Chose a number: ");
@juliosandino
juliosandino / Main.java
Last active September 26, 2016 18:40
First Assignment for CS11 @ UC SAN Diego
package sandino.julio;
import turtleClasses.ModelDisplay;
import turtleClasses.Turtle;
import turtleClasses.World;
import java.awt.*;
public class Main extends Turtle{
[
["Life isn’t about getting and having, it’s about giving and being.", "Kevin Kruse"],
["Whatever the mind of man can conceive and believe, it can achieve.", "Napoleon Hill"],
["Strive not to be a success, but rather to be of value.", "Albert Einstein"],
["Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.", "Robert Frost"],
["I attribute my success to this: I never gave or took any excuse.", "Florence Nightingale"],
["You miss 100% of the shots you don’t take.", "Wayne Gretzky"],
["I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed.", "Michael Jordan"],
["The most difficult thing is the decision to act, the rest is merely tenacity.", "Amelia Earhart"],
["Every strike brings me closer to the next home run.", "Babe Ruth"],