package owl
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml Scientific and Engineering Computing
Install
dune-project
Dependency
Authors
Maintainers
Sources
owl-1.0.1.tbz
sha256=72ca9f6edd302fdfa16c7559cedac7ac2c885466a367e17ea1ea8807b2dd13ef
sha512=72a60fb5b0ee4eea6cd8012aab9a492a32483feb218c1b6b4b913e0af985fba288113164e5af1129c0b5fffdb49d7b9aded6647238626b6561dc7125fdeb4eb5
doc/src/owl/owl_sparse_common.ml.html
Source file owl_sparse_common.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460# 1 "src/owl/sparse/owl_sparse_common.ml" (* * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk> *) open Bigarray open Eigen.Types type ('a, 'b) kind = ('a, 'b) Bigarray.kind type ('a, 'b) eigen_mat = ('a, 'b) spmat (* interface to eigen functions *) let _eigen_create : type a b. float -> (a, b) kind -> int -> int -> (a, b) eigen_mat = fun reserve k m n -> match k with | Float32 -> SPMAT_S (Eigen.Sparse.S.create ~reserve m n) | Float64 -> SPMAT_D (Eigen.Sparse.D.create ~reserve m n) | Complex32 -> SPMAT_C (Eigen.Sparse.C.create ~reserve m n) | Complex64 -> SPMAT_Z (Eigen.Sparse.Z.create ~reserve m n) | _ -> failwith "_eigen_create: unsupported operation" let _eigen_eye : type a b. (a, b) kind -> int -> (a, b) eigen_mat = fun k m -> match k with | Float32 -> SPMAT_S (Eigen.Sparse.S.eye m) | Float64 -> SPMAT_D (Eigen.Sparse.D.eye m) | Complex32 -> SPMAT_C (Eigen.Sparse.C.eye m) | Complex64 -> SPMAT_Z (Eigen.Sparse.Z.eye m) | _ -> failwith "_eigen_create: unsupported operation" let _eigen_nnz : type a b. (a, b) eigen_mat -> int = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.( prune x (Owl_const.zero Float32) 0.; nnz x) | SPMAT_D x -> Eigen.Sparse.D.( prune x (Owl_const.zero Float64) 0.; nnz x) | SPMAT_C x -> Eigen.Sparse.C.( prune x (Owl_const.zero Complex32) 0.; nnz x) | SPMAT_Z x -> Eigen.Sparse.Z.( prune x (Owl_const.zero Complex64) 0.; nnz x) let _eigen_set : type a b. (a, b) eigen_mat -> int -> int -> a -> unit = fun x i j a -> match x with | SPMAT_S x -> Eigen.Sparse.S.set x i j a | SPMAT_D x -> Eigen.Sparse.D.set x i j a | SPMAT_C x -> Eigen.Sparse.C.set x i j a | SPMAT_Z x -> Eigen.Sparse.Z.set x i j a let _eigen_get : type a b. (a, b) eigen_mat -> int -> int -> a = fun x i j -> match x with | SPMAT_S x -> Eigen.Sparse.S.get x i j | SPMAT_D x -> Eigen.Sparse.D.get x i j | SPMAT_C x -> Eigen.Sparse.C.get x i j | SPMAT_Z x -> Eigen.Sparse.Z.get x i j let _eigen_insert : type a b. (a, b) eigen_mat -> int -> int -> a -> unit = fun x i j a -> match x with | SPMAT_S x -> Eigen.Sparse.S.insert x i j a | SPMAT_D x -> Eigen.Sparse.D.insert x i j a | SPMAT_C x -> Eigen.Sparse.C.insert x i j a | SPMAT_Z x -> Eigen.Sparse.Z.insert x i j a let _eigen_reset : type a b. (a, b) eigen_mat -> unit = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.reset x | SPMAT_D x -> Eigen.Sparse.D.reset x | SPMAT_C x -> Eigen.Sparse.C.reset x | SPMAT_Z x -> Eigen.Sparse.Z.reset x let _eigen_copy : type a b. (a, b) eigen_mat -> (a, b) eigen_mat = fun x -> match x with | SPMAT_S x -> SPMAT_S (Eigen.Sparse.S.clone x) | SPMAT_D x -> SPMAT_D (Eigen.Sparse.D.clone x) | SPMAT_C x -> SPMAT_C (Eigen.Sparse.C.clone x) | SPMAT_Z x -> SPMAT_Z (Eigen.Sparse.Z.clone x) let _eigen_transpose : type a b. (a, b) eigen_mat -> (a, b) eigen_mat = fun x -> match x with | SPMAT_S x -> SPMAT_S (Eigen.Sparse.S.transpose x) | SPMAT_D x -> SPMAT_D (Eigen.Sparse.D.transpose x) | SPMAT_C x -> SPMAT_C (Eigen.Sparse.C.transpose x) | SPMAT_Z x -> SPMAT_Z (Eigen.Sparse.Z.transpose x) let _eigen_diagonal : type a b. (a, b) eigen_mat -> (a, b) eigen_mat = fun x -> match x with | SPMAT_S x -> SPMAT_S (Eigen.Sparse.S.diagonal x) | SPMAT_D x -> SPMAT_D (Eigen.Sparse.D.diagonal x) | SPMAT_C x -> SPMAT_C (Eigen.Sparse.C.diagonal x) | SPMAT_Z x -> SPMAT_Z (Eigen.Sparse.Z.diagonal x) let _eigen_trace : type a b. (a, b) eigen_mat -> a = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.trace x | SPMAT_D x -> Eigen.Sparse.D.trace x | SPMAT_C x -> Eigen.Sparse.C.trace x | SPMAT_Z x -> Eigen.Sparse.Z.trace x let _eigen_row : type a b. (a, b) eigen_mat -> int -> (a, b) eigen_mat = fun x i -> match x with | SPMAT_S x -> SPMAT_S (Eigen.Sparse.S.row x i) | SPMAT_D x -> SPMAT_D (Eigen.Sparse.D.row x i) | SPMAT_C x -> SPMAT_C (Eigen.Sparse.C.row x i) | SPMAT_Z x -> SPMAT_Z (Eigen.Sparse.Z.row x i) let _eigen_col : type a b. (a, b) eigen_mat -> int -> (a, b) eigen_mat = fun x j -> match x with | SPMAT_S x -> SPMAT_S (Eigen.Sparse.S.col x j) | SPMAT_D x -> SPMAT_D (Eigen.Sparse.D.col x j) | SPMAT_C x -> SPMAT_C (Eigen.Sparse.C.col x j) | SPMAT_Z x -> SPMAT_Z (Eigen.Sparse.Z.col x j) let _eigen_is_compressed : type a b. (a, b) eigen_mat -> bool = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.is_compressed x | SPMAT_D x -> Eigen.Sparse.D.is_compressed x | SPMAT_C x -> Eigen.Sparse.C.is_compressed x | SPMAT_Z x -> Eigen.Sparse.Z.is_compressed x let _eigen_compress : type a b. (a, b) eigen_mat -> unit = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.compress x | SPMAT_D x -> Eigen.Sparse.D.compress x | SPMAT_C x -> Eigen.Sparse.C.compress x | SPMAT_Z x -> Eigen.Sparse.Z.compress x let _eigen_uncompress : type a b. (a, b) eigen_mat -> unit = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.uncompress x | SPMAT_D x -> Eigen.Sparse.D.uncompress x | SPMAT_C x -> Eigen.Sparse.C.uncompress x | SPMAT_Z x -> Eigen.Sparse.Z.uncompress x let _eigen_valueptr : type a b. (a, b) eigen_mat -> (a, b, c_layout) Array1.t = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.valueptr x | SPMAT_D x -> Eigen.Sparse.D.valueptr x | SPMAT_C x -> Eigen.Sparse.C.valueptr x | SPMAT_Z x -> Eigen.Sparse.Z.valueptr x let _eigen_innerindexptr : type a b. (a, b) eigen_mat -> (int64, int64_elt, c_layout) Array1.t = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.innerindexptr x | SPMAT_D x -> Eigen.Sparse.D.innerindexptr x | SPMAT_C x -> Eigen.Sparse.C.innerindexptr x | SPMAT_Z x -> Eigen.Sparse.Z.innerindexptr x let _eigen_outerindexptr : type a b. (a, b) eigen_mat -> (int64, int64_elt, c_layout) Array1.t = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.outerindexptr x | SPMAT_D x -> Eigen.Sparse.D.outerindexptr x | SPMAT_C x -> Eigen.Sparse.C.outerindexptr x | SPMAT_Z x -> Eigen.Sparse.Z.outerindexptr x let _eigen_print : type a b. (a, b) eigen_mat -> unit = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.print x | SPMAT_D x -> Eigen.Sparse.D.print x | SPMAT_C x -> Eigen.Sparse.C.print x | SPMAT_Z x -> Eigen.Sparse.Z.print x let _eigen_prune : type a b. (a, b) eigen_mat -> a -> float -> unit = fun x a b -> match x with | SPMAT_S x -> Eigen.Sparse.S.prune x a b | SPMAT_D x -> Eigen.Sparse.D.prune x a b | SPMAT_C x -> Eigen.Sparse.C.prune x a b | SPMAT_Z x -> Eigen.Sparse.Z.prune x a b let _eigen_is_zero : type a b. (a, b) eigen_mat -> bool = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.is_zero x | SPMAT_D x -> Eigen.Sparse.D.is_zero x | SPMAT_C x -> Eigen.Sparse.C.is_zero x | SPMAT_Z x -> Eigen.Sparse.Z.is_zero x let _eigen_is_positive : type a b. (a, b) eigen_mat -> bool = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.is_positive x | SPMAT_D x -> Eigen.Sparse.D.is_positive x | SPMAT_C x -> Eigen.Sparse.C.is_positive x | SPMAT_Z x -> Eigen.Sparse.Z.is_positive x let _eigen_is_negative : type a b. (a, b) eigen_mat -> bool = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.is_negative x | SPMAT_D x -> Eigen.Sparse.D.is_negative x | SPMAT_C x -> Eigen.Sparse.C.is_negative x | SPMAT_Z x -> Eigen.Sparse.Z.is_negative x let _eigen_is_nonpositive : type a b. (a, b) eigen_mat -> bool = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.is_nonpositive x | SPMAT_D x -> Eigen.Sparse.D.is_nonpositive x | SPMAT_C x -> Eigen.Sparse.C.is_nonpositive x | SPMAT_Z x -> Eigen.Sparse.Z.is_nonpositive x let _eigen_is_nonnegative : type a b. (a, b) eigen_mat -> bool = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.is_nonnegative x | SPMAT_D x -> Eigen.Sparse.D.is_nonnegative x | SPMAT_C x -> Eigen.Sparse.C.is_nonnegative x | SPMAT_Z x -> Eigen.Sparse.Z.is_nonnegative x let _eigen_equal : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> bool = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> Eigen.Sparse.S.is_equal x y | SPMAT_D x, SPMAT_D y -> Eigen.Sparse.D.is_equal x y | SPMAT_C x, SPMAT_C y -> Eigen.Sparse.C.is_equal x y | SPMAT_Z x, SPMAT_Z y -> Eigen.Sparse.Z.is_equal x y let _eigen_not_equal : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> bool = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> Eigen.Sparse.S.is_unequal x y | SPMAT_D x, SPMAT_D y -> Eigen.Sparse.D.is_unequal x y | SPMAT_C x, SPMAT_C y -> Eigen.Sparse.C.is_unequal x y | SPMAT_Z x, SPMAT_Z y -> Eigen.Sparse.Z.is_unequal x y let _eigen_greater : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> bool = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> Eigen.Sparse.S.is_greater x y | SPMAT_D x, SPMAT_D y -> Eigen.Sparse.D.is_greater x y | SPMAT_C x, SPMAT_C y -> Eigen.Sparse.C.is_greater x y | SPMAT_Z x, SPMAT_Z y -> Eigen.Sparse.Z.is_greater x y let _eigen_less : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> bool = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> Eigen.Sparse.S.is_smaller x y | SPMAT_D x, SPMAT_D y -> Eigen.Sparse.D.is_smaller x y | SPMAT_C x, SPMAT_C y -> Eigen.Sparse.C.is_smaller x y | SPMAT_Z x, SPMAT_Z y -> Eigen.Sparse.Z.is_smaller x y let _eigen_greater_equal : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> bool = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> Eigen.Sparse.S.equal_or_greater x y | SPMAT_D x, SPMAT_D y -> Eigen.Sparse.D.equal_or_greater x y | SPMAT_C x, SPMAT_C y -> Eigen.Sparse.C.equal_or_greater x y | SPMAT_Z x, SPMAT_Z y -> Eigen.Sparse.Z.equal_or_greater x y let _eigen_less_equal : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> bool = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> Eigen.Sparse.S.equal_or_smaller x y | SPMAT_D x, SPMAT_D y -> Eigen.Sparse.D.equal_or_smaller x y | SPMAT_C x, SPMAT_C y -> Eigen.Sparse.C.equal_or_smaller x y | SPMAT_Z x, SPMAT_Z y -> Eigen.Sparse.Z.equal_or_smaller x y let _eigen_add : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> (a, b) eigen_mat = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> SPMAT_S (Eigen.Sparse.S.add x y) | SPMAT_D x, SPMAT_D y -> SPMAT_D (Eigen.Sparse.D.add x y) | SPMAT_C x, SPMAT_C y -> SPMAT_C (Eigen.Sparse.C.add x y) | SPMAT_Z x, SPMAT_Z y -> SPMAT_Z (Eigen.Sparse.Z.add x y) let _eigen_sub : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> (a, b) eigen_mat = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> SPMAT_S (Eigen.Sparse.S.sub x y) | SPMAT_D x, SPMAT_D y -> SPMAT_D (Eigen.Sparse.D.sub x y) | SPMAT_C x, SPMAT_C y -> SPMAT_C (Eigen.Sparse.C.sub x y) | SPMAT_Z x, SPMAT_Z y -> SPMAT_Z (Eigen.Sparse.Z.sub x y) let _eigen_mul : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> (a, b) eigen_mat = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> SPMAT_S (Eigen.Sparse.S.mul x y) | SPMAT_D x, SPMAT_D y -> SPMAT_D (Eigen.Sparse.D.mul x y) | SPMAT_C x, SPMAT_C y -> SPMAT_C (Eigen.Sparse.C.mul x y) | SPMAT_Z x, SPMAT_Z y -> SPMAT_Z (Eigen.Sparse.Z.mul x y) let _eigen_div : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> (a, b) eigen_mat = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> SPMAT_S (Eigen.Sparse.S.div x y) | SPMAT_D x, SPMAT_D y -> SPMAT_D (Eigen.Sparse.D.div x y) | SPMAT_C x, SPMAT_C y -> SPMAT_C (Eigen.Sparse.C.div x y) | SPMAT_Z x, SPMAT_Z y -> SPMAT_Z (Eigen.Sparse.Z.div x y) let _eigen_gemm : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> (a, b) eigen_mat = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> SPMAT_S (Eigen.Sparse.S.gemm x y) | SPMAT_D x, SPMAT_D y -> SPMAT_D (Eigen.Sparse.D.gemm x y) | SPMAT_C x, SPMAT_C y -> SPMAT_C (Eigen.Sparse.C.gemm x y) | SPMAT_Z x, SPMAT_Z y -> SPMAT_Z (Eigen.Sparse.Z.gemm x y) let _eigen_add_scalar : type a b. (a, b) eigen_mat -> a -> (a, b) eigen_mat = fun x a -> match x with | SPMAT_S x -> SPMAT_S (Eigen.Sparse.S.add_scalar x a) | SPMAT_D x -> SPMAT_D (Eigen.Sparse.D.add_scalar x a) | SPMAT_C x -> SPMAT_C (Eigen.Sparse.C.add_scalar x a) | SPMAT_Z x -> SPMAT_Z (Eigen.Sparse.Z.add_scalar x a) let _eigen_sub_scalar : type a b. (a, b) eigen_mat -> a -> (a, b) eigen_mat = fun x a -> match x with | SPMAT_S x -> SPMAT_S (Eigen.Sparse.S.sub_scalar x a) | SPMAT_D x -> SPMAT_D (Eigen.Sparse.D.sub_scalar x a) | SPMAT_C x -> SPMAT_C (Eigen.Sparse.C.sub_scalar x a) | SPMAT_Z x -> SPMAT_Z (Eigen.Sparse.Z.sub_scalar x a) let _eigen_mul_scalar : type a b. (a, b) eigen_mat -> a -> (a, b) eigen_mat = fun x a -> match x with | SPMAT_S x -> SPMAT_S (Eigen.Sparse.S.mul_scalar x a) | SPMAT_D x -> SPMAT_D (Eigen.Sparse.D.mul_scalar x a) | SPMAT_C x -> SPMAT_C (Eigen.Sparse.C.mul_scalar x a) | SPMAT_Z x -> SPMAT_Z (Eigen.Sparse.Z.mul_scalar x a) let _eigen_div_scalar : type a b. (a, b) eigen_mat -> a -> (a, b) eigen_mat = fun x a -> match x with | SPMAT_S x -> SPMAT_S (Eigen.Sparse.S.div_scalar x a) | SPMAT_D x -> SPMAT_D (Eigen.Sparse.D.div_scalar x a) | SPMAT_C x -> SPMAT_C (Eigen.Sparse.C.div_scalar x a) | SPMAT_Z x -> SPMAT_Z (Eigen.Sparse.Z.div_scalar x a) let _eigen_min : type a b. (a, b) eigen_mat -> a = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.min x | SPMAT_D x -> Eigen.Sparse.D.min x | _ -> failwith "_eigen_min: unsupported operation" let _eigen_max : type a b. (a, b) eigen_mat -> a = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.max x | SPMAT_D x -> Eigen.Sparse.D.max x | _ -> failwith "_eigen_max: unsupported operation" let _eigen_min2 : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> (a, b) eigen_mat = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> SPMAT_S (Eigen.Sparse.S.min2 x y) | SPMAT_D x, SPMAT_D y -> SPMAT_D (Eigen.Sparse.D.min2 x y) | _ -> failwith "_eigen_min2: unsupported operation" let _eigen_max2 : type a b. (a, b) eigen_mat -> (a, b) eigen_mat -> (a, b) eigen_mat = fun x y -> match x, y with | SPMAT_S x, SPMAT_S y -> SPMAT_S (Eigen.Sparse.S.max2 x y) | SPMAT_D x, SPMAT_D y -> SPMAT_D (Eigen.Sparse.D.max2 x y) | _ -> failwith "_eigen_max2: unsupported operation" let _eigen_sum : type a b. (a, b) eigen_mat -> a = fun x -> match x with | SPMAT_S x -> Eigen.Sparse.S.sum x | SPMAT_D x -> Eigen.Sparse.D.sum x | SPMAT_C x -> Eigen.Sparse.C.sum x | SPMAT_Z x -> Eigen.Sparse.Z.sum x let _eigen_abs : type a b. (a, b) eigen_mat -> (a, b) eigen_mat = fun x -> match x with | SPMAT_S x -> SPMAT_S (Eigen.Sparse.S.abs x) | SPMAT_D x -> SPMAT_D (Eigen.Sparse.D.abs x) | _ -> failwith "_eigen_abs: unsupported operation" let _eigen_neg : type a b. (a, b) eigen_mat -> (a, b) eigen_mat = fun x -> match x with | SPMAT_S x -> SPMAT_S (Eigen.Sparse.S.neg x) | SPMAT_D x -> SPMAT_D (Eigen.Sparse.D.neg x) | SPMAT_C x -> SPMAT_C (Eigen.Sparse.C.neg x) | SPMAT_Z x -> SPMAT_Z (Eigen.Sparse.Z.neg x) (* ends here *)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>