eigenvectors created by numpy.linalg.eig have dots instead of data

I want to calculate complex eigenvectors (Psi functions for shrodinger equation) for 20k*20k matrices, but always gets smth like this: [ 2.99009782e-09 -1.12381299e-08 -2.82346868e-08 …, 6.20967928e-34 -4.80675528e-34 -3.84848719e-35] [ 4.07337553e-08 -1.45976681e-07 -3.47961439e-07 …, 7.43558322e-34 -5.74815572e-34 -4.61317607e-35] [ 5.51921102e-07 -1.88491289e-06 -4.26000711e-06 …, 9.29535407e-34 -7.15304083e-34 -5.78846547e-35] As I understand it just replaces part of data with dots,… Read More eigenvectors created by numpy.linalg.eig have dots instead of data

Understanding gradient computation using backward() in PyTorch

I’m trying to understand the basic pytorch autograd system: x = torch.tensor(10., requires_grad=True) print(‘tensor:’,x) x.backward() print(‘gradient:’,x.grad) output: tensor: tensor(10., requires_grad=True) gradient: tensor(1.) since x is a scalar constant and no function is applied to it, I expected 0. as the gradient output. Why is the gradient 1. instead? >Solution : Whenever you are using value.backward(),… Read More Understanding gradient computation using backward() in PyTorch

Which should we choose between Effect and Either as a return type of our business services?

With the arrival of Arrow 1.1.x we got the new Effect class. Up to now, my business classes returned Either to model the effect of returning an error or a value, e.g.: @Service class CreateDepartmentUseCaseImpl( private val createDepartmentsDrivenPort: CreateDepartmentsDrivenPort, private val getDepartmentByCodeDrivenPort: GetDepartmentByCodeDrivenPort ) : CreateDepartmentUseCase { override suspend fun execute(param: Department): Either<DomainError, Department> =… Read More Which should we choose between Effect and Either as a return type of our business services?

does the filter with new date() accept format other than yyyy-mm-dd?

I have a response from mydatepicker in the following format { "isRange":false, "singleDate":{ "date":{ "year":2022, "month":5, "day":13 }, "jsDate":"2022-05-13T03:00:00.000Z", "formatted":"13-05-2022", "epoc":1652410800 }, "dateRange":null } I have a filter that uses the new date(), but it seems that it doesn’t accept it accepting the date in the value dd-mm-yyyy and I would need to display it… Read More does the filter with new date() accept format other than yyyy-mm-dd?