Code Monkey home page Code Monkey logo

vectormatrixelementaryoperations's Introduction

General Information

This is a simple and small library containing my own implementations of row vectors (myRowVector<T>), column vectors (myColumnVector<T>), and matrices (myMatrix<T>) for a given C++ data type T. All these three classes are derived from a base vector class (myVector<T>), which is designed to be an abstract class.

The following operations are supported:

  • Addition and subtraction of row vectors.
  • Addition and subtraction of column vectors.
  • Addition and subtraction of matrices.
  • Negation of row vectors, column vectors, and matrices.
  • Scalar multiplication and division of row vectors.
  • Scalar multiplication and division of column vectors.
  • Scalar multiplication and division of matrices.
  • Multiplication of a row vector with a column vector, yielding a scalar.
  • Multiplication of a column vector with a row vector, yielding a matrix.
  • Multiplication of a row vector with a matrix, yielding a row vector.
  • Multiplication of a matrix with a column vector, yielding a column vector.
  • Matrix-matrix multiplication.

Only the following data types for T are supported thus far: int, float, and double.

Compilation

To create a local copy of this repository, simply click 'Download'. Alternatively, clone it by first navigating to the path you want to store the local copy and then executing the following on the command line:

git clone https://github.com/liweiyap/VectorMatrixElementaryOperations.git

Compilation relies on the CMake build system. The code has been tested with recent versions of the Clang C++ compiler. To compile and run all tests, execute the following in the root of the repository:

mkdir build
cd build
cmake ..
make
./main

vectormatrixelementaryoperations's People

Contributors

liweiyap 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.