Skip to content

Instantly share code, notes, and snippets.

View indirivacua's full-sized avatar
🧉
Segmentation fault (core dumped)

Oscar Stanchi indirivacua

🧉
Segmentation fault (core dumped)
View GitHub Profile
// ==UserScript==
// @name Overleaf Editor Enhancer
// @namespace https://gist.github.com/indirivacua/1b9c878c5b7e3487be7ca5fb384ff286
// @version 0.1
// @description This script aims to improve productivity and user experience on Overleaf LaTeX editor.
// @author indirivacua
// @match https://*.overleaf.com/project/*
// @icon https://images.ctfassets.net/nrgyaltdicpt/h9dpHuVys19B1sOAWvbP6/5f8d4c6d051f63e4ba450befd56f9189/ologo_square_colour_light_bg.svg
// @grant none
// @license MIT

Matemática

El producto tensorial (también conocido como producto externo) es una operación binaria que toma dos tensores (por ejemplo, vectores o matrices) y produce un nuevo tensor de mayor rango. El producto tensorial se puede aplicar en diversos contextos a vectores, matrices, tensores y espacios vectoriales. Existen casos especiales del mismo:

  • El producto de Kronecker es una operación sobre dos matrices de tamaño arbitrario que da como resultado una matriz bloque. Es un caso especial del producto tensorial cuando se aplica a matrices.
  • El producto exterior (outer product) es una operación matemática que toma dos vectores y produce una matriz. Es el caso especial del producto tensorial cuando los operandos son vectores.

Producto tensorial de dos vectores:

Supongamos que tenemos dos vectores columna u y v de dimensiones (m, 1) y `(n

@indirivacua
indirivacua / criterioRouth.m
Last active June 20, 2022 23:48
Criterio de estabilidad de Routh-Hurwitz
%[m,r]=criterioRouth([1 1 3 5 2 1])
%[m,r]=criterioRouth([1 2 4 8 5])
%[m,r]=criterioRouth([1 2 11 18 18])
function [m,r] = criterioRouth(p)
s=size(p);
%polinomio de orden N implica que la matriz resultado sea de NxM con M=ceil(N/2)
%ej. si O(p(s))=6 entonces O(m)=6x3, O(p(s))=5 entonces O(m)=5x3
m=zeros(s(1,2),ceil(s(1,2)/2));
m=sym(m); %Create Symbolic Matrices (esto es para poder usar syms e para e->0)
%primeras dos filas
// http://brmodstudio.forumeiros.com
// http://brmodstudio.forumeiros.com
// http://brmodstudio.forumeiros.com
#define _CRT_SECURE_NO_WARNINGS
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <memory>
#include <vector>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<title>tex texample</title>
</head>
<body>
$$
\sum_{k=-\infty}^{+\infty} x[k] y^{*}[k]=\int_{-1 / 2}^{+1 / 2} X\left(e^{j 2 \pi s}\right) Y^{*}\left(e^{j 2 \pi s}\right) d s
$$
@indirivacua
indirivacua / MIPS64.xml
Created June 15, 2019 22:55
WinMIPS64 Syntax Highlighting for Notepad++. To see how to install it use the next link: http://docs.notepad-plus-plus.org/index.php/User_Defined_Language_Files#How_to_install_user_defined_language_files
<NotepadPlus>
<UserLang name="MIPS64" ext=".s" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00# 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1">0x</Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@indirivacua
indirivacua / win.txt
Created February 17, 2019 16:08
CLEO for Open/Close Car Window in GTA SA
{
https://github.com/DK22Pac/plugin-sdk/blob/master/plugin_sa/game_sa/CAutomobile.h
https://github.com/DK22Pac/plugin-sdk/blob/master/plugin_sa/game_sa/rw/rwcore.h -> RwFrame & RwMatrix (RwMatrixTag)
https://github.com/DK22Pac/plugin-sdk/blob/master/plugin_sa/game_sa/CEntity.h
}
{$CLEO}
0000: