SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · cond-mat/9909130 · 1999

New Algebraic Formulation of Density Functional Calculation

arXiv · PDF · Open in the Atlas

Code that ran

4 of 21 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 17 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/cond-mat/9909130.json · badge: /api/ran/cond-mat/9909130.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
wangenau/eminus community (classifier label)
classifier basis not recorded on the link
4 ran · 17 no recorded run
FunctionStatusWhere it lives
delete Ran
ran on a synthesized input
wangenau/eminus/eminus/backend.py
code served (permissive licence) · get_code("3e147446dfa8946c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

# Create a minimal config object with backend attribute
class Config:
    def __init__(self, backend='torch'):
        self.backend = backend

config = Config(backend='torch')

# Set random seed for reproducibility
torch.manual_seed(0)

# Create test data
# Using a 2D array/tensor with distinct dimensions (4 rows, 3 columns)
np_array = np.arange(12).reshape(4, 3).astype(np.float32)
torch_tensor = torch.arange(12, dtype=torch.float32).reshape(4, 3)

# Test with different obj values - indices to delete
obj_indices = np.array([0, 2])  # Delete rows 0 and 2
axis_value = 0  # Delete along axis 0 (rows)

# Test case 1: NumPy array input
ARGS = {
    'arr': np_array,
    'obj': obj_indices,
    'axis': axis_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
array_api_compat, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_phi Ran
ran on a synthesized input
wangenau/eminus/eminus/dft.py
code served (permissive licence) · get_code("da73498616cdcb69")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (4, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math

torch.manual_seed(0)

class AtomsStandIn:
    """Minimal Atoms object that provides the required methods."""
    
    def __init__(self):
        # Create small matrices for the transformations
        # O, J, and Linv should compose to produce a valid Hartree field
        self.matrix_size = (4, 4)
    
    def J(self, n):
        """Apply some transformation to density."""
        # n is expected to be a tensor
        # Return a transformed version
        return torch.matmul(torch.randn(4, 4), n)
    
    def O(self, x):
        """Apply another transformation."""
        # Apply a transformation matrix
        return torch.matmul(torch.randn(4, 4), x)
    
    def Linv(self, x):
        """Apply inverse Linv transformation."""
        # Apply a final transformation matrix
        return torch.matmul(torch.randn(4, 4), x)

# Create the atoms object
atoms = AtomsStandIn()

# Create a small electronic density tensor
n = torch.randn(4, 2)

ARGS = {
    "atoms": atoms,
    "n": n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 2) — shape (4, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_array Ran
ran on a synthesized input
wangenau/eminus/eminus/backend.py
code served (permissive licence) · get_code("2f7f95ffea963943")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

class MockConfig:
    def __init__(self, backend='torch'):
        self.backend = backend

config = MockConfig(backend='torch')
torch.manual_seed(0)

# Test with NumPy array
numpy_array = np.array([1, 2, 3, 4])

# Test with torch tensor
torch_tensor = torch.randn(2, 4)

ARGS = {
    'value': numpy_array
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
array_api_compat, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
to_np Ran
ran on a synthesized input
wangenau/eminus/eminus/backend.py
code served (permissive licence) · get_code("dbc41c0e632d85ae")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Test case 1: None input
arr_none = None

# Test case 2: PyTorch tensor on CPU
arr_torch = torch.randn(2, 4)

# Test case 3: NumPy array
arr_numpy = np.array([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]])

# Test case 4: List of PyTorch tensors
arr_list_torch = [torch.randn(2, 4), torch.randn(2, 4)]

# Test case 5: Plain Python list
arr_list_python = [[1, 2, 3, 4], [5, 6, 7, 8]]

# Use the torch tensor as the primary test case
ARGS = {
    "arr": arr_torch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
array_api_compat, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
Cell Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/cell.py
code served (permissive licence) · get_code("5af9fa6bf39a4cdc")
How it ran

no invocation recorded.

calc_Vnonloc Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/gth.py
code served (permissive licence) · get_code("0c2717354e153cde")
How it ran

no invocation recorded.

domain_cuboid Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/domains.py
code served (permissive licence) · get_code("9df2b95a3806b2de")
How it ran

no invocation recorded.

domain_isovalue Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/domains.py
code served (permissive licence) · get_code("7e3711084e7b4c31")
How it ran

no invocation recorded.

domain_sphere Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/domains.py
code served (permissive licence) · get_code("fbf0cdc77f9be2c1")
How it ran

no invocation recorded.

gamma_centered Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/kpoints.py
code served (permissive licence) · get_code("bdf29953304c1a7b")
How it ran

no invocation recorded.

get_Ecoul Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/energies.py
code served (permissive licence) · get_code("8bb05e6c8973ab0e")
How it ran

no invocation recorded.

get_grad_field Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/gga.py
code served (permissive licence) · get_code("539622b11b882861")
How it ran

no invocation recorded.

get_grad_occ Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/band_minimizer.py
code served (permissive licence) · get_code("6eb10f7741d3a07e")
How it ran

no invocation recorded.

gradient_correction Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/gga.py
code served (permissive licence) · get_code("bd73d58eb385832d")
How it ran

no invocation recorded.

init_gth_loc Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/gth.py
code served (permissive licence) · get_code("e1b98108470d77e4")
How it ran

no invocation recorded.

init_gth_nonloc Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/gth.py
code served (permissive licence) · get_code("d14cfd48bb24775f")
How it ran

no invocation recorded.

kpoint_convert Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/kpoints.py
code served (permissive licence) · get_code("345356cdee166115")
How it ran

no invocation recorded.

monkhorst_pack Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/kpoints.py
code served (permissive licence) · get_code("a93f4c79edc219ed")
How it ran

no invocation recorded.

orth_unocc Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/dft.py
code served (permissive licence) · get_code("cca5e2ddb304cad8")
How it ran

no invocation recorded.

scf_step_occ Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/band_minimizer.py
code served (permissive licence) · get_code("7980f99fd8217626")
How it ran

no invocation recorded.

scf_step_unocc Not yet run
unverified (harvested, no recorded run)
wangenau/eminus/eminus/band_minimizer.py
code served (permissive licence) · get_code("57abf5dd68f9b95a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 21 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This article addresses a fundamental problem faced by the ab initio community: the lack of an effective formalism for the rapid exploration and exchange of new methods. To rectify this, we introduce a novel, basis-set independent, matrix-based formulation of generalized density functional theories which reduces the development, implementation, and dissemination of new ab initio techniques to the derivation and transcription of a few lines of algebra. This new framework enables us to concisely demystify the inner workings of fully functional, highly efficient modern ab initio codes and to give complete instructions for the construction of such for calculations employing arbitrary basis sets. Within this framework, we also discuss in full detail a variety of leading-edge ab initio techniques, minimization algorithms, and highly efficient computational kernels for use with scalar as well as shared and distributed-memory supercomputer architectures.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("cond-mat/9909130")
get_code_for_paper("cond-mat/9909130")
have("cond-mat/9909130")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/cond-mat/9909130.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/cond-mat/9909130.svg)](https://syntology.ai/paper/cond-mat/9909130)

Connect an agent — have() is free.