Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

pysym

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pysym - npm Package Compare versions

Comparing version
0.2.0
to
0.2.1
+4
-0
CHANGES.rst

@@ -0,1 +1,5 @@

v0.2.1
======
- Fix in Matrix constructor (wrap Numbers)
v0.2

@@ -2,0 +6,0 @@ ====

+1
-1
Metadata-Version: 1.1
Name: pysym
Version: 0.2.0
Version: 0.2.1
Summary: Minimal symbolic manipulation framework.

@@ -5,0 +5,0 @@ Home-page: https://github.com/bjodah/pysym

Metadata-Version: 1.1
Name: pysym
Version: 0.2.0
Version: 0.2.1
Summary: Minimal symbolic manipulation framework.

@@ -5,0 +5,0 @@ Home-page: https://github.com/bjodah/pysym

@@ -1,1 +0,1 @@

__version__ = '0.2.0'
__version__ = '0.2.1'

@@ -768,5 +768,5 @@ # -*- coding: utf-8 -*-

try:
return source[ri, ci]
return Number.make(source[ri, ci])
except TypeError:
return source[ri*ncols + ci]
return Number.make(source[ri*ncols + ci])
self.args = (nrows, ncols) + tuple(

@@ -773,0 +773,0 @@ callback(ri, ci) for ri, ci in itertools.product(

@@ -205,1 +205,11 @@ # -*- coding: utf-8 -*-

check(A)
def test_Lambdify_matrix():
import numpy as np
x, y = arr = se.symarray('x', 2)
mat = se.Matrix(2, 2, [x, 1+y, 2*y*x**2, 3])
lmb = se.Lambdify(arr, mat)
result = lmb([3, 5])
assert result.shape == (2, 2)
assert np.allclose(result, [[3, 6], [90, 3]])