Variation in prefix sum

2022-12-05 Thread Soham Mukherjee via Digitalmars-d-learn
I'm attempting to parallelize some program that solves recursive linear equations. Some of these, I believe, might be modified into prefix sums. Here are a handful of examples of the equations I'm dealing with. The conventional prefix sum is as follows: ``` y[i] = y[i-1] + x[i] ``` One

RDBMS internal operation

2022-11-07 Thread Soham Mukherjee via Digitalmars-d-learn
I have a table with ten columns and would want to choose column 1 and column 9 from it. How many columns should be selected internally in RDBMS? Also, I'm not an expert in 3-Level Architecture of DBMS to understand [data independence](https://www.scaler.com/topics/data-independence-in-dbms/)

Re: Need Help with Encapsulation in Python!

2022-06-17 Thread Soham Mukherjee via Digitalmars-d-learn
[Here](https://www.scaler.com/topics/python/encapsulation-in-python/), they mentioned a way of simulating encapsulation of class level like this: ``` def private(*values): def decorator(cls): class Proxy: def __init__(self, *args, **kwargs): self.inst =

Need Help with Encapsulation in Python!

2022-06-17 Thread Soham Mukherjee via Digitalmars-d-learn
``` self.a = 1 self.b = 2 self.c = 3 pass def __getattribute__(self, name): if sys._getframe(1).f_code.co_argcount == 0: if name in self.privates: raise Exception("Access to private attribute \"%s\" is not allowed" % name) else: return