1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-06-20 00:06:55 +01:00

initial commit

This commit is contained in:
2013-05-01 09:35:30 -04:00
parent b1bd865e62
commit 30c8c2e205
283 changed files with 71204 additions and 67 deletions

24
examples/Makefile.am Normal file
View File

@ -0,0 +1,24 @@
if CC_GNU
COM_CFLAGS = -Wall -W -pedantic
else
if CC_INTEL
COM_CFLAGS = -Wall
endif
endif
if CXX_GNU
COM_CXXFLAGS = -Wall -W -pedantic
else
if CXX_INTEL
COM_CXXFLAGS = -Wall
endif
endif
noinst_PROGRAMS = \
ex_test
ex_test_SOURCES = ex_test.cpp
ex_test_CFLAGS = -g -O2
ex_test_LDFLAGS = -L../latan/.libs -llatan
ACLOCAL_AMFLAGS = -I .buildutils/m4

20
examples/ex_test.cpp Normal file
View File

@ -0,0 +1,20 @@
#include <iostream>
#include <latan/Global.h>
using namespace std;
using namespace Latan;
int main(void)
{
DMat m(2,2);
m(0,6) = 3;
m(1,0) = 2.5;
m(0,1) = -1;
m(1,1) = m(1,0) + m(0,1);
cout << "Here is the matrix m:\n" << m << endl;
DVec v(2);
v(0) = 4;
v(1) = v(0) - 1;
cout << "Here is the vector v:\n" << v << endl;
}

1
examples/latan Symbolic link
View File

@ -0,0 +1 @@
../latan