Code quality: some renaming here and there

This commit is contained in:
Philippe Tillet
2015-10-05 14:35:46 -04:00
parent 3e4f147fbc
commit 8daf13da2e
22 changed files with 36 additions and 23 deletions

17
examples/simple.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include "isaac/array.h"
namespace sc = isaac;
int main()
{
std::vector<float> data(70);
for(unsigned int i = 0 ; i < data.size(); ++i)
data[i] = i;
sc::array A = sc::array(10, 7, data);
std::cout << A << std::endl;
std::cout << sc::diag(A, 1) << std::endl;
std::cout << sc::diag(A, -1) << std::endl;
std::cout << sc::diag(A, -7) << std::endl;
std::cout << sc::row(A, 3) << std::endl;
}