Matrix and vector?

I have some matrix defined like this using a vector value

mtx = [[1.0, 1.0, 1.0, Vec3(0.0, 4.0, 2.0), 2.0],
[2.0, 1.0, 1.0, Vec3(1.0, 7.0, 3.0), 3.0],
[1.0, 2.0, 1.0, Vec3(15.0, 2.0, 4.0), 4.0]]

how is this vector interpreted from the matrix point of view ?

is it converted as a single number or 3 numbers ?

thanks
happy bl

That’s no matrix. It’s a list, with three lists inside, each with four floats and one vector.

If you try to make a matrix with it, it will throw an error.

>>> help(mathutils.Matrix)
Matrix([rows])
.. class:: Matrix([rows])
This object gives access to Matrices in Blender, supporting square and rectangular
matrices from 2x2 up to 4x4.
:param rows: Sequence of rows.
   When omitted, a 4x4 identity matrix is constructed.
:type rows: 2d number sequence

right not a defined matrix from mathutil or other lib

still wondering what this vector does inside that list?

how is it interpreted ?
is it like one number or 3 floats ?

a vector can be interpreted different ways!

the values in list of list represent a matrix

thanks
happy bl

It will depend on the enviroment you’re working… They must implement some kind of converter.

I don’t know any enviroment that does that, so you need to test everyone of them to see what happens.

trying to make this algo CCO to work
but not certain if it really works have to test it some more

http://elonen.iki.fi/code/misc-notes/python-gaussj/index.html

will continue testing the algo

thanks
happy bl

In this case, that kind of structure is understood and used by the ‘gauss_jordan’ function.