百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

vectorial

> 编程语言
开源

带有 NEON/SSE 支持的向量数学库

355 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

带有 NEON/SSE 支持的向量数学库

Vectorial - vector math library

Motivation

I couldn't find an open source math library that was usable and
supported simd - especially the ARM NEON variant.

Features

Supports NEON, SSE, scalar and generic gcc vector extension.
Most basic vector and matrix math is available, but not quite
yet full featured.

Design

Vectorial consists of two main parts, pure-C wrapper around
platform-specific vector instructions in the simd*.h files
and C++ classes for common uses, the vec*.h and mat*.h

The config.h autodetects approriate vector instructions to use.

The platform-specific support is done with intrisincs only,
allowing the compiler to have a full view of the code, hopefully
resulting in better optimizations especially with reordering etc.

Installation / Usage

Add vectorial/include to your include path

#include "vectorial/simd4f.h"  
for C-only simd wrapper, using it looks like this:
  simd4f v = simd4f_normalize( simd4f_add( simd4f_create(1,2,3,4), y) );
  float z = simd4f_get_z(v);

#include "vectorial/vectorial.h"
for C++ classes. They reside in vectorial namespace, you might
want to alias them to your own namespace
  namespace myproject {
    using namespace ::vectorial;
    // if you like different name: typedef vec3f Vector3;
  }
  using myproject::vec4f;
  
  vec4f v = normalize( vec4f(1,2,3,4) + y );
  float z = v.z();

License

2-clause BSD. See LICENSE

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言