[arrayfire] 239/248: Removed gfor unsupported functionality

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Nov 17 15:54:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.

commit ace69d296b4ad33d955849eba6f941df1d1327a4
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Wed Nov 11 15:43:49 2015 -0500

    Removed gfor unsupported functionality
---
 docs/pages/gfor.md | 32 --------------------------------
 1 file changed, 32 deletions(-)

diff --git a/docs/pages/gfor.md b/docs/pages/gfor.md
index 28410a7..a7ed9a1 100644
--- a/docs/pages/gfor.md
+++ b/docs/pages/gfor.md
@@ -75,14 +75,6 @@ gfor (seq k, 0, n-1) {
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.cpp}
-array A = constant(1,n,n,m);
-array B = constant(1,n,n);
-gfor (seq k, 0,m-1) {
-   A(span,span,k) = A(span,span,k) * B; // matrix-matrix multiply
-}
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.cpp}
 array A = randu(n,m);
 array B = constant(0,n,m);
 gfor (seq k, 0, m-1) {
@@ -122,30 +114,6 @@ gfor (seq ii, n)
   H(span,ii) = compute(A(span,ii), B(span,ii), ep);
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-Multiplications {#gfor_mul}
----------------
-
-ArrayFire supports bulk multiplications of vector-vector, matrix-vector, and
-matrix-matrix types using GFOR. This is especially useful with many small
-matrices.
-
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.cpp}
-array A = constant(1,n,n);
-array B = constant(1,n,1);
-array C = constant(0,n,m);
-gfor (seq k, n)
-  B(k) = A(k,span) * A(span,k); // vector-vector multiply
-
-A = constant(1,n,n,m);
-gfor (seq k, m)
-  C(span,k) = A(span,span,k) * B;  // matrix-vector multiply
-
-A = constant(1,n,n,m);
-B = constant(1,n,n);
-gfor (seq k, m)
-  A(span,span,k) = A(span,span,k) * B;  // matrix-matrix multiply
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
 The Iterator {#gfor_iterator}
 ------------
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list