Skip to content

Commit 4758edd

Browse files
author
Denis Jelovina
committed
Remove commented-out example code for sparse matrix operations in ALP tutorial
1 parent de7dfdb commit 4758edd

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

ALP_Tutorial.tex

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -410,22 +410,6 @@ \section{Solution to Exercise 8}\label{sec:simple_example}
410410

411411
using namespace grb;
412412

413-
% A =
414-
% \begin{bmatrix}
415-
% 0 & 1 & 2 \\
416-
% 0 & 3 & 4 \\
417-
% 5 & 6 & 0
418-
% \end{bmatrix},\quad
419-
% Step 1: Constructing a 3x3 sparse matrix A.
420-
% Step 2: Creating vector x = [1, 2, 3]^T.
421-
% Step 3: Computing y = A·x under plus‐times semiring.
422-
% Step 4: Computing z = x ⊙ y (element‐wise multiply).
423-
% Step 5: Computing dot_val = xᵀ·x under plus‐times semiring.
424-
% x = [ 1, 2, 3 ]
425-
% y = A·x = [ 8, 18, 17 ]
426-
% z = x ⊙ y = [ 8, 36, 51 ]
427-
% dot(x,x) = 14
428-
429413
// Indices and values for our sparse 3x3 matrix A:
430414
//
431415
// A = [ 1 0 2 ]

0 commit comments

Comments
 (0)