npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dao3fun/matrix-calculator-server

v2.0.1

Published

Matrix Calculator Server 是一款支持拓展的神岛服务端矩阵计算npm,提供矩阵计算服务

Downloads

13

Readme

Matrix-calculator-server

介绍

Matrix-calculator-server是一个轻量级的矩阵计算服务器,支持多种矩阵运算,如加法、减法、乘法、转置等。它可以处理3*3的矩阵,并提供了简单易用的API接口。

安装

npm --registry=https://mirrors.cloud.tencent.com/npm/ install @dao3fun/matrix-calculator-server

使用

在使用Matrix-calculator-server之前,请确保你已经按照上述步骤正确安装了它。

引入包

在你的JavaScript或TypeScript文件中,通过import语句引入Matrix-calculator-server:

import { GameMatrix3, BaseMatrix } from '@dao3fun/matrix-calculator-server';

基本用法

以下是一个简单的示例,展示了如何使用GameMatrix3的基本功能:

定义矩阵

new GameMatrix3(BaseMatrix);

创建矩阵实例

let matrix1 = new GameMatrix3({
  a: 1,b: 0,c: 0,
  d: 0,e: 1,f: 0,
  g: 0,h: 0,i: 1,
});

let matrix2 = new GameMatrix3({
  a: 1,b: 2,c: 3,
  d: 4,: 5,f: 6,
  g: 7,h: 8,i: 9,
});

获取矩阵

matrix1.getMat();

获取行列式

matrix1.getDet();

执行矩阵加法

matrix1.addMatrix(matrix2);

执行矩阵减法

matrix1.subtractMatrix(matrix2);

执行矩阵乘法(matrix2左乘matrix1)

matrix1.multiplyMatrix(matrix2);

执行向量左乘矩阵

matrix1.multiplyVector(GameVector3(1, 2, 3));

执行矩阵取逆

matrix1.inverseMatrix();

更新日志

2.0.1

  • 修复readme界面格式错误

2.0.0

  • 取消GameMatrix3的id和name属性

1.0.2

  • 优化介绍

1.0.1

  • 修复了导出错误,确保GameMatrix3BaseMatrix
  • 添加介绍