A basis (of e.g. vectors) spans a space (such as vector space).
Questions tagged [basis]
28 questions
3
votes
1 answer
How can I separate a vector into basis vectors?
I have the basis:
>>> m = 6
>>> basis = np.zeros((m, m))
>>> np.fill_diagonal(basis, 1)
array([[1. 0. 0. 0. 0. 0.]
[0. 1. 0. 0. 0. 0.]
[0. 0. 1. 0. 0. 0.]
[0. 0. 0. 1. 0. 0.]
[0. 0. 0. 0. 1. 0.]
[0. 0. 0. 0. 0.…

Luxamba
- 45
- 4
3
votes
1 answer
How to apply a matrix to an image
i've made some search but didn't find the exact same questions - and the solutions I found were not adaptable.
I have an Image, represented by a numpy array of shape (l1,l2,3)
where l1,l2 are integers and three because RGB.
And for reasons, I want…

Gericault
- 219
- 1
- 3
- 8
2
votes
0 answers
computing null space via opencv
Is there an alternative command in OpenCV to null command in MATLAB, which given a vector v computes an orthogonal basis for the null space which v is one of its basis vectors?

terez tukan
- 21
- 2
2
votes
1 answer
Compute the change of basis matrix in Matlab
I've an assignment where I basically need to create a function which, given two basis (which I'm representing as a matrix of vectors), it should return the change of basis matrix from one basis to the other.
So far this is the function I came up…

nbro
- 15,395
- 32
- 113
- 196
1
vote
1 answer
How to obtain the transformation matrix from three dimensions spaces basis using javascript?
Having two Three dimensional spaces basis, I need to find the transformation matrix so I can convert points between two coordinate systems.
I'm using Three js Vector3 as basis for the spaces.
Space A basis:
X - THREE.Vector3 {x: 0, y:…

João Martins
- 388
- 3
- 10
1
vote
1 answer
Geting the scalars of one single vector basis using Sympy
I'm new to the sympy library and I have a relatively simple question. I am writing a 3D vector as follows
from sympy.vector import CoordSys3D
N = CoordSys3D('N')
v = 1*N.i + 4*N.j + 5*N.k
I would like to have access to the scalar from just one of…

L.O.Barauna
- 77
- 4
1
vote
1 answer
How is a Unitary matrix a permutation?- Quantum pattern matching
I'm reading a paper on quantum pattern matching and here it talks about a unitary matrix U which represents the oracle that flips a state's amplitude as a permutation over the computational basis. See page 3 right side fourth paragraph under…

Mushahid Khan
- 75
- 1
- 7
1
vote
0 answers
3D Rigging: Belt twist or Frame Interpolation beyond 180 degrees. Euler, Matrix, Quaternions?
3D TD here, defining a "Bezier curve" and orientation along it with Control Objects' transforms.
I'm having issues to interpolate the "Up Vector" between the Control Objects, in a way that would allow me to have a differential of more than 180…

probineroutlook
- 11
- 2
1
vote
2 answers
A confusion about space transformation in OpenGL
In the book of 3D graphics for game programming by JungHyun Han, at page 38-39, it is given that
the basis transformation matrix from e_1, e_2, e_3 to u,v,n is
However, this contradicts with what I know from linear algebra. I mean shouldn't the…

Our
- 986
- 12
- 22
1
vote
1 answer
Project 3D polygon into a 2D plane such that the vertices are in counter clockwise order
Some fast algorithms for working with polygons require the vertices of the polygon to have a specific order (clockwise or counter clockwise with respect to the polygon's plane normal).
To use those algorithms in 3D planar polygons (where all the…

gnzlbg
- 7,135
- 5
- 53
- 106
1
vote
1 answer
How to represent a basis of vectors in Matlab?
I'm creating a function which given two basis for a vector space, it returns the change of basis matrix from one basis to the other. The problem is that I don't know how to represent a basis. A basis is basically a set (where duplicates are not…

nbro
- 15,395
- 32
- 113
- 196
0
votes
1 answer
Pixi.js: BasisParser returns undefined from loading KTX2 file with custom extension
I get 'undefined' from the BasisParser that I use from Pixi itself, when loading a KTX2 file with a custom extension (through Assets.load):
import { TranscoderWorker } from '@pixi/basis';
import { loadKTX2 } from '../loaders/PixiLoadKTX2'; //…
0
votes
0 answers
How to generate a multivariate spline basis in R?
I want to obtain a multivariate spline basis using R. I do not know how to do it properly or the best approach for this. According to my limited research on the Internet, I think that the package that can help me is mgcv and the functions ti and…

TUC1685
- 1
- 1
0
votes
0 answers
How to create inverse matrix with echelon form? Basis of subspace
I need your help with 2 tasks. I totally do not know how to do them.
For matrix A, find the inverse matrix by fetching to echelon form. Use the block matrix() function to connect the matrices. Matrix is:
1 3 0 -1
0 2 1 3
3 1 2 1
-1 2 …

mmm
- 1
- 1
0
votes
1 answer
Failed to load resources (draco, basis)
I've been struggling issue with draco and basis loader.
I'm using webpack to build my project, and it's npm run build configuration looks like this:
const { merge } = require('webpack-merge')
const commonConfiguration =…

wolfie00
- 431
- 4
- 11