当前位置:网站首页>Armadillo installation
Armadillo installation
2022-06-22 06:21:00 【High hall mirror sad white hair】
Armadillo Is a library of matrix operations
Armadillo install
Download address
http://arma.sourceforge.net/download.html
Unzip it to an appropriate location
cmake introduce
Reference documents
https://cmake.org/cmake/help/latest/module/FindArmadillo.html
cmake_minimum_required(VERSION 3.21)
project(test_0_1)
set(CMAKE_CXX_STANDARD 17)
set(ARMADILLO_INCLUDE_DIR "D:/ProgramData/armadillo-11.0.0/include")
set(ARMADILLO_LIBRARIES "D:/ProgramData/armadillo-11.0.0/examples/lib_win64")
include_directories(${ARMADILLO_INCLUDE_DIR})
add_executable(${PROJECT_NAME} main.cpp)
Run the example
CMakeList.txt File as above ,
Program files :
#include <iostream>
#include <armadillo>
int main()
{
arma::mat A = arma::randu<arma::mat>(4, 5) * 10;
arma::mat B = arma::randu<arma::mat>(4, 5) * 10;
arma::mat C = A % B;
A.print("A = \n");
B.print("B = \n");
C.print("A .* B = \n");
system("pause");
return 0;
}
边栏推荐
- Detailed interpretation of tab[i = (n - 1) & hash]
- Vertical maximum and minimum and horizontal maximum and minimum greatest(), least(), max(), min()
- Using Monte Carlo method to calculate pi
- 【NAND文件系统】UBIFS介绍
- 八锁问题详解
- No business series 7: removing spots from old photos
- 878. the nth magic number math + two points
- Shengxin visualization (Part3) -- violin diagram
- SQL 注入漏洞(十二)Cookie注入
- You are using PIP version 19.0.3, however version 22.1.2 is available
猜你喜欢

Pyg tutorial (7): dissecting neighborhood aggregation

从入门到精通之专家系统CLIPS(一)CLIPS初识与概述

动态创建对象执行方法

ReadWriteLock

ForkJoinPool

Oracle之trim,ltrim,rtrim三个函数的用法

四大函数式接口(必需掌握)

用蒙特卡洛法求圆周率pi

Research on automatic landing control system of carrier aircraft

Single cell literature learning (Part2) -- stplus: a reference based method for the exact enhancement of St
随机推荐
Shengxin visualization (Part3) -- violin diagram
Unsafe concurrency of collection classes
Research on automatic landing control system of carrier aircraft
性能对比分析
【Rust笔记】01-基本类型
Logback custom pattern parameter resolution
Detailed interpretation of tab[i = (n - 1) & hash]
常用的辅助类—(重点)
linux 链接sqlserver,离线安装
[PHP]TP6 CLI模式下创建tp6和多应用配置以及常见问题
线程池的七大参数及自定义线程池
Single cell paper records (part10) -- computational challenges and opportunities in SRT data
生产者和消费者问题
东郊到家开发技术服务
Detailed explanation of eight locks
Single cell literature learning (Part2) -- stplus: a reference based method for the exact enhancement of St
Lock锁(重点)
Producer and consumer issues
Class load memory analysis
【5G NR】RRC连接重建解析