Skip to content

A multi-dimension container wich is general purpose, easy to use and cache-friendly.

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

yscialom/matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ysc::matrix

A general-purpose multi-dimension container of static dimensions.

Example

#include <matrix.hpp>
#include <iostream>
#include <string>

int main()
{
    ysc::matrix<int, 3, 3> const data = {
        1, 2, 3,
        4, 5, 6,
        7, 8, 9
    };

    std::cout << data(0, 0) + data(1, 1) + data(2, 2) << '\n';

    ysc::matrix<std::string, 3, 3> data_as_string;
    for (int i=0 ; i < data_as_string.dimensions[0] ; ++i) {
        for (int j=0 ; j < data_as_string.dimensions[1] ; ++j) {
            data_as_string(i, j) = std::to_string(data(i, j));
        }
    }

    std::cout << "|_log(data(1, 1))_| is " << data_as_string(1, 1).size() << ".\n";
}

Feature

todo...

About

A multi-dimension container wich is general purpose, easy to use and cache-friendly.

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published