Giter Site home page Giter Site logo

determinante-com-avx's Introduction

Determinante de Matriz 4x4

Este programa calcula o determinante de uma matriz 4x4 utilizando instruções AVX.

📌 Algumas instruções

# carrega da memória
__m256d vet1 = _mm256_loadu_pd(vetor1);
__m256d vet2 = _mm256_loadu_pd(vetor2);

# define os valores
__m256d vetor = _mm256_set_pd(0.0, 0.0, 1.0, 0.0);

# efetua uma soma 
_mm256_add_pd(vet1, vet2);

# efetua uma subtração 
_mm256_sub_pd(vet1, vet2);

# efetua uma multiplicação 
_mm256_mul_pd(vet1, vet2);

# embaralha os elementos
_mm256_permute_pd
_mm256_permute2f128_pd

Para mais instruções acesse a documentação.

🚀 Como usar

# Clone este repositorio
$ git clone https://github.com/mariaseverino/determinante-avx.git

# Vá até a pasta do repositorio
$ cd determinante-avx

# No terminal execute
$ gcc -mavx determinante.c -o determinante
$ .\determinante

determinante-com-avx's People

Contributors

mariaseverino avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.