partial list of integer matrices

This commit is contained in:
Carl Pearson
2021-11-25 05:58:48 -08:00
parent 54204ea086
commit 19590a9f21
3 changed files with 497 additions and 17 deletions

View File

@@ -1,28 +1,17 @@
import collections
import sys
import ssgetpy
import lists
Dataset = collections.namedtuple("Dataset", ["name", "mats"])
def filter_reject_blacklist(mats):
# matrices that are actually integer
blacklist_integer = [
"Alemdar",
"aug2d",
"aug2dc",
"aug3d",
"cyl6",
"engine",
"mc2depi",
"t520",
"tube2"
]
filtered = []
for mat in mats:
if mat.name in blacklist_integer:
if mat.name in lists.INTEGER_MATS:
print(f"BLACKLIST {mat.name}")
continue
filtered += [mat]
@@ -46,7 +35,7 @@ def filter_reject_small(mats):
## all real-valued matrices
REAL_MATS = Dataset(
name = "all_reals",
name = "reals",
mats = filter_reject_blacklist(ssgetpy.search(
dtype='real',
limit=1_000_000