@@ -171,7 +171,7 @@ class Tensor(T)
171
171
#
172
172
# Examples
173
173
# --------
174
- # ```crystal
174
+ # ```
175
175
# t = [[0, 1], [1, 1], [1, 1], [2, 1]].to_tensor.as_type(Float32)
176
176
# q, r = t.qr
177
177
# puts q
@@ -210,7 +210,7 @@ class Tensor(T)
210
210
#
211
211
# Examples
212
212
# --------
213
- # ```crystal
213
+ # ```
214
214
# t = [[0, 1], [1, 1], [1, 1], [2, 1]].to_tensor.as_type(Float32)
215
215
# a, b, c = t.svd
216
216
# puts a
@@ -246,7 +246,7 @@ class Tensor(T)
246
246
#
247
247
# Examples
248
248
# --------
249
- # ```crystal
249
+ # ```
250
250
# t = [[0, 1], [1, 1]].to_tensor.as_type(Float32)
251
251
# w, v = t.eigh
252
252
# puts w
@@ -281,7 +281,7 @@ class Tensor(T)
281
281
#
282
282
# Examples
283
283
# --------
284
- # ```crystal
284
+ # ```
285
285
# t = [[0, 1], [1, 1]].to_tensor.as_type(Float32)
286
286
# w, v = t.eig
287
287
# puts w
@@ -369,7 +369,7 @@ class Tensor(T)
369
369
#
370
370
# Examples
371
371
# --------
372
- # ```crystal
372
+ # ```
373
373
# t = [[0, 1], [1, 1], [1, 1], [2, 1]].to_tensor.as_type(Float32)
374
374
# t.norm # => 3.6055512
375
375
# ```
@@ -388,7 +388,7 @@ class Tensor(T)
388
388
#
389
389
# Examples
390
390
# --------
391
- # ```crystal
391
+ # ```
392
392
# t = [[1, 2], [3, 4]].to_tensor.astype(Float32)
393
393
# puts t.det # => -2.0
394
394
# ```
@@ -419,7 +419,7 @@ class Tensor(T)
419
419
#
420
420
# Examples
421
421
# --------
422
- # ```crystal
422
+ # ```
423
423
# t = [[1, 2], [3, 4]].to_tensor.as_type(Float32)
424
424
# puts t.inv
425
425
#
@@ -448,7 +448,7 @@ class Tensor(T)
448
448
#
449
449
# Examples
450
450
# --------
451
- # ```crystal
451
+ # ```
452
452
# a = [[3, 1], [1, 2]].to_tensor.astype(Float32)
453
453
# b = [9, 8].to_tensor.astype(Float32)
454
454
# puts a.solve(b)
0 commit comments