Coder Social home page Coder Social logo

matrixh's Introduction

##简易矩阵运算库

实现了部分矩阵运算函数,目标是尽可能简洁和高效,参考了部分开源实现代码。 所有方法放在一个头文件中实现,只需要 include 头文件即可,便于使用。

编译指令:

make

g++ -std=c++11 -O3

方法详见头文件类声明部分,详细注释在实现部分

#####需要注意的部分

  • warning: 取模运算符 % 被重载为 右除,便于使用。(不是矩阵取模
  • warning: 可以使用泛型实例化,但使用 complex<T> 类型实例化矩阵时由于 toDouble 函数的原因无法使用除法等相关函数。计划通过继承实现类的拆分。
  • /= 运算由于在 除法部分 涉及到数值的类型转换,暂时没有优化,其他赋值运算符有优化,比运算再赋值快。

matrixh's People

Contributors

piratf avatar

Watchers

 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.