RobinHankin / stokes

methods for exterior calculus
https://robinhankin.github.io/stokes/
3 stars 0 forks source link

Infelicity in dovs() for zero kform #72

Closed RobinHankin closed 2 years ago

RobinHankin commented 2 years ago
> dovs(0*kform(spray(matrix(1:6,2,3))))
[1] -Inf
Warning message:
In max(index(K)) : no non-missing arguments to max; returning -Inf 
> dovs(0*ktensor(spray(matrix(1:6,2,3))))
[1] -Inf
Warning message:
In max(index(K)) : no non-missing arguments to max; returning -Inf
> 

Not 100% sure what the desirable behaviour is, but surely a warning is not appropriate here.

RobinHankin commented 2 years ago

Maybe a warning is appropriate, IDK