Coder Social home page Coder Social logo

Comments (2)

eljost avatar eljost commented on September 15, 2024 2

Thanks for getting back to me so quickly. I seem to have misread the shape of the coordinate array ... Good to know the library is fine and that the error is on my side.

from trexio.

scemama avatar scemama commented on September 15, 2024

Hello,
I think that you are confused by the column-major ordering :-)

In the documentation, the nuclear coordinates are:

coord	float	(3,nucleus.num)	Coordinates of the atoms

So in Python, if you use the default ordering (row major), you are supposed to make a numpy array of shape (nucleus_num, 3). This is indeed what you do:

coords3d = np.zeros((2, 3))

and everything is fine.

For the MO coefficients, the documentation states that it is:

coefficient	float	(ao.num, mo.num)

So in Python, you should use a numpy array of shape (mo_num, ao_num) where mo_num = 2*ao_num in your particular case. But your MO coefficients array in Python has shape (ao_num, mo_num), which is wrong.

Thanks for giving feedback. As you are the 2nd person getting confused with this, we will try to make things clearer in the documentation.

Sorry for the confusion...

from trexio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.