Scopira  20080306
Basic examples

Full Hello World Example

You may utilize the Scopira data objects and other algorithms without having to code up modules. The simplest example would be like this:

#include <scopira/tool/output.h>
#include <scopira/basekit/narray.h>
//BBlibs scopira
//BBtargets test.exe
int main(void)
{
thematrix.resize(4,4);
thematrix.set_all(1);
thematrix.diagonal_slice().set_all(5);
OUTPUT << thematrix;
return 0;
}

Save this as test.cpp. Run buildboss on it, make then run it:

buildboss test.cpp
make
./test.cpp

Your output should be:

autoinit: default flow for OUTPUT.
Matrix, w=4 h=4:
              0:       1:       2:       3:
    0:      5.00     1.00     1.00     1.00
    1:      1.00     5.00     1.00     1.00
    2:      1.00     1.00     5.00     1.00
    3:      1.00     1.00     1.00     5.00