Files
Aurora/src/Function3D.h
2023-04-23 13:29:53 +08:00

48 lines
1.3 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef AURORA_FUNCTION3D_H
#define AURORA_FUNCTION3D_H
#include "Matrix.h"
#include "Function1D.h"
namespace Aurora {
/**
* 创建全部为1的数组矩阵
* @param aRow 行数必须大于0
* @param aColumn 列数必须大于0
* @param aSlice 层数
* @return 全部为1的数组矩阵
*/
Matrix ones(int aRow, int aColumn, int aSlice = 0);
/**
* 创建全部为1的方阵
* @param aSquareRow
* @return 全部为1的方阵
*/
Matrix ones(int aSquareRow);
/**
* 创建全部为0的数组矩阵
* @param aRow 行数必须大于0
* @param aColumn 列数必须大于0
* @param aSlice 层数
* @return 全部为0的数组矩阵
*/
Matrix zeros(int aRow, int aColumn, int aSlice = 0);
/**
* 创建全部为0的方阵
* @param aSquareRow
* @return 全部为0的方阵
*/
Matrix zeros(int aSquareRow);
Matrix interp3(const Matrix& aX, const Matrix& aY, const Matrix& aZ, const Matrix& aV, const Matrix& aX1, const Matrix& aY1, const Matrix& aZ1,InterpnMethod aMethod);
Matrix interpn(const Matrix& aX, const Matrix& aY, const Matrix& aZ, const Matrix& aV, const Matrix& aX1, const Matrix& aY1, const Matrix& aZ1,InterpnMethod aMethod);
};
#endif //AURORA_FUNCTION3D_H