37 lines
573 B
Plaintext
37 lines
573 B
Plaintext
/*
|
|
../build/kraken InputFile.krak ../krakGrammer(tabComplete) OutputFile
|
|
*/
|
|
|
|
import vector:*;
|
|
import ChrisVec:*;
|
|
import io:*;
|
|
|
|
|int| main()
|
|
{
|
|
|
|
|vector<double>| aVec.construct();
|
|
|vector<double>| bVec.construct();
|
|
|
|
|
|
|double| j;
|
|
for(|int| i = 0; i < 4; i++;)
|
|
{
|
|
j = i + 0.0;
|
|
aVec.addEnd(j);
|
|
bVec.addEnd(j);
|
|
}
|
|
|
|
bVec.addEnd(12.3);
|
|
|
|
|double| dotProd = dot<double>(aVec, bVec);
|
|
|
|
println("Dot Product has completed");
|
|
println();
|
|
println();
|
|
|double| NormSquared = norm2<double>(aVec);
|
|
println("Norm has completed");
|
|
|
|
|
|
return 0;
|
|
}
|