Giter Club home page Giter Club logo

matrixcomputations's People

Contributors

choct155 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

matrixcomputations's Issues

Matrix equations in mathjax

Here is an example of a matrix snippet that will work in Jupyter markdown cells:

Consider the following matrices:

\begin{equation}
    A = 
    \left[
    \begin{array}{c|cc}
        1 & 3 & 2 \\
        2 & 1 & 1 \\
        \hline
        -1 & 0 & 1
    \end{array}
    \right]
\end{equation}

\begin{equation}
    X = 
    \left[
    \begin{array}{c|cc}
        1 & 0 & 1 \\
        \hline
        2 & 1 & 1 \\
        -1 & 2 & 0
    \end{array}
    \right]
\end{equation}

\begin{equation}
    B = 
    \left[
    \begin{array}{c|cc}
        5 & 7 & 4 \\
        3 & 3 & 3 \\
        \hline
        -2 & 2 & -1
    \end{array}
    \right]
\end{equation}

Show that the following holds:

$$A_{i1} X_{1j} + A_{i2} X_{2j} = B_{ij} \text{ for } j = 1, 2$$

List of non-variable coefficients in a sympy equation?

# https://www.geeksforgeeks.org/python-sympy-atoms-method/

I looked for a long time and this was the closest I found to being able to pull out the number from the node equation that does not have a variable attached. Do you have a better way? I don't know that this does what I think it should based on what I found
https://www.geeksforgeeks.org/python-sympy-atoms-method/

b_list

b_list: List[float] = Circuit.create_b_array(full_array)

For some reason this creates:
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.80000000000000]
so it is missing one of the values (x5 has a -.9)

also...do I need to actually take the negative of each of those values? (aka move to the other side of the equation)

returning the tensor/actual answer

I think that based on how we set up the CircuitNode class that the way I set up this Circuit class should actually return both my list of CircuitNodes as well as the output Tensor I've calculated, but it doesn't - it only returns the list of CircuitNodes.

Is there something special I need to do to "add a field" or something? (I can explain more what I am trying to say if you need me to).

Conversion to tensor

a_matrix: tf.Tensor = Circuit.convert_to_tensor(a_array)

I think the rest of the code up to here works, but now it is throwing a value error when I'm converting to a tensor. I'll try to work through this....

ValueError: Attempt to convert a value (<map object at 0x7feb5415b050>) with an unsupported type (<class 'map'>) to a Tensor.

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.