Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

matrix-multiplication

What is the ‘@=’ symbol for in Python?

August 19, 2022 by Magenaut

I know @ is for decorators, but what is @= for in Python? Is it just reservation for some future idea?

Categories Python, Q&A Tags matrix-multiplication, operators, python, python-3.5, python-3.x Leave a comment

Difference between numpy dot() and Python 3.5+ matrix multiplication @

August 18, 2022 by Magenaut

I recently moved to Python 3.5 and noticed the new matrix multiplication operator (@) sometimes behaves differently from the numpy dot operator. In example, for 3d arrays:

Categories Python, Q&A Tags matrix-multiplication, numpy, python, python-3.5 Leave a comment

how does multiplication differ for NumPy Matrix vs Array classes?

August 18, 2022 by Magenaut

The numpy docs recommend using array instead of matrix for working with matrices. However, unlike octave (which I was using till recently), * doesn’t perform matrix multiplication, you need to use the function matrixmultipy(). I feel this makes the code very unreadable.

Categories Python, Q&A Tags arrays, matrix, matrix-multiplication, numpy, python Leave a comment

How to get element-wise matrix multiplication (Hadamard product) in numpy?

August 16, 2022 by Magenaut

I have two matrices

Categories Python, Q&A Tags elementwise-operations, matrix, matrix-multiplication, numpy, python Leave a comment

Why is matrix multiplication faster with numpy than with ctypes in Python?

August 14, 2022 by Magenaut

I was trying to figure out the fastest way to do matrix multiplication and tried 3 different ways:

Categories Python, Q&A Tags benchmarking, c#, matrix-multiplication, python Leave a comment

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress