Skip to content

Instantly share code, notes, and snippets.

View czgdp1807's full-sized avatar
🏠
Working from home

ਗਗਨਦੀਪ ਸਿੰਘ (Gagandeep Singh) czgdp1807

🏠
Working from home
View GitHub Profile
```
-- The CXX compiler identification is GNU 7.4.0
-- The C compiler identification is GNU 7.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
@czgdp1807
czgdp1807 / GSoC_2019_Report_Gagandeep_Statistics.md
Last active December 12, 2019 08:17
GSoC 2019 Report Gagandeep : Statistics

GSoC 2019 Report Gagandeep : Enhancement of Statistics Module

This report summarizes the work done in my GSoC 2019 project, Enhancement of Statistics Module wth SymPy. My mentors were, Francesco Bonazzi and Sidhant Nagpal. A step by step development of the project is available at czgdp1807.github.io.

About Me

I am, Gagandeep Singh, a third year Bachelor of Technology student at Indian Institute of Technology, Jodhpur in the department of Computer Science and Engineering.

Project Outline

@czgdp1807
czgdp1807 / CNNMatMul.py
Created October 18, 2020 21:01
Convolution as Matrix Multiplication
from __future__ import division
from sympy import *
x, y, z, t = symbols('x y z t')
k, m, n = symbols('k m n', integer=True)
f, g, h = symbols('f g h', cls=Function)
init_printing()
a, b, c, d, e, f, g, h, i, v, x, y, z = symbols('a, b, c, d, e, f, g, h, i, v, x, y, z', real=True)
M = Matrix([[a, b, c], [d, e, f], [g, h, i]])
K = Matrix([[v, x], [y, z]])
class Node(object):
__slots__ = ['key', 'next']
def __new__(cls, key):
obj = object.__new__(cls)
obj.key = key
obj.next = None
return obj
import sys
def read():
return list(map(int, sys.stdin.readline().strip().split()))
def is_good(array, start, end, K):
if any([array[i] == 0 for i in range(start, end + 1)]):
return True
neg_nums = 0
for i in range(start, end + 1):
if array[i] < 0:
diff --git a/sympy/stats/sampling/tests/test_sample_continuous_rv.py b/sympy/stats/sampling/tests/test_sample_continuous_rv.py
index 7f13b4061e..46993145cb 100644
--- a/sympy/stats/sampling/tests/test_sample_continuous_rv.py
+++ b/sympy/stats/sampling/tests/test_sample_continuous_rv.py
@@ -1,6 +1,7 @@
+from sympy import exp, Interval, oo, Symbol
from sympy.external import import_module
from sympy.stats import Beta, Chi, Normal, Gamma, Exponential, LogNormal, Pareto, ChiSquared, Uniform, sample, \
- BetaPrime, Cauchy, GammaInverse, GaussianInverse, StudentT
+ BetaPrime, Cauchy, GammaInverse, GaussianInverse, StudentT, Weibull, density, ContinuousRV
[  3%] Built target doctest[  7%] Built target lfortran_runtime_static
Scanning dependencies of target lfortran_lib
[  9%] Building CXX object src/lfortran/CMakeFiles/lfortran_lib.dir/parser/tokenizer.cpp.o
In file included from /home/czgdp1807ssd/lfortran_project/lfortran/src/lfortran/parser/tokenizer.h:5:0,
                 from /home/czgdp1807ssd/lfortran_project/lfortran/src/lfortran/parser/tokenizer.cpp:3:
/home/czgdp1807ssd/lfortran_project/lfortran/src/lfortran/parser/parser_stype.h:15:9: error: ‘AST’ was not declared in this scope
     Vec<AST::kind_item_t> kind;
         ^~~
/home/czgdp1807ssd/lfortran_project/lfortran/src/lfortran/parser/parser_stype.h:15:25: error: template argument 1 is invalid
This file has been truncated, but you can view the full file.
Running from SciPy source directory.
Running scipy/linalg/_generate_pyx.py
Running scipy/special/_generate_pyx.py
Running scipy/stats/_generate_pyx.py
Processing scipy/cluster/_vq.pyx
Processing scipy/cluster/_optimal_leaf_ordering.pyx
Processing scipy/cluster/_hierarchy.pyx
Processing scipy/ndimage/src/_cytest.pyx
Processing scipy/ndimage/src/_ni_label.pyx
Processing scipy/linalg/cython_lapack.pyx

This report summarizes the work done in my GSoC 2021 project, Supporting Arrays and Allocatables in LFortran wth LFortran. A step by step development of the project is available at czgdp1807.github.io.

About Me

I am a final year Bachelor of Technology student at Indian Institute of Technology, Jodhpur in the department of Computer Science and Engineering.

Project Outline

This project aimed to add support for arrays and allocatables in LFortran. There were some miscellaneous goals as well, such as improving support for pointers and kinds and some bug fixes discovered along the way. The original plan of the project is listed as follows,