Skip to content

Cross product #8140

@joezappie

Description

@joezappie

System information

  • TensorFlow.js version (you are using):
    4.16
  • Are you willing to contribute it (Yes/No):
    No

Describe the feature and the current behavior/state.
Would be great to have cross product such as tf.cross to find the perpendicular vector from two vectors. Seems like the other versions of tensorflow for other languages have it but its missing from the js library?

Will this change the current api? How?
Would add a single new function.

Who will benefit with this feature?
People who want to use tensorflow for vector calculations.

Any Other info.
Switched from mathjs to tensorflowjs because it has a bunch of linear algebra functions like SVD,, but is missing cross products. Impossible to find a numpy equivalent for js but seems like tensorflows the closest!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions