-
Setup
```Julia
using Statistics
using BenchmarkTools
# xs = first(Xs_train)
# xs = last(Xs_train)
xs = Xs_train[ceil(Int, (median∘eachindex)(Xs_train))]
Xs = vecofmats2tensor(xs)
encoder_d…
-
```Julia
using Statistics
using BenchmarkTools
function f1(O::M, m::LAS{M}, Hs::DenseArray{R,3}, maxT::Integer)::Vector{M} where {M @benchmark gf1($O1, $m, $Hs, $maxT, $θ)
BenchmarkTools.Trial:…
-
Hey there, I am playing around with `tf.js` for the first time and I have noticed some discrepancies from the results I get using `einsum` here versus in Python. I may be missing something, but I sear…
-
General dimensions, like numpy::dot.
Restricted to float types, for transparent blas support.
bluss updated
4 years ago
-
Considered the following example:
```python
>>> i = Idx('i')
>>> x = IndexedBase('x')
>>> c = symbols('c')
>>> f = x[i]**c
>>> f.diff(c)
log(x[i]) * x[i]**c
>>> get_indices(f)
({i},{})
>>>…
tBuLi updated
5 years ago
-
Hi, thanks for the excellent work.
I have a few doubts because I am bad at math.
I notice that you use this:
``` python
np.linalg.norm(input - weight, axis=-1)
```
To calculate the euclidean…
-
In `ggplotnim` we've seen multiple times already that users have issues with the added LAPACK dependency introduced from `geom_smooth` (the fact that it *shouldn't* end up as a dep. in the first place…
-
Currently there is no way to get a reduced density matrix representation of a density matrix, But a method that would calculate partial trace or Einstein summation of a matrix on target qubits could m…
-
```
julia> a = ones(2,2)
2×2 Matrix{Float64}:
1.0 1.0
1.0 1.0
julia> @tensor A[i,j] := a[i,1]*a[j,1]
2×2 Matrix{Float64}:
2.0 2.0
2.0 2.0
```
This is hugely surprising to me. I gue…
-
Hi,
There seems to be an issue in the tensor contraction when using the separable Fourier convolution option (`separable=True`).
The problem occurred when I tested the `plot_FNO_darcy.py` example …