Skip to content

Add nd-array support #4

@uditarora

Description

@uditarora

This issue tracks the development of v0.1 of the nd array support for this project.

Currently we will support the following things:

  1. Creation of Nd shape array
  2. Arithmetic Operations with nd shape array

The aim of the API is to look somewhat like this:

auto val = new vector<int> ({1,2,3,4});
auto shape = new vector<int> ({2,2});
Matrix<int> m(val,shape)
cout<<m<<endl;
m = m + m;
m = m - m;

In the future we want to try to add broadcasting, but not in this release.
We'll try to be as memory efficient as possible with as few allocation of memory and responsibly avoiding memory leaks by writing destructors.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions