summaryrefslogtreecommitdiff
path: root/tests/examplefiles/scilab/bench_chol.tst
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examplefiles/scilab/bench_chol.tst')
-rw-r--r--tests/examplefiles/scilab/bench_chol.tst23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/examplefiles/scilab/bench_chol.tst b/tests/examplefiles/scilab/bench_chol.tst
new file mode 100644
index 00000000..d03eea05
--- /dev/null
+++ b/tests/examplefiles/scilab/bench_chol.tst
@@ -0,0 +1,23 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2007-2008 - INRIA
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+//==============================================================================
+// Benchmark for chol function
+//==============================================================================
+
+// <-- BENCH NB RUN : 10 -->
+
+stacksize(30000000);
+
+a = 0;
+b = 0;
+a = rand(900, 900, 'n');
+a = a'*a;
+
+// <-- BENCH START -->
+b = chol(a);
+// <-- BENCH END -->